struct

Obelisk::LexerMatch

Inherits Struct < Value < Object

Match data passed to rule actions - enables zero-allocation token creation

Constructors

new(source : String, pos : Int32, length : Int32, groups : Array(String))
Source

Instance methods

groups
Source
length
Source
make_token(type : TokenType) : Token

Create a zero-allocation token from this match

Source
source
Source
text
Source