struct

Obelisk::LexerRule

Inherits Struct < Value < Object

Rule for regex lexers

Constructors

new(pattern : Regex, action : RuleAction)
Source

Instance methods

action
Source
match(text : String, pos : Int32) : Regex::MatchData | Nil
Source
pattern
Source