Ruby 4.1.0dev (2026-12-06 revision 6b501f5444cf675f4a654bda46c812e2c1df9fb8)
parse_lex_data_t Struct Reference

This struct gets stored in the parser and passed in to the lex callback any time a new token is found. More...

Data Fields

VALUE source
VALUE tokens
rb_encoding * encoding
bool freeze

Detailed Description

This struct gets stored in the parser and passed in to the lex callback any time a new token is found.

We use it to store the necessary information to initialize a Token instance.

Definition at line 882 of file extension.c.

Field Documentation

◆ encoding

rb_encoding* parse_lex_data_t::encoding

Definition at line 885 of file extension.c.

◆ freeze

bool parse_lex_data_t::freeze

Definition at line 886 of file extension.c.

◆ source

VALUE parse_lex_data_t::source

Definition at line 883 of file extension.c.

◆ tokens

VALUE parse_lex_data_t::tokens

Definition at line 884 of file extension.c.


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