Ruby: parse_lex_data_t Struct Reference

Ruby 3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)

Data Fields
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

## 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 442 of file extension.c.

## Field Documentation

## ◆ encoding

rb_encoding* parse_lex_data_t::encoding

Definition at line 445 of file extension.c.

## ◆ source

VALUE parse_lex_data_t::source

Definition at line 443 of file extension.c.

## ◆ tokens

VALUE parse_lex_data_t::tokens

Definition at line 444 of file extension.c.

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

- prism/extension.c