Support StringTemplate, ANTLR Project by making a donation! Terence often pays for things like the antlr.org server, conference travel, and this site design (that alone cost US$1000). Buy him a beer and pizza remotely ;)
|
InterfaceParser
org.antlr.stringtemplate.language
Class InterfaceParser
java.lang.Object
antlr.Parser
antlr.LLkParser
org.antlr.stringtemplate.language.InterfaceParser
- All Implemented Interfaces:
- InterfaceParserTokenTypes
- public class InterfaceParser
- extends antlr.LLkParser
- implements InterfaceParserTokenTypes
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);
| Fields inherited from class antlr.LLkParser |
|
| 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 |
| 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 |
groupI
protected StringTemplateGroupInterface groupI
_tokenNames
public static final java.lang.String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
InterfaceParser
protected InterfaceParser(antlr.TokenBuffer tokenBuf,
int k)
InterfaceParser
public InterfaceParser(antlr.TokenBuffer tokenBuf)
InterfaceParser
protected InterfaceParser(antlr.TokenStream lexer,
int k)
InterfaceParser
public InterfaceParser(antlr.TokenStream lexer)
InterfaceParser
public InterfaceParser(antlr.ParserSharedInputState state)
reportError
public void reportError(antlr.RecognitionException e)
groupInterface
public final void groupInterface(StringTemplateGroupInterface groupI)
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
template
public final void template(StringTemplateGroupInterface groupI)
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
args
public final java.util.LinkedHashMap args()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
|