Prism Ruby parser
Loading...
Searching...
No Matches
prettyprint.h
Go to the documentation of this file.
1
6#ifndef PRISM_PRETTYPRINT_H
7#define PRISM_PRETTYPRINT_H
8
9#include "prism/excludes.h"
10
11#ifndef PRISM_EXCLUDE_PRETTYPRINT
12
13#include "prism/compiler/exported.h"
14#include "prism/compiler/nonnull.h"
15
16#include "prism/ast.h"
17#include "prism/buffer.h"
18#include "prism/parser.h"
19
27PRISM_EXPORTED_FUNCTION void pm_prettyprint(pm_buffer_t *output_buffer, const pm_parser_t *parser, const pm_node_t *node) PRISM_NONNULL(1, 2, 3);
28
29#endif
30
31#endif
The abstract syntax tree.
A wrapper around a contiguous block of allocated memory.
struct pm_buffer_t pm_buffer_t
A wrapper around a contiguous block of allocated memory.
Definition buffer.h:18
A header file that defines macros to exclude certain features of the prism library.
The parser used to parse Ruby source.
struct pm_parser_t pm_parser_t
The parser used to parse Ruby source.
Definition parser.h:22
PRISM_EXPORTED_FUNCTION void pm_prettyprint(pm_buffer_t *output_buffer, const pm_parser_t *parser, const pm_node_t *node) PRISM_NONNULL(1
Pretty-prints the AST represented by the given node to the given buffer.
This is the base structure that represents a node in the syntax tree.
Definition ast.h:1070