[][src]Module liblet::production

Module for handling all productions related operations.

Its goal is to emulate a formal grammar production.

It defines a Production type which can be used to conveniently work with productions in grammars, and provide abstraction over normal collection of symbols, organized in a left and right hand side (form A -> B).

It can be easily constructed from &strs or collections of Symbols.

Structs

Production

The main type of this module.

Enums

ProductionError
ProductionPredicate

A predicate for checking if production match some expected characteristics.

Functions

production

Convenience function for creating a production from a pair of raw strings (left hand side and right hand side).

production_table

Convenience function for creating visual representation of a collection of productions, ordered.

productions

Convenience function for creating a collection of productions from a raw string.