public abstract class JavaScriptBaseParser
extends org.antlr.v4.runtime.Parser
| Constructor and Description |
|---|
JavaScriptBaseParser(org.antlr.v4.runtime.TokenStream input) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
closeBrace() |
protected boolean |
lineTerminatorAhead()
Returns
true iff on the current index of the parser's token stream a token exists on the HIDDEN
channel which either is a line terminator, or is a multi line comment that contains a line terminator. |
protected boolean |
notLineTerminator() |
protected boolean |
notOpenBraceAndNotFunction() |
protected boolean |
p(java.lang.String str)
Short form for prev(String str)
|
protected boolean |
prev(java.lang.String str)
Whether the previous token value equals to @param str
|
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTokenStream, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTokenFactory, setTokenStream, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContextsaction, addErrorListener, getATN, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getGrammarFileName, getInterpreter, getRuleIndexMap, getRuleNames, getSerializedATN, getState, getTokenErrorDisplay, getTokenNames, getTokenType, getTokenTypeMap, getVocabulary, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setStatepublic JavaScriptBaseParser(org.antlr.v4.runtime.TokenStream input)
protected boolean p(java.lang.String str)
str - parameterprotected boolean prev(java.lang.String str)
str - parameterprotected boolean notLineTerminator()
protected boolean notOpenBraceAndNotFunction()
protected boolean closeBrace()
protected boolean lineTerminatorAhead()
true iff on the current index of the parser's token stream a token exists on the HIDDEN
channel which either is a line terminator, or is a multi line comment that contains a line terminator.true iff on the current index of the parser's token stream a token exists on the HIDDEN
channel which either is a line terminator, or is a multi line comment that contains a line terminator.