Lines Matching refs:Grammar
4 """This module defines the data structures used to represent a grammar.
22 class Grammar(object):
25 Once initialized, this class supplies the grammar tables for the
33 file is written by calling dump() (after loading the grammar
58 begin this grammar rule (represented by a dict
68 start -- the number of the grammar's start symbol.
88 """Dump the grammar tables to a pickle file."""
94 """Load the grammar tables from a pickle file."""
102 Copy the grammar.
114 """Dump the grammar tables to standard output, for debugging."""