|parrotcode: The base class for all tree grammars.|
|Contents | Compilers|
TGE::Grammar - The base class for all tree grammars.
Create a new grammar object. [Not implemented: Optionally pass it a grammar specification in a string.] The grammar object holds an array of TGE::Rule objects, which are the semantics defined by the grammar.
Add a rule to the current attribute grammar.
Use a precompiled grammar on a data structure. This returns an object on which you can call methods to fetch attributes on the top node of the data structure.
Add a symbol to the lookup table.
Return an iterator for the symbol lookup table.
Produce a data dump of the current contents of the grammar object.
Allison Randal <email@example.com>