| java.lang.Object xtc.tree.Visitor xtc.parser.TreeTyper
TreeTyper | public class TreeTyper extends Visitor (Code) | | Visitor to determine a grammar's tree structure. This visitor
assumes that the entire grammar is contained in a single module and
has been annotated with appropriate value elements.
author: Robert Grimm version: $Revision: 1.26 $ |
ast | final protected AST ast(Code) | | The common type operations.
|
flatten | protected boolean flatten(Code) | | The flag for flattening lists.
|
strict | protected boolean strict(Code) | | The flag for strict unification.
|
TreeTyper | public TreeTyper(Runtime runtime, Analyzer analyzer, AST ast)(Code) | | Create a new tree typer.
Parameters: runtime - The runtime. Parameters: ast - The type operations. Parameters: analyzer - The analyzer utility. |
process | protected void process(String name, boolean isAction, List<Binding> children)(Code) | | Determine the type of the specified generic node constructor.
Parameters: name - The constructor's name. Parameters: isAction - The flag for whether the constructor appears in an action. Parameters: children - The list of bindings for the children. |
visit | public void visit(Module m)(Code) | | Visit the specified module.
|
visit | public void visit(Sequence s)(Code) | | Visit the specified sequence.
|
visit | public void visit(Element e)(Code) | | Visit the specified element.
|
|
|