Ruby: pm_regexp_parser_t Struct Reference

Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)

Data Fields
pm_regexp_parser_t Struct Reference

This is the parser that is going to handle parsing regular expressions. More...

## Data Fields
const uint8_t * | start
| A pointer to the start of the source that we are parsing.
const uint8_t * | cursor
| A pointer to the current position in the source.
const uint8_t * | end
| A pointer to the end of the source that we are parsing.
pm_string_list_t * | named_captures
| A list of named captures that we've found.
bool | encoding_changed
| Whether the encoding has changed from the default.
const pm_encoding_t * | encoding
| The encoding of the source.

## Detailed Description

This is the parser that is going to handle parsing regular expressions.

Definition at line 6 of file regexp.c.

## Field Documentation

## ◆ cursor

const uint8_t* pm_regexp_parser_t::cursor

A pointer to the current position in the source.

Definition at line 11 of file regexp.c.

## ◆ encoding

const pm_encoding_t* pm_regexp_parser_t::encoding

The encoding of the source.

Definition at line 23 of file regexp.c.

## ◆ encoding_changed

bool pm_regexp_parser_t::encoding_changed

Whether the encoding has changed from the default.

Definition at line 20 of file regexp.c.

## ◆ end

const uint8_t* pm_regexp_parser_t::end

A pointer to the end of the source that we are parsing.

Definition at line 14 of file regexp.c.

## ◆ named_captures

pm_string_list_t* pm_regexp_parser_t::named_captures

A list of named captures that we've found.

Definition at line 17 of file regexp.c.

## ◆ start

const uint8_t* pm_regexp_parser_t::start

A pointer to the start of the source that we are parsing.

Definition at line 8 of file regexp.c.

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

- prism/regexp.c