Ruby 4.1.0dev (2026-11-18 revision bcf3b03b44ae598e3adb59d359cf32202091a318)
pm_parser_t Struct Reference

Data Fields

pm_arena_t * arena
pm_arena_t metadata_arena
pm_arena_t scratch_arena
uint32_t node_id
struct { 
   const uint8_t *   start 
   const uint8_t *   end 
   pm_constant_id_t   id 
} constant_cache
pm_lex_state_t lex_state
int enclosure_nesting
int lambda_enclosure_nesting
int brace_nesting
pm_state_stack_t do_loop_stack
pm_state_stack_t accepts_block_stack
struct { 
   pm_lex_mode_t *   current 
   pm_lex_mode_t   base 
   pm_lex_mode_t *   free 
} lex_modes
pm_node_chunks_t node_chunks
pm_token_t previous
pm_token_t current
const uint8_t * next_start
const uint8_t * heredoc_end
pm_list_t comment_list
pm_comment_attachments_t comment_attachments
pm_list_t magic_comment_list
pm_location_t data_loc
pm_list_t warning_list
pm_list_t error_list
pm_scope_t * current_scope
pm_local_t * locals
uint32_t locals_size
uint32_t locals_capacity
uint32_t * bindings
uint32_t bindings_capacity
pm_scope_t * free_scopes
pm_context_node_t * current_context
pm_context_node_t * free_contexts
const pm_encoding_t * encoding
pm_encoding_changed_callback_t encoding_changed_callback
const uint8_t * encoding_comment_start
struct { 
   pm_lex_callback_t   callback 
   void *   data 
} lex_callback
pm_string_t filepath
pm_constant_pool_t constant_pool
pm_line_offset_list_t line_offsets
struct { 
   pm_node_flags_t   base 
   uint64_t   value 
   const uint8_t *   start 
} integer
pm_string_t current_string
int32_t start_line
const pm_encoding_t * explicit_encoding
pm_scratch_node_list_t * current_block_exits
uintptr_t stack_base
size_t stack_budget
pm_options_version_t version
uint8_t command_line
int8_t frozen_string_literal
bool parsing_eval
bool partial_script
bool attach_comments
bool command_start
bool in_endless_def_body
bool recovering
bool continuable
bool encoding_locked
bool encoding_changed
bool pattern_matching_newlines
bool in_keyword_arg
bool semantic_token_seen
bool warn_mismatched_indentation
bool stack_exhausted_reported

Detailed Description

Definition at line 616 of file parser.h.

Field Documentation

◆ accepts_block_stack

pm_state_stack_t pm_parser_t::accepts_block_stack

Definition at line 681 of file parser.h.

◆ arena

pm_arena_t* pm_parser_t::arena

Definition at line 618 of file parser.h.

◆ attach_comments

bool pm_parser_t::attach_comments

Definition at line 992 of file parser.h.

◆ base [1/2]

pm_node_flags_t pm_parser_t::base

Definition at line 870 of file parser.h.

◆ base [2/2]

pm_lex_mode_t pm_parser_t::base

Definition at line 692 of file parser.h.

◆ bindings

uint32_t* pm_parser_t::bindings

Definition at line 782 of file parser.h.

◆ bindings_capacity

uint32_t pm_parser_t::bindings_capacity

Definition at line 785 of file parser.h.

◆ brace_nesting

int pm_parser_t::brace_nesting

Definition at line 669 of file parser.h.

◆ callback

pm_lex_callback_t pm_parser_t::callback

Definition at line 837 of file parser.h.

◆ command_line

uint8_t pm_parser_t::command_line

Definition at line 963 of file parser.h.

◆ command_start

bool pm_parser_t::command_start

Definition at line 995 of file parser.h.

◆ comment_attachments

pm_comment_attachments_t pm_parser_t::comment_attachments

Definition at line 742 of file parser.h.

◆ comment_list

pm_list_t pm_parser_t::comment_list

Definition at line 736 of file parser.h.

◆ constant_pool

pm_constant_pool_t pm_parser_t::constant_pool

Definition at line 857 of file parser.h.

◆ continuable

bool pm_parser_t::continuable

Definition at line 1013 of file parser.h.

◆ current [1/2]

pm_token_t pm_parser_t::current

Definition at line 718 of file parser.h.

◆ current [2/2]

pm_lex_mode_t* pm_parser_t::current

Definition at line 686 of file parser.h.

◆ current_block_exits

pm_scratch_node_list_t* pm_parser_t::current_block_exits

Definition at line 944 of file parser.h.

◆ current_context

pm_context_node_t* pm_parser_t::current_context

Definition at line 795 of file parser.h.

◆ current_scope

pm_scope_t* pm_parser_t::current_scope

Definition at line 761 of file parser.h.

◆ current_string

pm_string_t pm_parser_t::current_string

Definition at line 894 of file parser.h.

◆ data

void* pm_parser_t::data

Definition at line 844 of file parser.h.

◆ data_loc

pm_location_t pm_parser_t::data_loc

Definition at line 752 of file parser.h.

◆ do_loop_stack

pm_state_stack_t pm_parser_t::do_loop_stack

Definition at line 675 of file parser.h.

◆ enclosure_nesting

int pm_parser_t::enclosure_nesting

Definition at line 657 of file parser.h.

◆ encoding

const pm_encoding_t* pm_parser_t::encoding

Definition at line 808 of file parser.h.

◆ encoding_changed

bool pm_parser_t::encoding_changed

Definition at line 1028 of file parser.h.

◆ encoding_changed_callback

pm_encoding_changed_callback_t pm_parser_t::encoding_changed_callback

Definition at line 815 of file parser.h.

◆ encoding_comment_start

const uint8_t* pm_parser_t::encoding_comment_start

Definition at line 821 of file parser.h.

◆ encoding_locked

bool pm_parser_t::encoding_locked

Definition at line 1021 of file parser.h.

◆ end

const uint8_t * pm_parser_t::end

Definition at line 649 of file parser.h.

◆ error_list

pm_list_t pm_parser_t::error_list

Definition at line 758 of file parser.h.

◆ explicit_encoding

const pm_encoding_t* pm_parser_t::explicit_encoding

Definition at line 931 of file parser.h.

◆ filepath

pm_string_t pm_parser_t::filepath

Definition at line 851 of file parser.h.

◆ free

pm_lex_mode_t* pm_parser_t::free

Definition at line 699 of file parser.h.

◆ free_contexts

pm_context_node_t* pm_parser_t::free_contexts

Definition at line 802 of file parser.h.

◆ free_scopes

pm_scope_t* pm_parser_t::free_scopes

Definition at line 792 of file parser.h.

◆ frozen_string_literal

int8_t pm_parser_t::frozen_string_literal

Definition at line 973 of file parser.h.

◆ heredoc_end

const uint8_t* pm_parser_t::heredoc_end

Definition at line 733 of file parser.h.

◆ id

pm_constant_id_t pm_parser_t::id

Definition at line 650 of file parser.h.

◆ in_endless_def_body

bool pm_parser_t::in_endless_def_body

Definition at line 1002 of file parser.h.

◆ in_keyword_arg

bool pm_parser_t::in_keyword_arg

Definition at line 1037 of file parser.h.

◆ lambda_enclosure_nesting

int pm_parser_t::lambda_enclosure_nesting

Definition at line 663 of file parser.h.

◆ lex_state

pm_lex_state_t pm_parser_t::lex_state

Definition at line 654 of file parser.h.

◆ line_offsets

pm_line_offset_list_t pm_parser_t::line_offsets

Definition at line 860 of file parser.h.

◆ locals

pm_local_t* pm_parser_t::locals

Definition at line 767 of file parser.h.

◆ locals_capacity

uint32_t pm_parser_t::locals_capacity

Definition at line 773 of file parser.h.

◆ locals_size

uint32_t pm_parser_t::locals_size

Definition at line 770 of file parser.h.

◆ magic_comment_list

pm_list_t pm_parser_t::magic_comment_list

Definition at line 745 of file parser.h.

◆ metadata_arena

pm_arena_t pm_parser_t::metadata_arena

Definition at line 624 of file parser.h.

◆ next_start

const uint8_t* pm_parser_t::next_start

Definition at line 725 of file parser.h.

◆ node_chunks

pm_node_chunks_t pm_parser_t::node_chunks

Definition at line 706 of file parser.h.

◆ node_id

uint32_t pm_parser_t::node_id

Definition at line 639 of file parser.h.

◆ parsing_eval

bool pm_parser_t::parsing_eval

Definition at line 979 of file parser.h.

◆ partial_script

bool pm_parser_t::partial_script

Definition at line 986 of file parser.h.

◆ pattern_matching_newlines

bool pm_parser_t::pattern_matching_newlines

Definition at line 1034 of file parser.h.

◆ previous

pm_token_t pm_parser_t::previous

Definition at line 715 of file parser.h.

◆ recovering

bool pm_parser_t::recovering

Definition at line 1005 of file parser.h.

◆ scratch_arena

pm_arena_t pm_parser_t::scratch_arena

Definition at line 632 of file parser.h.

◆ semantic_token_seen

bool pm_parser_t::semantic_token_seen

Definition at line 1043 of file parser.h.

◆ stack_base

uintptr_t pm_parser_t::stack_base

Definition at line 950 of file parser.h.

◆ stack_budget

size_t pm_parser_t::stack_budget

Definition at line 957 of file parser.h.

◆ stack_exhausted_reported

bool pm_parser_t::stack_exhausted_reported

Definition at line 1056 of file parser.h.

◆ start

const uint8_t * pm_parser_t::start

Definition at line 648 of file parser.h.

◆ start_line

int32_t pm_parser_t::start_line

Definition at line 900 of file parser.h.

◆ value

uint64_t pm_parser_t::value

Definition at line 879 of file parser.h.

◆ version

pm_options_version_t pm_parser_t::version

Definition at line 960 of file parser.h.

◆ warn_mismatched_indentation

bool pm_parser_t::warn_mismatched_indentation

Definition at line 1049 of file parser.h.

◆ warning_list

pm_list_t pm_parser_t::warning_list

Definition at line 755 of file parser.h.


The documentation for this struct was generated from the following file: