Ruby 3.3.7p123 (2025-01-15 revision be31f993d7fa0219d85f7b3c694d454da4ecc10b)
extension.h
1#ifndef PRISM_EXT_NODE_H
2#define PRISM_EXT_NODE_H
3
4#define EXPECTED_PRISM_VERSION "0.19.0"
5
6#include <ruby.h>
7#include <ruby/encoding.h>
8#include "prism.h"
9
10VALUE pm_source_new(pm_parser_t *parser, rb_encoding *encoding);
11VALUE pm_token_new(pm_parser_t *parser, pm_token_t *token, rb_encoding *encoding, VALUE source);
12VALUE pm_ast_new(pm_parser_t *parser, pm_node_t *node, rb_encoding *encoding);
13
14void Init_prism_api_node(void);
15void Init_prism_pack(void);
16PRISM_EXPORTED_FUNCTION void Init_prism(void);
17
18#endif
struct pm_node pm_node_t
This is the base structure that represents a node in the syntax tree.
Encoding relates APIs.
struct pm_parser pm_parser_t
The parser used to parse Ruby source.
Definition parser.h:259
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
Definition defines.h:32
The main header file for the prism parser.
This struct represents a token in the Ruby source.
Definition ast.h:528
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40