rlib
Convenience library for useful things
Loading...
Searching...
No Matches
RStrMatchToken Struct Reference

One token of a parsed pattern, paired with the matched span. More...

#include <rlib/rstr.h>

Data Fields

RStrTokenType type
 
const rcharpattern
 
RStrChunk chunk
 

Detailed Description

One token of a parsed pattern, paired with the matched span.

Field Documentation

◆ chunk

RStrChunk RStrMatchToken::chunk

Span of the input that this token matched.

◆ pattern

const rchar* RStrMatchToken::pattern

Pointer into the original pattern at this token's start.

◆ type

RStrTokenType RStrMatchToken::type

Kind of token this entry came from.


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