class

Obelisk::RegexLexer

Inherits Obelisk::Lexer < Reference < Object

Base class for regex-based lexers

Instance methods

find_match(state : LexerState) : Tuple(LexerRule, Regex::MatchData) | Nil

Find the first matching rule from all active states

Source
rules
Source
state_rules(state : String) : Array(LexerRule)

Get rules for the current state

Source
tokenize(text : String) : TokenIterator
Source