Ruby 4.0.7p0 (2026-09-15 revision 229531a6cfbf07e3caef30dbac24a2a3f3fed482)
pm_token_t Struct Reference

This struct represents a token in the Ruby source. More...

#include <ast.h>

Data Fields

pm_token_type_t type
 The type of the token.
const uint8_t * start
 A pointer to the start location of the token in the source.
const uint8_t * end
 A pointer to the end location of the token in the source.

Detailed Description

This struct represents a token in the Ruby source.

We use it to track both type and location information.

Definition at line 529 of file ast.h.

Field Documentation

◆ end

const uint8_t* pm_token_t::end

A pointer to the end location of the token in the source.

Definition at line 537 of file ast.h.

Referenced by pm_parser::pm_parser_init().

◆ start

const uint8_t* pm_token_t::start

A pointer to the start location of the token in the source.

Definition at line 534 of file ast.h.

◆ type

pm_token_type_t pm_token_t::type

The type of the token.

Definition at line 531 of file ast.h.


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