cetus.treewalker
Class TreeWalker
java.lang.Object
cetus.treewalker.TreeWalker
- Direct Known Subclasses:
- CCTreeWalker, CTreeWalker
public abstract class TreeWalker
- extends java.lang.Object
Base class for all tree walkers.
|
Constructor Summary |
protected |
TreeWalker(java.lang.String filename)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
anonymous_count
protected int anonymous_count
saved_decl
protected Declaration saved_decl
tunit
protected TranslationUnit tunit
TreeWalker
protected TreeWalker(java.lang.String filename)
action_assignment_expression
protected Expression action_assignment_expression(TreeNode root)
action_compound_statement
protected CompoundStatement action_compound_statement(TreeNode root)
action_conditional_expression
protected Expression action_conditional_expression(TreeNode root)
action_declaration
protected Declaration action_declaration(TreeNode root)
action_declaration_list
protected java.util.List<Declaration> action_declaration_list(TreeNode root)
action_declaration_specifiers
protected java.util.List<Specifier> action_declaration_specifiers(TreeNode root)
action_enumerator
protected Declarator action_enumerator(TreeNode root)
action_expression
protected Expression action_expression(TreeNode root)
action_jump_statement
protected Statement action_jump_statement(TreeNode root)
action_labeled_statement
protected CompoundStatement action_labeled_statement(TreeNode root)
action_selection_statement
protected Statement action_selection_statement(TreeNode root)
action_specifier
protected Specifier action_specifier(TreeNode root)
action_statement
protected Statement action_statement(TreeNode root)
action_string_literal_list
protected java.util.List<java.lang.String> action_string_literal_list(TreeNode root)
action_translation_unit
protected TranslationUnit action_translation_unit(TreeNode root)
defaultBinaryExpressionAction
protected Expression defaultBinaryExpressionAction(TreeNode root)
defaultCompactListAction
protected java.util.List defaultCompactListAction(TreeNode root)
defaultListAction
protected java.util.List defaultListAction(TreeNode root)
defaultNotImplemented
protected java.lang.Object defaultNotImplemented(TreeNode root)
doAction
protected abstract java.lang.Object doAction(TreeNode root)
run
public abstract TranslationUnit run(TreeNode root)
symbolLookup
public Declaration symbolLookup(IDExpression id_expr)