class MiniLexer
- MiniLexer
- Reference
- Object
Direct Known Subclasses
Defined in:
models/minilexer/minilexer.crConstructors
Instance Method Summary
- #<<(t : Tuple(Symbol, String))
- #<<(t : Tuple(Symbol, Char))
- #<<(t : Tuple(Symbol, Char | String))
- #find(token_type : Symbol) : Array(Token)
- #line : Int
- #mode : Symbol
- #mode=(mode : Symbol)
- #mode=(mode : Symbol)
- #tokenize(input : String) : Array(Token)
- #tokenize_logic(input : String) : Array(Token)
- #tokens : Array(Token)
- #tokens=(tokens : Array(Token))
-
#trace(io : IO = STDERR)
Token dump for debugging a lexer by hand.
Constructor Detail
Instance Method Detail
def trace(io : IO = STDERR)
#
Token dump for debugging a lexer by hand. Written to STDERR, like every
other Noir diagnostic: STDOUT carries the report, so a puts here would
land in the middle of a -f json / -f sarif document the moment anyone
called this from inside a scan. Nothing calls it today, which is exactly
why the stream it writes to has to be right before someone does.