| |
|
| xtc.parser.GrammarVisitor xtc.parser.ReferenceCounter
ReferenceCounter | public class ReferenceCounter extends GrammarVisitor (Code) | | Visitor to fill in meta-data reference counts. This visitor
determines the usage and self counts for a grammar's productions.
Note that this visitor does not create the meta-data records; they
must be created with the
MetaDataCreator meta-data creator before applying this visitor. Further note that the grammar must
have been
Simplifier simplified and
Inliner inlined before applying this visitor. Finally, note that this visitor
assumes that the entire grammar is contained in a single module.
author: Robert Grimm version: $Revision: 1.22 $ |
Field Summary | |
protected boolean | isTransformable The flag for whether the current production is a transformable
direct left-recursive production. |
isTransformable | protected boolean isTransformable(Code) | | The flag for whether the current production is a transformable
direct left-recursive production.
|
ReferenceCounter | public ReferenceCounter(Runtime runtime, Analyzer analyzer)(Code) | | Create a new reference counter.
Parameters: runtime - The runtime. Parameters: analyzer - The analyzer utility. |
|
|
|