Module perplex::grammar [−][src]
Data structures representing a grammar.
Structs
Grammar |
A grammar. |
NonterminalId |
A unique nonterminal identifier. |
Rule |
A single rule within a grammar. |
RuleId |
A unique rule identifier. |
TerminalId |
A unique terminal identifier. |
Enums
Symbol |
A symbol of a production. |
Constants
ACCEPT |
The start rule |
END |
The special end of input terminal |
NIL |
The special don't care/nil terminal |
Type Definitions
RuleIdsIter |
an iterator over the rule IDs of a grammar. |
RulesIter |
An iterator over the rules of a grammar. |