org.antlr.stringtemplate.language
Class StringTemplateLanguageParser
java.lang.Object
antlr.Parser
antlr.LLkParser
org.antlr.stringtemplate.language.StringTemplateLanguageParser
- All Implemented Interfaces:
- StringTemplateLanguageParserTokenTypes
- public class StringTemplateLanguageParser
- extends antlr.LLkParser
- implements StringTemplateLanguageParserTokenTypes
Fields inherited from interface org.antlr.stringtemplate.language.StringTemplateLanguageParserTokenTypes |
ANONYMOUS_TEMPLATE, APPLY, ARGS, ASSIGN, COLON, COMMA, CONDITIONAL, DOT, EOF, ESC_CHAR, ID, INCLUDE, INT, LITERAL_separator, LPAREN, NESTED_ANONYMOUS_TEMPLATE, NOT, NULL_TREE_LOOKAHEAD, PLUS, RPAREN, SEMI, STRING, TEMPLATE, VALUE, 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, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_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
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
StringTemplateLanguageParser
public StringTemplateLanguageParser(antlr.TokenStream lexer,
StringTemplate self)
StringTemplateLanguageParser
public StringTemplateLanguageParser(antlr.TokenBuffer tokenBuf)
StringTemplateLanguageParser
public StringTemplateLanguageParser(antlr.TokenStream lexer)
StringTemplateLanguageParser
public StringTemplateLanguageParser(antlr.ParserSharedInputState state)
action
public final java.util.Map action()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
templatesExpr
public final void templatesExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
optionList
public final java.util.Map optionList()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
ifCondition
public final void ifCondition()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
expr
public final void expr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
ifAtom
public final void ifAtom()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
atom
public final void atom()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
attribute
public final void attribute()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
templateInclude
public final void templateInclude()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
template
public final void template()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
nonAlternatingTemplateExpr
public final void nonAlternatingTemplateExpr()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
namedTemplate
public final void namedTemplate()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
anonymousTemplate
public final void anonymousTemplate()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
argList
public final void argList()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
objPropertyRef
public final void objPropertyRef()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
indirectTemplate
public final void indirectTemplate()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Match (foo)() and (foo+".terse")(); TJP turns off since it
breaks encapsulation
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
argumentAssignment
public final void argumentAssignment()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException