class

MiniLexer

Inherits Reference < Object

Constructors

Instance methods

find(token_type : Symbol) : Array(Token)
Source
line
Source
mode
Source
mode=(mode : Symbol)
Source
mode=(mode : Symbol)
Source
tokenize(input : String) : Array(Token)
Source
tokenize_logic(input : String) : Array(Token)
Source
tokens
Source
tokens=(tokens : Array(Token))
Source
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.

Source