| java.lang.Object persistence.antlr.DefineGrammarSymbols
All known Subclasses: persistence.antlr.MakeGrammar,
DefineGrammarSymbols | public class DefineGrammarSymbols implements ANTLRGrammarParseBehavior(Code) | | DefineGrammarSymbols is a behavior for the ANTLRParser that adds all
the token and rule symbols to the grammar symbol table.
Token types are assigned to token symbols in this class also.
The token type for a token is done in the order seen (lexically).
|
Method Summary | |
public void | _refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule) | public void | _refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule) | public void | abortGrammar() | public void | beginAlt(boolean doAST_) | 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 void | defineRuleName(Token r, String access, boolean ruleAutoGen, String docComment) | public void | defineToken(Token tokname, Token tokliteral) Define a token from tokens {...}. | public void | endAlt() | public void | endChildList() | public void | endExceptionGroup() | public void | endExceptionSpec() | public void | endGrammar() | public void | endOptions() Called after the optional options section, to compensate for
options that may not have been set. | public void | endRule(String r) | public void | endSubRule() | public void | endTree() | public String | getHeaderAction(String name) | public void | hasError() | public void | noASTSubRule() | 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 | refHeaderAction(Token name, Token act) | 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 assignId, 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 void | setCharVocabulary(BitSet b) | public void | setFileOption(Token key, Token value, String filename) setFileOption: Associate an option value with a key. | public void | setGrammarOption(Token key, Token value) setGrammarOption: Associate an option value with a key. | public void | setRuleOption(Token key, Token value) | public void | setSubruleOption(Token key, Token value) | public void | setUserExceptions(String thr) | public void | startLexer(String file, Token name, String superClass, String doc) | public void | startParser(String file, Token name, String superClass, String doc) | public void | startTreeWalker(String file, Token name, String superClass, String doc) | public void | synPred() | public void | zeroOrMoreSubRule() |
DEFAULT_TOKENMANAGER_NAME | final static String DEFAULT_TOKENMANAGER_NAME(Code) | | |
numLexers | protected int numLexers(Code) | | |
numParsers | protected int numParsers(Code) | | |
numTreeParsers | protected int numTreeParsers(Code) | | |
_refStringLiteral | public void _refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code) | | |
_refToken | public void _refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code) | | Reference a token
|
abortGrammar | public void abortGrammar()(Code) | | Abort the processing of a grammar due to syntax errors
|
beginAlt | public void beginAlt(boolean doAST_)(Code) | | |
beginChildList | public void beginChildList()(Code) | | |
beginExceptionGroup | public void beginExceptionGroup()(Code) | | |
beginExceptionSpec | public void beginExceptionSpec(Token label)(Code) | | |
beginSubRule | public void beginSubRule(Token label, Token start, boolean not)(Code) | | |
defineToken | public void defineToken(Token tokname, Token tokliteral)(Code) | | Define a token from tokens {...}.
Must be label and literal or just label or just a literal.
|
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) | | |
endOptions | public void endOptions()(Code) | | Called after the optional options section, to compensate for
options that may not have been set.
This method is bigger than it needs to be, but is much more
clear if I delineate all the cases.
|
endSubRule | public void endSubRule()(Code) | | |
endTree | public void endTree()(Code) | | |
hasError | public void hasError()(Code) | | |
noASTSubRule | public void noASTSubRule()(Code) | | |
oneOrMoreSubRule | public void oneOrMoreSubRule()(Code) | | |
optionalSubRule | public void optionalSubRule()(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) | | |
refExceptionHandler | public void refExceptionHandler(Token exTypeAndName, Token action)(Code) | | |
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) | | |
refStringLiteral | public void refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code) | | |
refToken | public void refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code) | | Reference a token
|
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) | | |
reset | public void reset()(Code) | | Get ready to process a new grammar
|
setArgOfRuleRef | public void setArgOfRuleRef(Token argaction)(Code) | | |
setCharVocabulary | public void setCharVocabulary(BitSet b)(Code) | | Set the character vocabulary for a lexer
|
setFileOption | public void setFileOption(Token key, Token value, String filename)(Code) | | setFileOption: Associate an option value with a key.
This applies to options for an entire grammar file.
Parameters: key - The token containing the option name Parameters: value - The token containing the option value. |
setGrammarOption | public void setGrammarOption(Token key, Token value)(Code) | | setGrammarOption: Associate an option value with a key.
This function forwards to Grammar.setOption for some options.
Parameters: key - The token containing the option name Parameters: value - The token containing the option value. |
setUserExceptions | public void setUserExceptions(String thr)(Code) | | |
synPred | public void synPred()(Code) | | |
zeroOrMoreSubRule | public void zeroOrMoreSubRule()(Code) | | |
|
|