Herb C Reference
Loading...
Searching...
No Matches
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,
17 const char* name,
18 size_t indent,
19 size_t relative_indent,
20 bool last_property,
21 buffer_T* buffer
22);
23
24void pretty_print_location(location_T* location, buffer_T* buffer);
25
27 const char* name,
28 const char* value,
29 size_t indent,
30 size_t relative_indent,
31 bool last_property,
32 buffer_T* buffer
33);
34
36 size_t value,
37 const char* name,
38 size_t indent,
39 size_t relative_indent,
40 bool last_property,
41 buffer_T* buffer
42);
43
45 const char* string,
46 const char* name,
47 size_t indent,
48 size_t relative_indent,
49 bool last_property,
50 buffer_T* buffer
51);
52
54 const char* name,
55 const char* value,
56 size_t indent,
57 size_t relative_indent,
58 bool last_property,
59 buffer_T* buffer
60);
61
63 const char* name,
64 bool value,
65 size_t indent,
66 size_t relative_indent,
67 bool last_property,
68 buffer_T* buffer
69);
70
72 token_T* token,
73 const char* name,
74 size_t indent,
75 size_t relative_indent,
76 bool last_property,
77 buffer_T* buffer
78);
79
81 const char* name,
82 array_T* array,
83 size_t indent,
84 size_t relative_indent,
85 bool last_property,
86 buffer_T* buffer
87);
88
89void pretty_print_errors(AST_NODE_T* node, size_t indent, size_t relative_indent, bool last_property, buffer_T* buffer);
90
91void pretty_print_analyed_ruby(analyzed_ruby_T* analyzed, const char* source);
92
93#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:60
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:47
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:99
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:84
void pretty_print_location(location_T *location, buffer_T *buffer)
Definition pretty_print.c:161
void pretty_print_analyed_ruby(analyzed_ruby_T *analyzed, const char *source)
Definition pretty_print.c:257
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:148
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:176
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:207
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:231
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:71
Definition analyzed_ruby.h:8
Definition array.h:6
Definition ast_nodes.h:50
Definition buffer.h:7
Definition location.h:8
Definition position.h:6
Definition token_struct.h:45