Herb C Reference
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
pretty_print.h
Go to the documentation of this file.
1#ifndef HERB_PRETTY_PRINT_H
2#define HERB_PRETTY_PRINT_H
3
4#include "analyzed_ruby.h"
5#include "ast_nodes.h"
6#include "buffer.h"
7#include "location.h"
8
9#include <stdbool.h>
10
11void pretty_print_indent(buffer_T* buffer, size_t indent);
12void pretty_print_newline(size_t indent, size_t relative_indent, buffer_T* buffer);
13void pretty_print_label(const char* name, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer);
14
16 position_T* position, const char* name, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer
17);
18
19void pretty_print_location(location_T* location, buffer_T* buffer);
20
22 const char* name, const char* value, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer
23);
24
26 size_t value, const char* name, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer
27);
28
30 const char* string, const char* name, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer
31);
32
34 const char* name, const char* value, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer
35);
36
38 const char* name, bool value, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer
39);
40
42 token_T* token, const char* name, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer
43);
44
46 const char* name, array_T* array, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer
47);
48
49void pretty_print_errors(AST_NODE_T* node, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer);
50
51void pretty_print_analyed_ruby(analyzed_ruby_T* analyzed, const char* source);
52
53#endif
void pretty_print_newline(size_t indent, size_t relative_indent, buffer_T *buffer)
Definition pretty_print.c:21
void pretty_print_boolean_property(const char *name, bool value, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:52
void pretty_print_quoted_property(const char *name, const char *value, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:43
void pretty_print_array(const char *name, array_T *array, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:79
void pretty_print_indent(buffer_T *buffer, size_t indent)
Definition pretty_print.c:15
void pretty_print_size_t_property(size_t value, const char *name, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:68
void pretty_print_location(location_T *location, buffer_T *buffer)
Definition pretty_print.c:133
void pretty_print_analyed_ruby(analyzed_ruby_T *analyzed, const char *source)
Definition pretty_print.c:217
void pretty_print_errors(AST_NODE_T *node, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:124
void pretty_print_position_property(position_T *position, const char *name, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:148
void pretty_print_token_property(token_T *token, const char *name, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:175
void pretty_print_label(const char *name, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:27
void pretty_print_string_property(const char *string, const char *name, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:195
void pretty_print_property(const char *name, const char *value, size_t indent, size_t relative_indent, bool last_property, buffer_T *buffer)
Definition pretty_print.c:59
Definition analyzed_ruby.h:8
Definition array.h:6
Definition ast_nodes.h:48
Definition buffer.h:7
Definition location.h:8
Definition position.h:6
Definition token_struct.h:44