30 rb_encoding *encoding;
51 int local_table_for_iseq_size;
66void pm_scope_node_init(
const pm_node_t *node, pm_scope_node_t *scope, pm_scope_node_t *previous);
67void pm_scope_node_destroy(pm_scope_node_t *scope_node);
86#define PM_SPECIAL_CONSTANT_FLAG ((pm_constant_id_t)(1 << 31))
87#define PM_CONSTANT_AND ((pm_constant_id_t)(idAnd | PM_SPECIAL_CONSTANT_FLAG))
88#define PM_CONSTANT_DOT3 ((pm_constant_id_t)(idDot3 | PM_SPECIAL_CONSTANT_FLAG))
89#define PM_CONSTANT_MULT ((pm_constant_id_t)(idMULT | PM_SPECIAL_CONSTANT_FLAG))
90#define PM_CONSTANT_POW ((pm_constant_id_t)(idPow | PM_SPECIAL_CONSTANT_FLAG))
99rb_iseq_t *pm_iseq_new(pm_scope_node_t *node,
VALUE name,
VALUE path,
VALUE realpath,
const rb_iseq_t *parent,
enum rb_iseq_type,
int *error_state);
100rb_iseq_t *pm_iseq_new_top(pm_scope_node_t *node,
VALUE name,
VALUE path,
VALUE realpath,
const rb_iseq_t *parent,
int *error_state);
101rb_iseq_t *pm_iseq_new_main(pm_scope_node_t *node,
VALUE path,
VALUE realpath,
const rb_iseq_t *parent,
int opt,
int *error_state);
102rb_iseq_t *pm_iseq_new_eval(pm_scope_node_t *node,
VALUE name,
VALUE path,
VALUE realpath,
int first_lineno,
const rb_iseq_t *parent,
int isolated_depth,
int *error_state);
103rb_iseq_t *pm_iseq_new_with_opt(pm_scope_node_t *node,
VALUE name,
VALUE path,
VALUE realpath,
int first_lineno,
const rb_iseq_t *parent,
int isolated_depth,
enum rb_iseq_type,
const rb_compile_option_t *option,
int *error_state);
105VALUE pm_iseq_compile_node(rb_iseq_t *iseq, pm_scope_node_t *node);
struct pm_node pm_node_t
This is the base structure that represents a node in the syntax tree.
struct pm_options pm_options_t
The options that can be passed to the parser.
struct pm_parser pm_parser_t
The parser used to parse Ruby source.
The main header file for the prism parser.
the getlocal and setlocal instructions require two parameters.
bool parsed
Whether or not this parse result has performed its parsing yet.
pm_scope_node_t node
The resulting scope node that will hold the generated AST.
pm_string_t input
The input that represents the source to be parsed.
pm_parser_t parser
The parser that will do the actual parsing.
pm_options_t options
The options that will be passed to the parser.
rb_encoding * filepath_encoding
This is the encoding of the actual filepath object that will be used when a FILE node is compiled or ...
struct iseq_link_anchor * pre_execution_anchor
This will only be set on the top-level scope node.
VALUE * script_lines
This is a pointer to the list of script lines for the ISEQs that will be associated with this scope n...
A generic string type that can have various ownership semantics.
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
uintptr_t VALUE
Type that represents a Ruby object.