[−][src]Module liblet::grammar
Module for handling all grammar related operations.
Its goal is to emulate a formal grammar.
It defines a Grammar
type which can be used to conveniently work with grammar and derivation manipulations
and provide abstraction over grammar quadruple of terminal and non terminal symbols, start symbol and productions.
It can be easily constructed from &str
s or collections of Symbols and Productions.
Structs
Grammar | A grammar is the main type of this module |
Enums
GrammarError |
Functions
grammar | Convenience function for creating a grammar from a raw string (which defines the productions of the grammar, as described in the Grammar struct documentation) |
grammar_quadruple | Convenience function for creating a grammar from collections of string as in grammar new_from_string. |