antlr
Interface ANTLRGrammarParseBehavior
- All Known Implementing Classes:
- DefineGrammarSymbols
- public interface ANTLRGrammarParseBehavior
Method Summary |
void |
abortGrammar()
|
void |
beginAlt(boolean doAST_)
|
void |
beginChildList()
|
void |
beginExceptionGroup()
|
void |
beginExceptionSpec(Token label)
|
void |
beginSubRule(Token label,
int line,
boolean not)
|
void |
beginTree(int line)
|
void |
defineRuleName(Token r,
java.lang.String access,
boolean ruleAST,
java.lang.String docComment)
|
void |
defineToken(Token tokname,
Token tokliteral)
|
void |
endAlt()
|
void |
endChildList()
|
void |
endExceptionGroup()
|
void |
endExceptionSpec()
|
void |
endGrammar()
|
void |
endOptions()
|
void |
endRule(java.lang.String r)
|
void |
endSubRule()
|
void |
endTree()
|
void |
hasError()
|
void |
noASTSubRule()
|
void |
oneOrMoreSubRule()
|
void |
optionalSubRule()
|
void |
refAction(Token action)
|
void |
refArgAction(Token action)
|
void |
refCharLiteral(Token lit,
Token label,
boolean inverted,
int autoGenType,
boolean lastInRule)
|
void |
refCharRange(Token t1,
Token t2,
Token label,
int autoGenType,
boolean lastInRule)
|
void |
refElementOption(Token option,
Token value)
|
void |
refExceptionHandler(Token exTypeAndName,
Token action)
|
void |
refHeaderAction(Token name,
Token act)
|
void |
refInitAction(Token action)
|
void |
refMemberAction(Token act)
|
void |
refPreambleAction(Token act)
|
void |
refReturnAction(Token returnAction)
|
void |
refRule(Token idAssign,
Token r,
Token label,
Token arg,
int autoGenType)
|
void |
refSemPred(Token pred)
|
void |
refStringLiteral(Token lit,
Token label,
int autoGenType,
boolean lastInRule)
|
void |
refToken(Token assignId,
Token t,
Token label,
Token args,
boolean inverted,
int autoGenType,
boolean lastInRule)
|
void |
refTokenRange(Token t1,
Token t2,
Token label,
int autoGenType,
boolean lastInRule)
|
void |
refTokensSpecElementOption(Token tok,
Token option,
Token value)
|
void |
refTreeSpecifier(Token treeSpec)
|
void |
refWildcard(Token t,
Token label,
int autoGenType)
|
void |
setArgOfRuleRef(Token argaction)
|
void |
setCharVocabulary(BitSet b)
|
void |
setFileOption(Token key,
Token value,
java.lang.String filename)
|
void |
setGrammarOption(Token key,
Token value)
|
void |
setRuleOption(Token key,
Token value)
|
void |
setSubruleOption(Token key,
Token value)
|
void |
setUserExceptions(java.lang.String thr)
|
void |
startLexer(java.lang.String file,
Token name,
java.lang.String superClass,
java.lang.String doc)
|
void |
startParser(java.lang.String file,
Token name,
java.lang.String superClass,
java.lang.String doc)
|
void |
startTreeWalker(java.lang.String file,
Token name,
java.lang.String superClass,
java.lang.String doc)
|
void |
synPred()
|
void |
zeroOrMoreSubRule()
|
abortGrammar
public void abortGrammar()
beginAlt
public void beginAlt(boolean doAST_)
beginChildList
public void beginChildList()
beginExceptionGroup
public void beginExceptionGroup()
beginExceptionSpec
public void beginExceptionSpec(Token label)
beginSubRule
public void beginSubRule(Token label,
int line,
boolean not)
beginTree
public void beginTree(int line)
throws SemanticException
SemanticException
defineRuleName
public void defineRuleName(Token r,
java.lang.String access,
boolean ruleAST,
java.lang.String docComment)
throws SemanticException
SemanticException
defineToken
public void defineToken(Token tokname,
Token tokliteral)
endAlt
public void endAlt()
endChildList
public void endChildList()
endExceptionGroup
public void endExceptionGroup()
endExceptionSpec
public void endExceptionSpec()
endGrammar
public void endGrammar()
endOptions
public void endOptions()
endRule
public void endRule(java.lang.String r)
endSubRule
public void endSubRule()
endTree
public void endTree()
hasError
public void hasError()
noASTSubRule
public void noASTSubRule()
oneOrMoreSubRule
public void oneOrMoreSubRule()
optionalSubRule
public void optionalSubRule()
refAction
public void refAction(Token action)
refArgAction
public void refArgAction(Token action)
setUserExceptions
public void setUserExceptions(java.lang.String thr)
refCharLiteral
public void refCharLiteral(Token lit,
Token label,
boolean inverted,
int autoGenType,
boolean lastInRule)
refCharRange
public void refCharRange(Token t1,
Token t2,
Token label,
int autoGenType,
boolean lastInRule)
refElementOption
public void refElementOption(Token option,
Token value)
refTokensSpecElementOption
public void refTokensSpecElementOption(Token tok,
Token option,
Token value)
refExceptionHandler
public void refExceptionHandler(Token exTypeAndName,
Token action)
refHeaderAction
public void refHeaderAction(Token name,
Token act)
refInitAction
public void refInitAction(Token action)
refMemberAction
public void refMemberAction(Token act)
refPreambleAction
public void refPreambleAction(Token act)
refReturnAction
public void refReturnAction(Token returnAction)
refRule
public void refRule(Token idAssign,
Token r,
Token label,
Token arg,
int autoGenType)
refSemPred
public void refSemPred(Token pred)
refStringLiteral
public void refStringLiteral(Token lit,
Token label,
int autoGenType,
boolean lastInRule)
refToken
public void refToken(Token assignId,
Token t,
Token label,
Token args,
boolean inverted,
int autoGenType,
boolean lastInRule)
refTokenRange
public void refTokenRange(Token t1,
Token t2,
Token label,
int autoGenType,
boolean lastInRule)
refTreeSpecifier
public void refTreeSpecifier(Token treeSpec)
refWildcard
public void refWildcard(Token t,
Token label,
int autoGenType)
setArgOfRuleRef
public void setArgOfRuleRef(Token argaction)
setCharVocabulary
public void setCharVocabulary(BitSet b)
setFileOption
public void setFileOption(Token key,
Token value,
java.lang.String filename)
setGrammarOption
public void setGrammarOption(Token key,
Token value)
setRuleOption
public void setRuleOption(Token key,
Token value)
setSubruleOption
public void setSubruleOption(Token key,
Token value)
startLexer
public void startLexer(java.lang.String file,
Token name,
java.lang.String superClass,
java.lang.String doc)
startParser
public void startParser(java.lang.String file,
Token name,
java.lang.String superClass,
java.lang.String doc)
startTreeWalker
public void startTreeWalker(java.lang.String file,
Token name,
java.lang.String superClass,
java.lang.String doc)
synPred
public void synPred()
zeroOrMoreSubRule
public void zeroOrMoreSubRule()