Method Summary |
|
protected void | action(Action a) Actually emit code for the specified action. |
protected void | alignment(boolean includeParser) Determine the variable alignment for parse method declarations. |
protected void | binding() Actually emit the code for the last visited binding. |
protected void | clearBinding() Clear binding information after usage. |
public String | fieldName(NonTerminal nt) Generate the field name for the specified nonterminal.
Parameters: nt - The nonterminal. |
protected boolean | hasBinding() Determine whether the current element has a binding. |
public String | methodName(NonTerminal nt) Generate the method name for the specified nonterminal.
Parameters: nt - The nonterminal. |
protected String | nestedChoice() Return the name of the parser variable for the current nested
choice level. |
protected void | nextElement() Emit the code for the next element. |
protected boolean | notFollowedBy() Determine whether we are processing a not-followed-by predicate. |
protected void | parseError() Emit the code for generating a parse error. |
protected void | parseError(String text) Emit the code for generating a parse error. |
protected void | result(String methodName, boolean saveParser) Emit the code for assigning the result variable, threading the
parse error, and for testing the result. |
protected void | returnValue() Emit the code for returning a semantic value. |
protected void | tested() Note that a test has been emitted. |
protected void | valueTest() Emit the code testing whether the result has a value. |
protected void | valueTest(String text) Emit the code for testing the result. |
public void | visit(Grammar g) Generate code for the specified grammar. |
public void | visit(Production p) Generate code for the specified production. |
public void | visit(OrderedChoice c) Generate code for the specified ordered choice. |
public void | visit(Repetition r) Generate code for the specified repetition. |
public void | visit(FollowedBy p) Generate code for the specified followed-by predicate. |
public void | visit(NotFollowedBy p) Generate code for the specified not-followed-by predicate. |
public void | visit(SemanticPredicate p) Generate code for the specified semantic predicate. |
public void | visit(Binding b) Generate code for the specified binding. |
public void | visit(StringMatch m) Generate code for the specified string match. |
public void | visit(NonTerminal nt) Generate code for the specified nonterminal. |
public void | visit(AnyChar a) Generate code for the any character element. |
public void | visit(CharLiteral l) Generate code for the specified character literal. |
public void | visit(CharClass c) Generate code for the specified character class. |
public void | visit(StringLiteral l) Generate code for the specified literal. |
public void | visit(CharSwitch s) Generate code for the specified character switch. |
public void | visit(Action a) Generate code for the specified action. |
public void | visit(NullValue v) Generate code for the specified null value. |
public void | visit(StringValue v) Generate code for the specified string value. |
public void | visit(TextValue v) Generate code for the specified text value. |
public void | visit(EmptyListValue v) Generate code for the specified empty list value. |
public void | visit(SingletonListValue v) Generate code for the specified singleton list value. |
public void | visit(ListValue v) Generate code for the specified list value. |