| java.lang.Object antlr.DefineGrammarSymbols antlr.MakeGrammar
Method Summary | |
public void | abortGrammar() | protected void | addElementToCurrentAlt(AlternativeElement e) | public void | beginAlt(boolean doAutoGen_) | public void | beginChildList() | public void | beginExceptionGroup() | public void | beginExceptionSpec(Token label) | public void | beginSubRule(Token label, Token start, boolean not) | public void | beginTree(Token tok) | public BlockContext | context() | public static RuleBlock | createNextTokenRule(Grammar g, Vector lexRules, String rname) Used to build nextToken() for the lexer.
This builds a rule which has every "public" rule in the given Vector of
rules as it's alternate. | public void | defineRuleName(Token r, String access, boolean ruleAutoGen, String docComment) | public void | endAlt() | public void | endChildList() | public void | endExceptionGroup() | public void | endExceptionSpec() | public void | endGrammar() | public void | endRule(String rule) | public void | endSubRule() | public void | endTree() | public void | hasError() | public void | noAutoGenSubRule() | public void | oneOrMoreSubRule() | public void | optionalSubRule() | public void | refAction(Token action) | public void | refArgAction(Token action) | public void | refCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule) | public void | refCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule) | public void | refElementOption(Token option, Token value) | public void | refExceptionHandler(Token exTypeAndName, Token action) | public void | refInitAction(Token action) | public void | refMemberAction(Token act) | public void | refPreambleAction(Token act) | public void | refReturnAction(Token returnAction) | public void | refRule(Token idAssign, Token r, Token label, Token args, int autoGenType) | public void | refSemPred(Token pred) | public void | refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule) | public void | refToken(Token idAssign, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule) | public void | refTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule) | public void | refTokensSpecElementOption(Token tok, Token option, Token value) | public void | refTreeSpecifier(Token treeSpec) | public void | refWildcard(Token t, Token label, int autoGenType) | public void | reset() | public void | setArgOfRuleRef(Token argAction) | public static void | setBlock(AlternativeBlock b, AlternativeBlock src) | public void | setRuleOption(Token key, Token value) | public void | setSubruleOption(Token key, Token value) | public void | setUserExceptions(String thr) | public void | synPred() | public void | zeroOrMoreSubRule() |
blocks | protected Stack blocks(Code) | | |
currentExceptionSpec | ExceptionSpec currentExceptionSpec(Code) | | |
grammarError | protected boolean grammarError(Code) | | |
lastRuleRef | protected RuleRefElement lastRuleRef(Code) | | |
nested | protected int nested(Code) | | |
ruleBlock | protected RuleBlock ruleBlock(Code) | | |
ruleEnd | protected RuleEndElement ruleEnd(Code) | | |
abortGrammar | public void abortGrammar()(Code) | | Abort the processing of a grammar (due to syntax errors)
|
addElementToCurrentAlt | protected void addElementToCurrentAlt(AlternativeElement e)(Code) | | |
beginAlt | public void beginAlt(boolean doAutoGen_)(Code) | | |
beginChildList | public void beginChildList()(Code) | | |
beginExceptionGroup | public void beginExceptionGroup()(Code) | | Add an exception group to a rule (currently a no-op)
|
beginExceptionSpec | public void beginExceptionSpec(Token label)(Code) | | Add an exception spec to an exception group or rule block
|
beginSubRule | public void beginSubRule(Token label, Token start, boolean not)(Code) | | |
beginTree | public void beginTree(Token tok) throws SemanticException(Code) | | |
context | public BlockContext context()(Code) | | |
createNextTokenRule | public static RuleBlock createNextTokenRule(Grammar g, Vector lexRules, String rname)(Code) | | Used to build nextToken() for the lexer.
This builds a rule which has every "public" rule in the given Vector of
rules as it's alternate. Each rule ref generates a Token object.
Parameters: g - The Grammar that is being processed Parameters: lexRules - A vector of lexer rules that will be used to create an alternate block. Parameters: rname - The name of the resulting rule. |
defineRuleName | public void defineRuleName(Token r, String access, boolean ruleAutoGen, String docComment) throws SemanticException(Code) | | |
endAlt | public void endAlt()(Code) | | |
endChildList | public void endChildList()(Code) | | |
endExceptionGroup | public void endExceptionGroup()(Code) | | |
endExceptionSpec | public void endExceptionSpec()(Code) | | |
endGrammar | public void endGrammar()(Code) | | Called at the end of processing a grammar
|
endSubRule | public void endSubRule()(Code) | | |
endTree | public void endTree()(Code) | | |
hasError | public void hasError()(Code) | | Remember that a major error occured in the grammar
|
noAutoGenSubRule | public void noAutoGenSubRule()(Code) | | |
oneOrMoreSubRule | public void oneOrMoreSubRule()(Code) | | |
optionalSubRule | public void optionalSubRule()(Code) | | |
refAction | public void refAction(Token action)(Code) | | |
refArgAction | public void refArgAction(Token action)(Code) | | |
refCharLiteral | public void refCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule)(Code) | | |
refCharRange | public void refCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code) | | |
refElementOption | public void refElementOption(Token option, Token value)(Code) | | |
refExceptionHandler | public void refExceptionHandler(Token exTypeAndName, Token action)(Code) | | Add an exception handler to an exception spec
|
refInitAction | public void refInitAction(Token action)(Code) | | |
refMemberAction | public void refMemberAction(Token act)(Code) | | |
refPreambleAction | public void refPreambleAction(Token act)(Code) | | |
refReturnAction | public void refReturnAction(Token returnAction)(Code) | | |
refRule | public void refRule(Token idAssign, Token r, Token label, Token args, int autoGenType)(Code) | | |
refSemPred | public void refSemPred(Token pred)(Code) | | |
refStringLiteral | public void refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code) | | |
refToken | public void refToken(Token idAssign, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code) | | |
refTokenRange | public void refTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code) | | |
refTokensSpecElementOption | public void refTokensSpecElementOption(Token tok, Token option, Token value)(Code) | | |
refTreeSpecifier | public void refTreeSpecifier(Token treeSpec)(Code) | | |
refWildcard | public void refWildcard(Token t, Token label, int autoGenType)(Code) | | |
reset | public void reset()(Code) | | Get ready to process a new grammar
|
setArgOfRuleRef | public void setArgOfRuleRef(Token argAction)(Code) | | |
setRuleOption | public void setRuleOption(Token key, Token value)(Code) | | |
setSubruleOption | public void setSubruleOption(Token key, Token value)(Code) | | |
setUserExceptions | public void setUserExceptions(String thr)(Code) | | |
synPred | public void synPred()(Code) | | |
zeroOrMoreSubRule | public void zeroOrMoreSubRule()(Code) | | |
Methods inherited from antlr.DefineGrammarSymbols | public void _refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code)(Java Doc) public void _refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code)(Java Doc) public void abortGrammar()(Code)(Java Doc) public void beginAlt(boolean doAST_)(Code)(Java Doc) public void beginChildList()(Code)(Java Doc) public void beginExceptionGroup()(Code)(Java Doc) public void beginExceptionSpec(Token label)(Code)(Java Doc) public void beginSubRule(Token label, Token start, boolean not)(Code)(Java Doc) public void beginTree(Token tok) throws SemanticException(Code)(Java Doc) public void defineRuleName(Token r, String access, boolean ruleAutoGen, String docComment) throws SemanticException(Code)(Java Doc) public void defineToken(Token tokname, Token tokliteral)(Code)(Java Doc) public void endAlt()(Code)(Java Doc) public void endChildList()(Code)(Java Doc) public void endExceptionGroup()(Code)(Java Doc) public void endExceptionSpec()(Code)(Java Doc) public void endGrammar()(Code)(Java Doc) public void endOptions()(Code)(Java Doc) public void endRule(String r)(Code)(Java Doc) public void endSubRule()(Code)(Java Doc) public void endTree()(Code)(Java Doc) public String getHeaderAction(String name)(Code)(Java Doc) public void hasError()(Code)(Java Doc) public void noASTSubRule()(Code)(Java Doc) public void oneOrMoreSubRule()(Code)(Java Doc) public void optionalSubRule()(Code)(Java Doc) public void refAction(Token action)(Code)(Java Doc) public void refArgAction(Token action)(Code)(Java Doc) public void refCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule)(Code)(Java Doc) public void refCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code)(Java Doc) public void refElementOption(Token option, Token value)(Code)(Java Doc) public void refExceptionHandler(Token exTypeAndName, Token action)(Code)(Java Doc) public void refHeaderAction(Token name, Token act)(Code)(Java Doc) public void refInitAction(Token action)(Code)(Java Doc) public void refMemberAction(Token act)(Code)(Java Doc) public void refPreambleAction(Token act)(Code)(Java Doc) public void refReturnAction(Token returnAction)(Code)(Java Doc) public void refRule(Token idAssign, Token r, Token label, Token args, int autoGenType)(Code)(Java Doc) public void refSemPred(Token pred)(Code)(Java Doc) public void refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code)(Java Doc) public void refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code)(Java Doc) public void refTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code)(Java Doc) public void refTokensSpecElementOption(Token tok, Token option, Token value)(Code)(Java Doc) public void refTreeSpecifier(Token treeSpec)(Code)(Java Doc) public void refWildcard(Token t, Token label, int autoGenType)(Code)(Java Doc) public void reset()(Code)(Java Doc) public void setArgOfRuleRef(Token argaction)(Code)(Java Doc) public void setCharVocabulary(BitSet b)(Code)(Java Doc) public void setFileOption(Token key, Token value, String filename)(Code)(Java Doc) public void setGrammarOption(Token key, Token value)(Code)(Java Doc) public void setRuleOption(Token key, Token value)(Code)(Java Doc) public void setSubruleOption(Token key, Token value)(Code)(Java Doc) public void setUserExceptions(String thr)(Code)(Java Doc) public void startLexer(String file, Token name, String superClass, String doc)(Code)(Java Doc) public void startParser(String file, Token name, String superClass, String doc)(Code)(Java Doc) public void startTreeWalker(String file, Token name, String superClass, String doc)(Code)(Java Doc) public void synPred()(Code)(Java Doc) public void zeroOrMoreSubRule()(Code)(Java Doc)
|
|
|