public abstract class GoParserBase
extends org.antlr.v4.runtime.Parser
| Modifier | Constructor and Description |
|---|---|
protected |
GoParserBase(org.antlr.v4.runtime.TokenStream input) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkPreviousTokenText(String text) |
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 |
noTerminatorAfterParams(int tokenOffset)
Returns
true if no line terminator exists after any encounterd
parameters beyond the specified token offset and the next on the
HIDDEN channel. |
protected boolean |
noTerminatorBetween(int tokenOffset)
Returns
true if no line terminator exists between the specified
token offset and the prior one on the HIDDEN channel. |
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, setStateprotected 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.protected boolean noTerminatorBetween(int tokenOffset)
true if no line terminator exists between the specified
token offset and the prior one on the HIDDEN channel.true if no line terminator exists between the specified
token offset and the prior one on the HIDDEN channel.protected boolean noTerminatorAfterParams(int tokenOffset)
true if no line terminator exists after any encounterd
parameters beyond the specified token offset and the next on the
HIDDEN channel.true if no line terminator exists after any encounterd
parameters beyond the specified token offset and the next on the
HIDDEN channel.protected boolean checkPreviousTokenText(String text)
Copyright © 2021 Markus Heberling. All rights reserved.