Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 365 Bytes

prod.md

File metadata and controls

13 lines (8 loc) · 365 Bytes

back to index

prod

template <typename C = char, typename T = C> class prod;

prod represents a production rule of a grammar.

Class has the same API as std::pair<lit<C, T>, disjs<C, T>>.

first pair member is a rule's head literal and the second pair member is rule's body in a form of a disjunction disjs.