Crate parlex_calc

Crate parlex_calc 

Source

Structs§

CalcLexer
The calculator lexer.
CalcParser
The calculator parser, a wrapper that couples:
CalcToken
A concrete implementation of a lexical token used by the calculator.
IterInput
An input adapter that wraps any iterator and provides a TryNextWithContext interface, automatically fusing the iterator so it never yields items after returning None once.
SymTab
A simple symbol table that maps string names to integer values.

Enums§

CalcError
Represents all possible errors that can occur within the calculator.
SymTabError
Errors that can occur when operating on a SymTab.
TokenID
TokenValue
Represents the value carried by a lexical token.