Expand description
§Lexer
This module contains structs and primitives related to tokenization, or lexing. The most useful are:
- the
Lexer, which is the base type for lexing. It essentially contains information about the lexing grammar and the methods required to lex - [
LexerBuilder] is, as the name explains, the builder struct forLexer. It is highly recommended to constructLexerthrough its builder. Tokenis the basic interface to deal with the result of the tokenization. The goal of a lexer is to turn a stream characters into a stream of tokens.LexedStreamis the interface for generating a stream ofTokenfrom aLexerand aStringStream.
Structs§
- Grammar
- A grammar for a Beans lexer.
- Ignores
- Lexed
Stream - Summary
- Lexer
- Summary
- Terminal
Id - Token
- Summary