Obelisk::ParsingContext
Represents the parsing context with look-ahead and look-behind capabilities
Constructors
Instance methods
Clone context with updated position
Check if any recent token matches a condition
history
Sourcelast_token_of_type(type : TokenType) : Token | Nil
Get the most recent token of a specific type from history
look_ahead_cache
SourceGet nesting level of specific token types (like brackets)
position
SourceGet recent tokens matching a condition
state
Sourcetext
Source