class Ktistec::Lexer
- Ktistec::Lexer
- Reference
- Object
Overview
Breaks an input into tokens.
Defined in:
utils/lexer.crConstructors
-
.new(input : String)
Creates a lexer for the given input.
Instance Method Summary
-
#advance : Token
Advances the lexer to the next token in the input.
- #token : Token
- #token? : Token | Nil
Constructor Detail
Instance Method Detail
Advances the lexer to the next token in the input.
Returns the token.