|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.Parser
antlr.LLkParser
org.antlr.stringtemplate.language.InterfaceParser
public class InterfaceParser
Match an ST group interface. Just a list of template names with args. Here is a sample interface file: interface nfa; nfa(states,edges); optional state(name);
Field Summary | |
---|---|
static java.lang.String[] |
_tokenNames
|
static antlr.collections.impl.BitSet |
_tokenSet_0
|
static antlr.collections.impl.BitSet |
_tokenSet_1
|
static antlr.collections.impl.BitSet |
_tokenSet_2
|
protected StringTemplateGroupInterface |
groupI
|
Fields inherited from class antlr.Parser |
---|
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Fields inherited from interface org.antlr.stringtemplate.language.InterfaceParserTokenTypes |
---|
COLON, COMMA, EOF, ID, LITERAL_interface, LITERAL_optional, LPAREN, ML_COMMENT, NULL_TREE_LOOKAHEAD, RPAREN, SEMI, SL_COMMENT, WS |
Constructor Summary | |
---|---|
|
InterfaceParser(antlr.ParserSharedInputState state)
|
|
InterfaceParser(antlr.TokenBuffer tokenBuf)
|
protected |
InterfaceParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
InterfaceParser(antlr.TokenStream lexer)
|
protected |
InterfaceParser(antlr.TokenStream lexer,
int k)
|
Method Summary | |
---|---|
java.util.LinkedHashMap |
args()
|
void |
groupInterface(StringTemplateGroupInterface groupI)
|
void |
reportError(antlr.RecognitionException e)
|
void |
template(StringTemplateGroupInterface groupI)
|
Methods inherited from class antlr.LLkParser |
---|
consume, LA, LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
---|
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StringTemplateGroupInterface groupI
public static final java.lang.String[] _tokenNames
public static final antlr.collections.impl.BitSet _tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_2
Constructor Detail |
---|
protected InterfaceParser(antlr.TokenBuffer tokenBuf, int k)
public InterfaceParser(antlr.TokenBuffer tokenBuf)
protected InterfaceParser(antlr.TokenStream lexer, int k)
public InterfaceParser(antlr.TokenStream lexer)
public InterfaceParser(antlr.ParserSharedInputState state)
Method Detail |
---|
public void reportError(antlr.RecognitionException e)
reportError
in class antlr.Parser
public final void groupInterface(StringTemplateGroupInterface groupI) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final void template(StringTemplateGroupInterface groupI) throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
public final java.util.LinkedHashMap args() throws antlr.RecognitionException, antlr.TokenStreamException
antlr.RecognitionException
antlr.TokenStreamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |