Versions in this module Expand all Collapse all v4 v4.12.43 Apr 12, 2023 v4.12.42 Apr 12, 2023 v4.12.3 Apr 12, 2023 v4.12.2 Apr 12, 2023 Changes in this version + const ATNStateBasic + const ATNStateBlockEnd + const ATNStateBlockStart + const ATNStateInvalidStateNumber + const ATNStateInvalidType + const ATNStateLoopEnd + const ATNStatePlusBlockStart + const ATNStatePlusLoopBack + const ATNStateRuleStart + const ATNStateRuleStop + const ATNStateStarBlockStart + const ATNStateStarLoopBack + const ATNStateStarLoopEntry + const ATNStateTokenStart + const ATNTypeLexer + const ATNTypeParser + const BasePredictionContextEmptyReturnState + const DefaultProgramName + const LL1AnalyzerHitPred + const LexerActionTypeChannel + const LexerActionTypeCustom + const LexerActionTypeMode + const LexerActionTypeMore + const LexerActionTypePopMode + const LexerActionTypePushMode + const LexerActionTypeSkip + const LexerActionTypeType + const LexerDefaultMode + const LexerDefaultTokenChannel + const LexerHidden + const LexerMaxCharValue + const LexerMinCharValue + const LexerMore + const LexerSkip + const MinTokenIndex + const PredictionContextArray + const PredictionContextEmpty + const PredictionContextSingleton + const PredictionModeLL + const PredictionModeLLExactAmbigDetection + const PredictionModeSLL + const ProgramInitSize + const TokenDefaultChannel + const TokenEOF + const TokenEpsilon + const TokenHiddenChannel + const TokenInvalidType + const TokenMinUserTokenType + const TransitionACTION + const TransitionATOM + const TransitionEPSILON + const TransitionNOTSET + const TransitionPRECEDENCE + const TransitionPREDICATE + const TransitionRANGE + const TransitionRULE + const TransitionSET + const TransitionWILDCARD + var ATNInvalidAltNumber int + var ATNSimulatorError = NewDFAState(0x7FFFFFFF, NewATNConfigSet(false)) + var ATNStateInitialNumTransitions = 4 + var BasePredictionContextEMPTY = &PredictionContext + var BasePredictionContextglobalNodeCount = 1 + var BasePredictionContextid = BasePredictionContextglobalNodeCount + var CollectionDescriptors = map[CollectionSource]CollectionDescriptor + var CommonTokenFactoryDEFAULT = NewCommonTokenFactory(false) + var ConsoleErrorListenerINSTANCE = NewConsoleErrorListener() + var ErrEmptyStack = errors.New("stack is empty") + var LexerATNSimulatorMatchCalls = 0 + var LexerATNSimulatorMaxDFAEdge = 127 + var LexerATNSimulatorMinDFAEdge = 0 + var LexerMoreActionINSTANCE = NewLexerMoreAction() + var LexerPopModeActionINSTANCE = NewLexerPopModeAction() + var LexerSkipActionINSTANCE = NewLexerSkipAction() + var ParseTreeWalkerDefault = NewParseTreeWalker() + var ParserRuleContextEmpty = NewBaseParserRuleContext(nil, -1) + var SemanticContextNone = NewPredicate(-1, -1, false) + var Statistics = &goRunStats + var TransitionserializationNames = []string + var TreeInvalidInterval = NewInterval(-1, -2) + func ConfigureRuntime(options ...runtimeOption) error + func EscapeWhitespace(s string, escapeSpaces bool) string + func InitBaseParserRuleContext(prc *BaseParserRuleContext, parent ParserRuleContext, invokingStateNumber int) + func PredictionModeallConfigsInRuleStopStates(configs *ATNConfigSet) bool + func PredictionModeallSubsetsConflict(altsets []*BitSet) bool + func PredictionModeallSubsetsEqual(altsets []*BitSet) bool + func PredictionModegetSingleViableAlt(altsets []*BitSet) int + func PredictionModegetUniqueAlt(altsets []*BitSet) int + func PredictionModehasConfigInRuleStopState(configs *ATNConfigSet) bool + func PredictionModehasConflictingAltSet(altsets []*BitSet) bool + func PredictionModehasNonConflictingAltSet(altsets []*BitSet) bool + func PredictionModehasSLLConflictTerminatingPrediction(mode int, configs *ATNConfigSet) bool + func PredictionModehasStateAssociatedWithOneAlt(configs *ATNConfigSet) bool + func PredictionModeresolvesToJustOneViableAlt(altsets []*BitSet) int + func PrintArrayJavaStyle(sa []string) string + func TerminalNodeToStringArray(sa []TerminalNode) []string + func TreesGetNodeText(t Tree, ruleNames []string, recog Parser) string + func TreesStringTree(tree Tree, ruleNames []string, recog Recognizer) string + func WithLRLoopEntryBranchOpt(off bool) runtimeOption + func WithLexerATNSimulatorDFADebug(debug bool) runtimeOption + func WithLexerATNSimulatorDebug(debug bool) runtimeOption + func WithMemoryManager(use bool) runtimeOption + func WithParserATNSimulatorDFADebug(debug bool) runtimeOption + func WithParserATNSimulatorDebug(debug bool) runtimeOption + func WithParserATNSimulatorRetryDebug(debug bool) runtimeOption + func WithParserATNSimulatorTraceATNSim(trace bool) runtimeOption + func WithStatsTraceStacks(trace bool) runtimeOption + func WithTopN(topN int) statsOption + type AND struct + func NewAND(a, b SemanticContext) *AND + func (a *AND) Equals(other Collectable[SemanticContext]) bool + func (a *AND) Hash() int + func (a *AND) String() string + type ATN struct + DecisionToState []DecisionState + func NewATN(grammarType int, maxTokenType int) *ATN + func (a *ATN) NextTokens(s ATNState, ctx RuleContext) *IntervalSet + func (a *ATN) NextTokensInContext(s ATNState, ctx RuleContext) *IntervalSet + func (a *ATN) NextTokensNoContext(s ATNState) *IntervalSet + type ATNAltConfigComparator struct + func (c *ATNAltConfigComparator[T]) Equals2(o1, o2 *ATNConfig) bool + func (c *ATNAltConfigComparator[T]) Hash1(o *ATNConfig) int + type ATNConfig struct + func NewATNConfig(c *ATNConfig, state ATNState, context *PredictionContext, ...) *ATNConfig + func NewATNConfig1(c *ATNConfig, state ATNState, context *PredictionContext) *ATNConfig + func NewATNConfig2(c *ATNConfig, semanticContext SemanticContext) *ATNConfig + func NewATNConfig3(c *ATNConfig, state ATNState, semanticContext SemanticContext) *ATNConfig + func NewATNConfig4(c *ATNConfig, state ATNState) *ATNConfig + func NewATNConfig5(state ATNState, alt int, context *PredictionContext, ...) *ATNConfig + func NewATNConfig6(state ATNState, alt int, context *PredictionContext) *ATNConfig + func NewLexerATNConfig1(state ATNState, alt int, context *PredictionContext) *ATNConfig + func NewLexerATNConfig2(c *ATNConfig, state ATNState, context *PredictionContext) *ATNConfig + func NewLexerATNConfig3(c *ATNConfig, state ATNState, lexerActionExecutor *LexerActionExecutor) *ATNConfig + func NewLexerATNConfig4(c *ATNConfig, state ATNState) *ATNConfig + func NewLexerATNConfig6(state ATNState, alt int, context *PredictionContext) *ATNConfig + func (a *ATNConfig) Equals(o Collectable[*ATNConfig]) bool + func (a *ATNConfig) GetAlt() int + func (a *ATNConfig) GetContext() *PredictionContext + func (a *ATNConfig) GetReachesIntoOuterContext() int + func (a *ATNConfig) GetSemanticContext() SemanticContext + func (a *ATNConfig) GetState() ATNState + func (a *ATNConfig) Hash() int + func (a *ATNConfig) InitATNConfig(c *ATNConfig, state ATNState, alt int, context *PredictionContext, ...) + func (a *ATNConfig) LEquals(other Collectable[*ATNConfig]) bool + func (a *ATNConfig) LHash() int + func (a *ATNConfig) PEquals(o Collectable[*ATNConfig]) bool + func (a *ATNConfig) PHash() int + func (a *ATNConfig) SetContext(v *PredictionContext) + func (a *ATNConfig) SetReachesIntoOuterContext(v int) + func (a *ATNConfig) String() string + type ATNConfigComparator struct + func (c *ATNConfigComparator[T]) Equals2(o1, o2 *ATNConfig) bool + func (c *ATNConfigComparator[T]) Hash1(o *ATNConfig) int + type ATNConfigSet struct + func NewATNConfigSet(fullCtx bool) *ATNConfigSet + func NewOrderedATNConfigSet() *ATNConfigSet + func (b *ATNConfigSet) Add(config *ATNConfig, mergeCache *JPCMap) bool + func (b *ATNConfigSet) AddAll(coll []*ATNConfig) bool + func (b *ATNConfigSet) Alts() *BitSet + func (b *ATNConfigSet) Clear() + func (b *ATNConfigSet) Compare(bs *ATNConfigSet) bool + func (b *ATNConfigSet) Contains(item *ATNConfig) bool + func (b *ATNConfigSet) ContainsFast(item *ATNConfig) bool + func (b *ATNConfigSet) Equals(other Collectable[ATNConfig]) bool + func (b *ATNConfigSet) GetPredicates() []SemanticContext + func (b *ATNConfigSet) GetStates() *JStore[ATNState, Comparator[ATNState]] + func (b *ATNConfigSet) Hash() int + func (b *ATNConfigSet) OptimizeConfigs(interpreter *BaseATNSimulator) + func (b *ATNConfigSet) String() string + type ATNConfigSetPair struct + type ATNDeserializationOptions struct + func DefaultATNDeserializationOptions() *ATNDeserializationOptions + func NewATNDeserializationOptions(other *ATNDeserializationOptions) *ATNDeserializationOptions + func (opts *ATNDeserializationOptions) GenerateRuleBypassTransitions() bool + func (opts *ATNDeserializationOptions) ReadOnly() bool + func (opts *ATNDeserializationOptions) SetGenerateRuleBypassTransitions(generateRuleBypassTransitions bool) + func (opts *ATNDeserializationOptions) SetReadOnly(readOnly bool) + func (opts *ATNDeserializationOptions) SetVerifyATN(verifyATN bool) + func (opts *ATNDeserializationOptions) VerifyATN() bool + type ATNDeserializer struct + func NewATNDeserializer(options *ATNDeserializationOptions) *ATNDeserializer + func (a *ATNDeserializer) Deserialize(data []int32) *ATN + type ATNState interface + AddTransition func(Transition, int) + Equals func(Collectable[ATNState]) bool + GetATN func() *ATN + GetEpsilonOnlyTransitions func() bool + GetNextTokenWithinRule func() *IntervalSet + GetRuleIndex func() int + GetStateNumber func() int + GetStateType func() int + GetTransitions func() []Transition + Hash func() int + SetATN func(*ATN) + SetNextTokenWithinRule func(*IntervalSet) + SetRuleIndex func(int) + SetStateNumber func(int) + SetTransitions func([]Transition) + String func() string + type AbstractPredicateTransition interface + IAbstractPredicateTransitionFoo func() + type ActionTransition struct + func NewActionTransition(target ATNState, ruleIndex, actionIndex int, isCtxDependent bool) *ActionTransition + func (t *ActionTransition) Matches(_, _, _ int) bool + func (t *ActionTransition) String() string + type AltDict struct + func NewAltDict() *AltDict + func PredictionModeGetStateToAltMap(configs *ATNConfigSet) *AltDict + func (a *AltDict) Get(key string) interface{} + type AtomTransition struct + func NewAtomTransition(target ATNState, intervalSet int) *AtomTransition + func (t *AtomTransition) Matches(symbol, _, _ int) bool + func (t *AtomTransition) String() string + type BailErrorStrategy struct + func NewBailErrorStrategy() *BailErrorStrategy + func (b *BailErrorStrategy) Recover(recognizer Parser, e RecognitionException) + func (b *BailErrorStrategy) RecoverInline(recognizer Parser) Token + func (b *BailErrorStrategy) Sync(_ Parser) + type BaseATNConfigComparator struct + func (c *BaseATNConfigComparator[T]) Equals2(o1, o2 *ATNConfig) bool + func (c *BaseATNConfigComparator[T]) Hash1(o *ATNConfig) int + type BaseATNSimulator struct + func (b *BaseATNSimulator) ATN() *ATN + func (b *BaseATNSimulator) DecisionToDFA() []*DFA + func (b *BaseATNSimulator) SharedContextCache() *PredictionContextCache + type BaseATNState struct + NextTokenWithinRule *IntervalSet + func NewATNState() *BaseATNState + func (as *BaseATNState) AddTransition(trans Transition, index int) + func (as *BaseATNState) Equals(other Collectable[ATNState]) bool + func (as *BaseATNState) GetATN() *ATN + func (as *BaseATNState) GetEpsilonOnlyTransitions() bool + func (as *BaseATNState) GetNextTokenWithinRule() *IntervalSet + func (as *BaseATNState) GetRuleIndex() int + func (as *BaseATNState) GetStateNumber() int + func (as *BaseATNState) GetStateType() int + func (as *BaseATNState) GetTransitions() []Transition + func (as *BaseATNState) Hash() int + func (as *BaseATNState) SetATN(atn *ATN) + func (as *BaseATNState) SetNextTokenWithinRule(v *IntervalSet) + func (as *BaseATNState) SetRuleIndex(v int) + func (as *BaseATNState) SetStateNumber(stateNumber int) + func (as *BaseATNState) SetTransitions(t []Transition) + func (as *BaseATNState) String() string + type BaseAbstractPredicateTransition struct + func NewBasePredicateTransition(target ATNState) *BaseAbstractPredicateTransition + func (a *BaseAbstractPredicateTransition) IAbstractPredicateTransitionFoo() + type BaseBlockStartState struct + func NewBlockStartState() *BaseBlockStartState + type BaseDecisionState struct + func NewBaseDecisionState() *BaseDecisionState + type BaseInterpreterRuleContext struct + func NewBaseInterpreterRuleContext(parent BaseInterpreterRuleContext, invokingStateNumber, ruleIndex int) *BaseInterpreterRuleContext + type BaseLexer struct + ActionType int + Interpreter ILexerATNSimulator + TokenStartCharIndex int + TokenStartColumn int + TokenStartLine int + Virt Lexer + func NewBaseLexer(input CharStream) *BaseLexer + func (b *BaseLexer) Emit() Token + func (b *BaseLexer) EmitEOF() Token + func (b *BaseLexer) EmitToken(token Token) + func (b *BaseLexer) GetATN() *ATN + func (b *BaseLexer) GetAllTokens() []Token + func (b *BaseLexer) GetCharIndex() int + func (b *BaseLexer) GetCharPositionInLine() int + func (b *BaseLexer) GetInputStream() CharStream + func (b *BaseLexer) GetInterpreter() ILexerATNSimulator + func (b *BaseLexer) GetLine() int + func (b *BaseLexer) GetSourceName() string + func (b *BaseLexer) GetText() string + func (b *BaseLexer) GetTokenFactory() TokenFactory + func (b *BaseLexer) GetTokenSourceCharStreamPair() *TokenSourceCharStreamPair + func (b *BaseLexer) GetType() int + func (b *BaseLexer) More() + func (b *BaseLexer) NextToken() Token + func (b *BaseLexer) PopMode() int + func (b *BaseLexer) PushMode(m int) + func (b *BaseLexer) Recover(re RecognitionException) + func (b *BaseLexer) Reset() + func (b *BaseLexer) SetChannel(v int) + func (b *BaseLexer) SetInputStream(input CharStream) + func (b *BaseLexer) SetMode(m int) + func (b *BaseLexer) SetText(text string) + func (b *BaseLexer) SetType(t int) + func (b *BaseLexer) Skip() + type BaseLexerAction struct + func NewBaseLexerAction(action int) *BaseLexerAction + func (b *BaseLexerAction) Equals(other LexerAction) bool + func (b *BaseLexerAction) Hash() int + type BaseParseTreeListener struct + func (l *BaseParseTreeListener) EnterEveryRule(_ ParserRuleContext) + func (l *BaseParseTreeListener) ExitEveryRule(_ ParserRuleContext) + func (l *BaseParseTreeListener) VisitErrorNode(_ ErrorNode) + func (l *BaseParseTreeListener) VisitTerminal(_ TerminalNode) + type BaseParseTreeVisitor struct + func (v *BaseParseTreeVisitor) Visit(tree ParseTree) interface{} + func (v *BaseParseTreeVisitor) VisitChildren(_ RuleNode) interface{} + func (v *BaseParseTreeVisitor) VisitErrorNode(_ ErrorNode) interface{} + func (v *BaseParseTreeVisitor) VisitTerminal(_ TerminalNode) interface{} + type BaseParser struct + BuildParseTrees bool + Interpreter *ParserATNSimulator + func NewBaseParser(input TokenStream) *BaseParser + func (p *BaseParser) AddParseListener(listener ParseTreeListener) + func (p *BaseParser) Consume() Token + func (p *BaseParser) DumpDFA() + func (p *BaseParser) EnterOuterAlt(localctx ParserRuleContext, altNum int) + func (p *BaseParser) EnterRecursionRule(localctx ParserRuleContext, state, _, precedence int) + func (p *BaseParser) EnterRule(localctx ParserRuleContext, state, _ int) + func (p *BaseParser) ExitRule() + func (p *BaseParser) GetATN() *ATN + func (p *BaseParser) GetATNWithBypassAlts() + func (p *BaseParser) GetCurrentToken() Token + func (p *BaseParser) GetDFAStrings() string + func (p *BaseParser) GetErrorHandler() ErrorStrategy + func (p *BaseParser) GetExpectedTokens() *IntervalSet + func (p *BaseParser) GetExpectedTokensWithinCurrentRule() *IntervalSet + func (p *BaseParser) GetInputStream() IntStream + func (p *BaseParser) GetInterpreter() *ParserATNSimulator + func (p *BaseParser) GetInvokingContext(ruleIndex int) ParserRuleContext + func (p *BaseParser) GetParseListeners() []ParseTreeListener + func (p *BaseParser) GetParserRuleContext() ParserRuleContext + func (p *BaseParser) GetPrecedence() int + func (p *BaseParser) GetRuleIndex(ruleName string) int + func (p *BaseParser) GetRuleInvocationStack(c ParserRuleContext) []string + func (p *BaseParser) GetSourceName() string + func (p *BaseParser) GetTokenFactory() TokenFactory + func (p *BaseParser) GetTokenStream() TokenStream + func (p *BaseParser) IsExpectedToken(symbol int) bool + func (p *BaseParser) Match(ttype int) Token + func (p *BaseParser) MatchWildcard() Token + func (p *BaseParser) NotifyErrorListeners(msg string, offendingToken Token, err RecognitionException) + func (p *BaseParser) Precpred(_ RuleContext, precedence int) bool + func (p *BaseParser) PushNewRecursionContext(localctx ParserRuleContext, state, _ int) + func (p *BaseParser) RemoveParseListener(listener ParseTreeListener) + func (p *BaseParser) SetErrorHandler(e ErrorStrategy) + func (p *BaseParser) SetInputStream(input TokenStream) + func (p *BaseParser) SetParserRuleContext(v ParserRuleContext) + func (p *BaseParser) SetTokenStream(input TokenStream) + func (p *BaseParser) SetTrace(trace *TraceListener) + func (p *BaseParser) TriggerEnterRuleEvent() + func (p *BaseParser) TriggerExitRuleEvent() + func (p *BaseParser) UnrollRecursionContexts(parentCtx ParserRuleContext) + type BaseParserRuleContext struct + RuleIndex int + func NewBaseParserRuleContext(parent ParserRuleContext, invokingStateNumber int) *BaseParserRuleContext + func (prc *BaseParserRuleContext) Accept(visitor ParseTreeVisitor) interface{} + func (prc *BaseParserRuleContext) AddChild(child RuleContext) RuleContext + func (prc *BaseParserRuleContext) AddErrorNode(badToken Token) *ErrorNodeImpl + func (prc *BaseParserRuleContext) AddTokenNode(token Token) *TerminalNodeImpl + func (prc *BaseParserRuleContext) CopyFrom(ctx *BaseParserRuleContext) + func (prc *BaseParserRuleContext) EnterRule(_ ParseTreeListener) + func (prc *BaseParserRuleContext) ExitRule(_ ParseTreeListener) + func (prc *BaseParserRuleContext) GetAltNumber() int + func (prc *BaseParserRuleContext) GetChild(i int) Tree + func (prc *BaseParserRuleContext) GetChildCount() int + func (prc *BaseParserRuleContext) GetChildOfType(i int, childType reflect.Type) RuleContext + func (prc *BaseParserRuleContext) GetChildren() []Tree + func (prc *BaseParserRuleContext) GetInvokingState() int + func (prc *BaseParserRuleContext) GetParent() Tree + func (prc *BaseParserRuleContext) GetPayload() interface{} + func (prc *BaseParserRuleContext) GetRuleContext() RuleContext + func (prc *BaseParserRuleContext) GetRuleIndex() int + func (prc *BaseParserRuleContext) GetSourceInterval() Interval + func (prc *BaseParserRuleContext) GetStart() Token + func (prc *BaseParserRuleContext) GetStop() Token + func (prc *BaseParserRuleContext) GetText() string + func (prc *BaseParserRuleContext) GetToken(ttype int, i int) TerminalNode + func (prc *BaseParserRuleContext) GetTokens(ttype int) []TerminalNode + func (prc *BaseParserRuleContext) GetTypedRuleContext(ctxType reflect.Type, i int) RuleContext + func (prc *BaseParserRuleContext) GetTypedRuleContexts(ctxType reflect.Type) []RuleContext + func (prc *BaseParserRuleContext) IsEmpty() bool + func (prc *BaseParserRuleContext) RemoveLastChild() + func (prc *BaseParserRuleContext) SetAltNumber(_ int) + func (prc *BaseParserRuleContext) SetException(e RecognitionException) + func (prc *BaseParserRuleContext) SetInvokingState(t int) + func (prc *BaseParserRuleContext) SetParent(v Tree) + func (prc *BaseParserRuleContext) SetStart(t Token) + func (prc *BaseParserRuleContext) SetStop(t Token) + func (prc *BaseParserRuleContext) String(ruleNames []string, stop RuleContext) string + func (prc *BaseParserRuleContext) ToStringTree(ruleNames []string, recog Recognizer) string + type BaseRecognitionException struct + func NewBaseRecognitionException(message string, recognizer Recognizer, input IntStream, ctx RuleContext) *BaseRecognitionException + func (b *BaseRecognitionException) GetInputStream() IntStream + func (b *BaseRecognitionException) GetMessage() string + func (b *BaseRecognitionException) GetOffendingToken() Token + func (b *BaseRecognitionException) String() string + type BaseRecognizer struct + GrammarFileName string + LiteralNames []string + RuleNames []string + SymbolicNames []string + SynErr RecognitionException + func NewBaseRecognizer() *BaseRecognizer + func (b *BaseRecognizer) Action(_ RuleContext, _, _ int) + func (b *BaseRecognizer) AddErrorListener(listener ErrorListener) + func (b *BaseRecognizer) GetError() RecognitionException + func (b *BaseRecognizer) GetErrorHeader(e RecognitionException) string + func (b *BaseRecognizer) GetErrorListenerDispatch() ErrorListener + func (b *BaseRecognizer) GetLiteralNames() []string + func (b *BaseRecognizer) GetRuleIndexMap() map[string]int + func (b *BaseRecognizer) GetRuleNames() []string + func (b *BaseRecognizer) GetState() int + func (b *BaseRecognizer) GetSymbolicNames() []string + func (b *BaseRecognizer) GetTokenErrorDisplay(t Token) string + func (b *BaseRecognizer) GetTokenNames() []string + func (b *BaseRecognizer) GetTokenType(_ string) int + func (b *BaseRecognizer) HasError() bool + func (b *BaseRecognizer) Precpred(_ RuleContext, _ int) bool + func (b *BaseRecognizer) RemoveErrorListeners() + func (b *BaseRecognizer) Sempred(_ RuleContext, _ int, _ int) bool + func (b *BaseRecognizer) SetError(err RecognitionException) + func (b *BaseRecognizer) SetState(v int) + type BaseRewriteOperation struct + func (op *BaseRewriteOperation) Execute(_ *bytes.Buffer) int + func (op *BaseRewriteOperation) GetIndex() int + func (op *BaseRewriteOperation) GetInstructionIndex() int + func (op *BaseRewriteOperation) GetOpName() string + func (op *BaseRewriteOperation) GetText() string + func (op *BaseRewriteOperation) GetTokens() TokenStream + func (op *BaseRewriteOperation) SetIndex(val int) + func (op *BaseRewriteOperation) SetInstructionIndex(val int) + func (op *BaseRewriteOperation) SetOpName(val string) + func (op *BaseRewriteOperation) SetText(val string) + func (op *BaseRewriteOperation) SetTokens(val TokenStream) + func (op *BaseRewriteOperation) String() string + type BaseToken struct + func (b *BaseToken) GetChannel() int + func (b *BaseToken) GetColumn() int + func (b *BaseToken) GetInputStream() CharStream + func (b *BaseToken) GetLine() int + func (b *BaseToken) GetSource() *TokenSourceCharStreamPair + func (b *BaseToken) GetStart() int + func (b *BaseToken) GetStop() int + func (b *BaseToken) GetTokenIndex() int + func (b *BaseToken) GetTokenSource() TokenSource + func (b *BaseToken) GetTokenType() int + func (b *BaseToken) SetTokenIndex(v int) + type BaseTransition struct + func NewBaseTransition(target ATNState) *BaseTransition + func (t *BaseTransition) Matches(_, _, _ int) bool + type BasicBlockStartState struct + func NewBasicBlockStartState() *BasicBlockStartState + type BasicState struct + func NewBasicState() *BasicState + type BitSet struct + func NewBitSet() *BitSet + func PredictionModeGetAlts(altsets []*BitSet) *BitSet + func PredictionModegetConflictingAltSubsets(configs *ATNConfigSet) []*BitSet + func (b *BitSet) String() string + type BlockEndState struct + func NewBlockEndState() *BlockEndState + type BlockStartState interface + type CharStream interface + GetText func(int, int) string + GetTextFromInterval func(Interval) string + GetTextFromTokens func(start, end Token) string + type ClosureBusy struct + func NewClosureBusy(desc string) *ClosureBusy + func (c *ClosureBusy) Put(config *ATNConfig) (*ATNConfig, bool) + type Collectable interface + Equals func(other Collectable[T]) bool + Hash func() int + type CollectionDescriptor struct + Description string + SybolicName string + type CollectionSource int + const ATNConfigCollection + const ATNConfigLookupCollection + const ATNStateCollection + const AltSetCollection + const ClosureBusyCollection + const DFAStateCollection + const MergeCacheCollection + const PredictionContextCacheCollection + const PredictionContextCollection + const PredictionVisitedCollection + const ReachSetCollection + const SemanticContextCollection + const UnknownCollection + type CommonToken struct + func NewCommonToken(source *TokenSourceCharStreamPair, tokenType, channel, start, stop int) *CommonToken + func (c *CommonToken) GetText() string + func (c *CommonToken) SetText(text string) + func (c *CommonToken) String() string + type CommonTokenFactory struct + func NewCommonTokenFactory(copyText bool) *CommonTokenFactory + func (c *CommonTokenFactory) Create(source *TokenSourceCharStreamPair, ttype int, text string, ...) Token + type CommonTokenStream struct + func NewCommonTokenStream(lexer Lexer, channel int) *CommonTokenStream + func (c *CommonTokenStream) Consume() + func (c *CommonTokenStream) Fill() + func (c *CommonTokenStream) Get(index int) Token + func (c *CommonTokenStream) GetAllText() string + func (c *CommonTokenStream) GetAllTokens() []Token + func (c *CommonTokenStream) GetHiddenTokensToLeft(tokenIndex, channel int) []Token + func (c *CommonTokenStream) GetHiddenTokensToRight(tokenIndex, channel int) []Token + func (c *CommonTokenStream) GetSourceName() string + func (c *CommonTokenStream) GetTextFromInterval(interval Interval) string + func (c *CommonTokenStream) GetTextFromRuleContext(interval RuleContext) string + func (c *CommonTokenStream) GetTextFromTokens(start, end Token) string + func (c *CommonTokenStream) GetTokenSource() TokenSource + func (c *CommonTokenStream) GetTokens(start int, stop int, types *IntervalSet) []Token + func (c *CommonTokenStream) Index() int + func (c *CommonTokenStream) LA(i int) int + func (c *CommonTokenStream) LB(k int) Token + func (c *CommonTokenStream) LT(k int) Token + func (c *CommonTokenStream) Mark() int + func (c *CommonTokenStream) NextTokenOnChannel(i, _ int) int + func (c *CommonTokenStream) Release(_ int) + func (c *CommonTokenStream) Seek(index int) + func (c *CommonTokenStream) SetTokenSource(tokenSource TokenSource) + func (c *CommonTokenStream) Size() int + func (c *CommonTokenStream) Sync(i int) bool + type Comparator interface + Equals2 func(T, T) bool + Hash1 func(o T) int + type ConsoleErrorListener struct + func NewConsoleErrorListener() *ConsoleErrorListener + func (c *ConsoleErrorListener) SyntaxError(_ Recognizer, _ interface{}, line, column int, msg string, ...) + type DFA struct + func NewDFA(atnStartState DecisionState, decision int) *DFA + func (d *DFA) Get(s *DFAState) (*DFAState, bool) + func (d *DFA) Len() int + func (d *DFA) Put(s *DFAState) (*DFAState, bool) + func (d *DFA) String(literalNames []string, symbolicNames []string) string + func (d *DFA) ToLexerString() string + type DFASerializer struct + func NewDFASerializer(dfa *DFA, literalNames, symbolicNames []string) *DFASerializer + func (d *DFASerializer) GetStateString(s *DFAState) string + func (d *DFASerializer) String() string + type DFAState struct + func NewDFAState(stateNumber int, configs *ATNConfigSet) *DFAState + func (d *DFAState) Equals(o Collectable[*DFAState]) bool + func (d *DFAState) GetAltSet() []int + func (d *DFAState) Hash() int + func (d *DFAState) String() string + type DecisionState interface + type DefaultErrorListener struct + func NewDefaultErrorListener() *DefaultErrorListener + func (d *DefaultErrorListener) ReportAmbiguity(_ Parser, _ *DFA, _, _ int, _ bool, _ *BitSet, _ *ATNConfigSet) + func (d *DefaultErrorListener) ReportAttemptingFullContext(_ Parser, _ *DFA, _, _ int, _ *BitSet, _ *ATNConfigSet) + func (d *DefaultErrorListener) ReportContextSensitivity(_ Parser, _ *DFA, _, _, _ int, _ *ATNConfigSet) + func (d *DefaultErrorListener) SyntaxError(_ Recognizer, _ interface{}, _, _ int, _ string, _ RecognitionException) + type DefaultErrorStrategy struct + func NewDefaultErrorStrategy() *DefaultErrorStrategy + func (d *DefaultErrorStrategy) GetErrorRecoverySet(recognizer Parser) *IntervalSet + func (d *DefaultErrorStrategy) GetExpectedTokens(recognizer Parser) *IntervalSet + func (d *DefaultErrorStrategy) GetMissingSymbol(recognizer Parser) Token + func (d *DefaultErrorStrategy) GetTokenErrorDisplay(t Token) string + func (d *DefaultErrorStrategy) InErrorRecoveryMode(_ Parser) bool + func (d *DefaultErrorStrategy) Recover(recognizer Parser, _ RecognitionException) + func (d *DefaultErrorStrategy) RecoverInline(recognizer Parser) Token + func (d *DefaultErrorStrategy) ReportError(recognizer Parser, e RecognitionException) + func (d *DefaultErrorStrategy) ReportFailedPredicate(recognizer Parser, e *FailedPredicateException) + func (d *DefaultErrorStrategy) ReportInputMisMatch(recognizer Parser, e *InputMisMatchException) + func (d *DefaultErrorStrategy) ReportMatch(recognizer Parser) + func (d *DefaultErrorStrategy) ReportMissingToken(recognizer Parser) + func (d *DefaultErrorStrategy) ReportNoViableAlternative(recognizer Parser, e *NoViableAltException) + func (d *DefaultErrorStrategy) ReportUnwantedToken(recognizer Parser) + func (d *DefaultErrorStrategy) SingleTokenDeletion(recognizer Parser) Token + func (d *DefaultErrorStrategy) SingleTokenInsertion(recognizer Parser) bool + func (d *DefaultErrorStrategy) Sync(recognizer Parser) + type DiagnosticErrorListener struct + func NewDiagnosticErrorListener(exactOnly bool) *DiagnosticErrorListener + func (d *DiagnosticErrorListener) ReportAmbiguity(recognizer Parser, dfa *DFA, startIndex, stopIndex int, exact bool, ...) + func (d *DiagnosticErrorListener) ReportAttemptingFullContext(recognizer Parser, dfa *DFA, startIndex, stopIndex int, _ *BitSet, ...) + func (d *DiagnosticErrorListener) ReportContextSensitivity(recognizer Parser, dfa *DFA, startIndex, stopIndex, _ int, _ *ATNConfigSet) + type EpsilonTransition struct + func NewEpsilonTransition(target ATNState, outermostPrecedenceReturn int) *EpsilonTransition + func (t *EpsilonTransition) Matches(_, _, _ int) bool + func (t *EpsilonTransition) String() string + type ErrorListener interface + ReportAmbiguity func(recognizer Parser, dfa *DFA, startIndex, stopIndex int, exact bool, ...) + ReportAttemptingFullContext func(recognizer Parser, dfa *DFA, startIndex, stopIndex int, ...) + ReportContextSensitivity func(recognizer Parser, dfa *DFA, startIndex, stopIndex, prediction int, ...) + SyntaxError func(recognizer Recognizer, offendingSymbol interface{}, line, column int, ...) + type ErrorNode interface + type ErrorNodeImpl struct + func NewErrorNodeImpl(token Token) *ErrorNodeImpl + func (e *ErrorNodeImpl) Accept(v ParseTreeVisitor) interface{} + type ErrorStrategy interface + InErrorRecoveryMode func(Parser) bool + Recover func(Parser, RecognitionException) + RecoverInline func(Parser) Token + ReportError func(Parser, RecognitionException) + ReportMatch func(Parser) + Sync func(Parser) + type FailedPredicateException struct + func NewFailedPredicateException(recognizer Parser, predicate string, message string) *FailedPredicateException + type FileStream struct + func NewFileStream(fileName string) (*FileStream, error) + func (f *FileStream) GetSourceName() string + type IATNSimulator interface + ATN func() *ATN + DecisionToDFA func() []*DFA + SharedContextCache func() *PredictionContextCache + type ILexerATNSimulator interface + Consume func(input CharStream) + GetCharPositionInLine func() int + GetLine func() int + GetText func(input CharStream) string + Match func(input CharStream, mode int) int + type InputMisMatchException struct + func NewInputMisMatchException(recognizer Parser) *InputMisMatchException + type InputStream struct + func NewInputStream(data string) *InputStream + func (*InputStream) GetSourceName() string + func (is *InputStream) Consume() + func (is *InputStream) GetText(start int, stop int) string + func (is *InputStream) GetTextFromInterval(i Interval) string + func (is *InputStream) GetTextFromTokens(start, stop Token) string + func (is *InputStream) Index() int + func (is *InputStream) LA(offset int) int + func (is *InputStream) LT(offset int) int + func (is *InputStream) Mark() int + func (is *InputStream) Release(_ int) + func (is *InputStream) Seek(index int) + func (is *InputStream) Size() int + func (is *InputStream) String() string + type InsertAfterOp struct + func NewInsertAfterOp(index int, text string, stream TokenStream) *InsertAfterOp + func (op *InsertAfterOp) Execute(buffer *bytes.Buffer) int + func (op *InsertAfterOp) String() string + type InsertBeforeOp struct + func NewInsertBeforeOp(index int, text string, stream TokenStream) *InsertBeforeOp + func (op *InsertBeforeOp) Execute(buffer *bytes.Buffer) int + func (op *InsertBeforeOp) String() string + type IntStack []int + func (s *IntStack) Pop() (int, error) + func (s *IntStack) Push(e int) + type IntStream interface + Consume func() + GetSourceName func() string + Index func() int + LA func(int) int + Mark func() int + Release func(marker int) + Seek func(index int) + Size func() int + type InterpreterRuleContext interface + type Interval struct + Start int + Stop int + func NewInterval(start, stop int) Interval + func (i Interval) Contains(item int) bool + func (i Interval) Length() int + func (i Interval) String() string + type IntervalSet struct + func NewIntervalSet() *IntervalSet + func (i *IntervalSet) Equals(other *IntervalSet) bool + func (i *IntervalSet) GetIntervals() []Interval + func (i *IntervalSet) String() string + func (i *IntervalSet) StringVerbose(literalNames []string, symbolicNames []string, elemsAreChar bool) string + type IterativeParseTreeWalker struct + func NewIterativeParseTreeWalker() *IterativeParseTreeWalker + func (i *IterativeParseTreeWalker) Walk(listener ParseTreeListener, t Tree) + type JMap struct + func NewJMap(comparator Comparator[K], cType CollectionSource, desc string) *JMap[K, V, C] + func (m *JMap[K, V, C]) Clear() + func (m *JMap[K, V, C]) Delete(key K) + func (m *JMap[K, V, C]) Get(key K) (V, bool) + func (m *JMap[K, V, C]) Len() int + func (m *JMap[K, V, C]) Put(key K, val V) (V, bool) + func (m *JMap[K, V, C]) Values() []V + type JPCEntry struct + type JPCMap struct + func NewJPCMap(cType CollectionSource, desc string) *JPCMap + func (pcm *JPCMap) Get(k1, k2 *PredictionContext) (*PredictionContext, bool) + func (pcm *JPCMap) Put(k1, k2, v *PredictionContext) + type JPCMap2 struct + func NewJPCMap2(cType CollectionSource, desc string) *JPCMap2 + func (pcm *JPCMap2) Get(k1, k2 *PredictionContext) (*PredictionContext, bool) + func (pcm *JPCMap2) Put(k1, k2, v *PredictionContext) (*PredictionContext, bool) + type JStatRec struct + CreateStack []byte + CurSize int + Description string + GetHashConflicts int + GetHits int + GetMisses int + GetNoEnt int + Gets int + MaxSize int + MaxSlotSize int + PutHashConflicts int + PutHits int + PutMisses int + Puts int + Source CollectionSource + type JStore struct + func NewJStore(comparator Comparator[T], cType CollectionSource, desc string) *JStore[T, C] + func (s *JStore[T, C]) Contains(key T) bool + func (s *JStore[T, C]) Each(f func(T) bool) + func (s *JStore[T, C]) Get(key T) (T, bool) + func (s *JStore[T, C]) Len() int + func (s *JStore[T, C]) Put(value T) (v T, exists bool) + func (s *JStore[T, C]) SortedSlice(less func(i, j T) bool) []T + func (s *JStore[T, C]) Values() []T + type LL1Analyzer struct + func NewLL1Analyzer(atn *ATN) *LL1Analyzer + func (la *LL1Analyzer) Look(s, stopState ATNState, ctx RuleContext) *IntervalSet + type Lexer interface + Emit func() Token + PopMode func() int + PushMode func(int) + SetChannel func(int) + SetMode func(int) + SetType func(int) + type LexerATNSimulator struct + CharPositionInLine int + Line int + MatchCalls int + func NewLexerATNSimulator(recog Lexer, atn *ATN, decisionToDFA []*DFA, ...) *LexerATNSimulator + func (l *LexerATNSimulator) Consume(input CharStream) + func (l *LexerATNSimulator) GetCharPositionInLine() int + func (l *LexerATNSimulator) GetLine() int + func (l *LexerATNSimulator) GetText(input CharStream) string + func (l *LexerATNSimulator) GetTokenName(tt int) string + func (l *LexerATNSimulator) Match(input CharStream, mode int) int + func (l *LexerATNSimulator) MatchATN(input CharStream) int + type LexerAction interface + Equals func(other LexerAction) bool + Hash func() int + type LexerActionExecutor struct + func LexerActionExecutorappend(lexerActionExecutor *LexerActionExecutor, lexerAction LexerAction) *LexerActionExecutor + func NewLexerActionExecutor(lexerActions []LexerAction) *LexerActionExecutor + func (l *LexerActionExecutor) Equals(other interface{}) bool + func (l *LexerActionExecutor) Hash() int + type LexerChannelAction struct + func NewLexerChannelAction(channel int) *LexerChannelAction + func (l *LexerChannelAction) Equals(other LexerAction) bool + func (l *LexerChannelAction) Hash() int + func (l *LexerChannelAction) String() string + type LexerCustomAction struct + func NewLexerCustomAction(ruleIndex, actionIndex int) *LexerCustomAction + func (l *LexerCustomAction) Equals(other LexerAction) bool + func (l *LexerCustomAction) Hash() int + type LexerDFASerializer struct + func NewLexerDFASerializer(dfa *DFA) *LexerDFASerializer + func (l *LexerDFASerializer) String() string + type LexerIndexedCustomAction struct + func NewLexerIndexedCustomAction(offset int, lexerAction LexerAction) *LexerIndexedCustomAction + func (l *LexerIndexedCustomAction) Hash() int + type LexerModeAction struct + func NewLexerModeAction(mode int) *LexerModeAction + func (l *LexerModeAction) Equals(other LexerAction) bool + func (l *LexerModeAction) Hash() int + func (l *LexerModeAction) String() string + type LexerMoreAction struct + func NewLexerMoreAction() *LexerMoreAction + func (l *LexerMoreAction) String() string + type LexerNoViableAltException struct + func NewLexerNoViableAltException(lexer Lexer, input CharStream, startIndex int, deadEndConfigs *ATNConfigSet) *LexerNoViableAltException + func (l *LexerNoViableAltException) String() string + type LexerPopModeAction struct + func NewLexerPopModeAction() *LexerPopModeAction + func (l *LexerPopModeAction) String() string + type LexerPushModeAction struct + func NewLexerPushModeAction(mode int) *LexerPushModeAction + func (l *LexerPushModeAction) Equals(other LexerAction) bool + func (l *LexerPushModeAction) Hash() int + func (l *LexerPushModeAction) String() string + type LexerSkipAction struct + func NewLexerSkipAction() *LexerSkipAction + func (b *LexerSkipAction) Equals(other LexerAction) bool + func (l *LexerSkipAction) String() string + type LexerTypeAction struct + func NewLexerTypeAction(thetype int) *LexerTypeAction + func (l *LexerTypeAction) Equals(other LexerAction) bool + func (l *LexerTypeAction) Hash() int + func (l *LexerTypeAction) String() string + type LoopEndState struct + func NewLoopEndState() *LoopEndState + type NoViableAltException struct + func NewNoViableAltException(recognizer Parser, input TokenStream, startToken Token, offendingToken Token, ...) *NoViableAltException + type NotSetTransition struct + func NewNotSetTransition(target ATNState, set *IntervalSet) *NotSetTransition + func (t *NotSetTransition) Matches(symbol, minVocabSymbol, maxVocabSymbol int) bool + func (t *NotSetTransition) String() string + type OR struct + func NewOR(a, b SemanticContext) *OR + func (o *OR) Equals(other Collectable[SemanticContext]) bool + func (o *OR) Hash() int + func (o *OR) String() string + type ObjEqComparator struct + func (c *ObjEqComparator[T]) Equals2(o1, o2 T) bool + func (c *ObjEqComparator[T]) Hash1(o T) int + type ParseCancellationException struct + func NewParseCancellationException() *ParseCancellationException + func (p ParseCancellationException) GetInputStream() IntStream + func (p ParseCancellationException) GetMessage() string + func (p ParseCancellationException) GetOffendingToken() Token + type ParseTree interface + Accept func(Visitor ParseTreeVisitor) interface{} + GetText func() string + ToStringTree func([]string, Recognizer) string + func TreesDescendants(t ParseTree) []ParseTree + func TreesFindAllTokenNodes(t ParseTree, ttype int) []ParseTree + func TreesfindAllNodes(t ParseTree, index int, findTokens bool) []ParseTree + func TreesfindAllRuleNodes(t ParseTree, ruleIndex int) []ParseTree + type ParseTreeListener interface + EnterEveryRule func(ctx ParserRuleContext) + ExitEveryRule func(ctx ParserRuleContext) + VisitErrorNode func(node ErrorNode) + VisitTerminal func(node TerminalNode) + type ParseTreeVisitor interface + Visit func(tree ParseTree) interface{} + VisitChildren func(node RuleNode) interface{} + VisitErrorNode func(node ErrorNode) interface{} + VisitTerminal func(node TerminalNode) interface{} + type ParseTreeWalker struct + func NewParseTreeWalker() *ParseTreeWalker + func (p *ParseTreeWalker) EnterRule(listener ParseTreeListener, r RuleNode) + func (p *ParseTreeWalker) ExitRule(listener ParseTreeListener, r RuleNode) + func (p *ParseTreeWalker) Walk(listener ParseTreeListener, t Tree) + type Parser interface + Consume func() Token + GetCurrentToken func() Token + GetErrorHandler func() ErrorStrategy + GetExpectedTokens func() *IntervalSet + GetInputStream func() IntStream + GetInterpreter func() *ParserATNSimulator + GetParseListeners func() []ParseTreeListener + GetParserRuleContext func() ParserRuleContext + GetPrecedence func() int + GetRuleInvocationStack func(ParserRuleContext) []string + GetTokenFactory func() TokenFactory + GetTokenStream func() TokenStream + IsExpectedToken func(int) bool + NotifyErrorListeners func(string, Token, RecognitionException) + SetErrorHandler func(ErrorStrategy) + SetParserRuleContext func(ParserRuleContext) + type ParserATNSimulator struct + func NewParserATNSimulator(parser Parser, atn *ATN, decisionToDFA []*DFA, ...) *ParserATNSimulator + func (p *ParserATNSimulator) AdaptivePredict(parser *BaseParser, input TokenStream, decision int, ...) int + func (p *ParserATNSimulator) GetAltThatFinishedDecisionEntryRule(configs *ATNConfigSet) int + func (p *ParserATNSimulator) GetPredictionMode() int + func (p *ParserATNSimulator) GetTokenName(t int) string + func (p *ParserATNSimulator) ReportAmbiguity(dfa *DFA, _ *DFAState, startIndex, stopIndex int, exact bool, ...) + func (p *ParserATNSimulator) ReportAttemptingFullContext(dfa *DFA, conflictingAlts *BitSet, configs *ATNConfigSet, ...) + func (p *ParserATNSimulator) ReportContextSensitivity(dfa *DFA, prediction int, configs *ATNConfigSet, startIndex, stopIndex int) + func (p *ParserATNSimulator) SetPredictionMode(v int) + type ParserRuleContext interface + AddChild func(child RuleContext) RuleContext + AddErrorNode func(badToken Token) *ErrorNodeImpl + AddTokenNode func(token Token) *TerminalNodeImpl + EnterRule func(listener ParseTreeListener) + ExitRule func(listener ParseTreeListener) + GetStart func() Token + GetStop func() Token + RemoveLastChild func() + SetException func(RecognitionException) + SetStart func(Token) + SetStop func(Token) + type PlusBlockStartState struct + func NewPlusBlockStartState() *PlusBlockStartState + type PlusLoopbackState struct + func NewPlusLoopbackState() *PlusLoopbackState + type PrecedencePredicate struct + func NewPrecedencePredicate(precedence int) *PrecedencePredicate + func PrecedencePredicatefilterPrecedencePredicates(set *JStore[SemanticContext, Comparator[SemanticContext]]) []*PrecedencePredicate + func (p *PrecedencePredicate) Equals(other Collectable[SemanticContext]) bool + func (p *PrecedencePredicate) Hash() int + func (p *PrecedencePredicate) String() string + type PrecedencePredicateTransition struct + func NewPrecedencePredicateTransition(target ATNState, precedence int) *PrecedencePredicateTransition + func (t *PrecedencePredicateTransition) Matches(_, _, _ int) bool + func (t *PrecedencePredicateTransition) String() string + type PredPrediction struct + func NewPredPrediction(pred SemanticContext, alt int) *PredPrediction + func (p *PredPrediction) String() string + type Predicate struct + func NewPredicate(ruleIndex, predIndex int, isCtxDependent bool) *Predicate + func (p *Predicate) Equals(other Collectable[SemanticContext]) bool + func (p *Predicate) Hash() int + func (p *Predicate) String() string + type PredicateTransition struct + func NewPredicateTransition(target ATNState, ruleIndex, predIndex int, isCtxDependent bool) *PredicateTransition + func (t *PredicateTransition) Matches(_, _, _ int) bool + func (t *PredicateTransition) String() string + type PredictionContext struct + func NewArrayPredictionContext(parents []*PredictionContext, returnStates []int) *PredictionContext + func NewBaseSingletonPredictionContext(parent *PredictionContext, returnState int) *PredictionContext + func NewEmptyPredictionContext() *PredictionContext + func SingletonBasePredictionContextCreate(parent *PredictionContext, returnState int) *PredictionContext + func (p *PredictionContext) ArrayEquals(o Collectable[*PredictionContext]) bool + func (p *PredictionContext) Equals(other Collectable[*PredictionContext]) bool + func (p *PredictionContext) GetParent(i int) *PredictionContext + func (p *PredictionContext) GetReturnStates() []int + func (p *PredictionContext) Hash() int + func (p *PredictionContext) SingletonEquals(other Collectable[*PredictionContext]) bool + func (p *PredictionContext) String() string + func (p *PredictionContext) Type() int + type PredictionContextCache struct + func NewPredictionContextCache() *PredictionContextCache + func (p *PredictionContextCache) Get(ctx *PredictionContext) (*PredictionContext, bool) + type ProxyErrorListener struct + func NewProxyErrorListener(delegates []ErrorListener) *ProxyErrorListener + func (p *ProxyErrorListener) ReportAmbiguity(recognizer Parser, dfa *DFA, startIndex, stopIndex int, exact bool, ...) + func (p *ProxyErrorListener) ReportAttemptingFullContext(recognizer Parser, dfa *DFA, startIndex, stopIndex int, ...) + func (p *ProxyErrorListener) ReportContextSensitivity(recognizer Parser, dfa *DFA, startIndex, stopIndex, prediction int, ...) + func (p *ProxyErrorListener) SyntaxError(recognizer Recognizer, offendingSymbol interface{}, line, column int, ...) + type RangeTransition struct + func NewRangeTransition(target ATNState, start, stop int) *RangeTransition + func (t *RangeTransition) Matches(symbol, _, _ int) bool + func (t *RangeTransition) String() string + type RecognitionException interface + GetInputStream func() IntStream + GetMessage func() string + GetOffendingToken func() Token + type Recognizer interface + Action func(RuleContext, int, int) + AddErrorListener func(ErrorListener) + GetATN func() *ATN + GetError func() RecognitionException + GetErrorListenerDispatch func() ErrorListener + GetLiteralNames func() []string + GetRuleNames func() []string + GetState func() int + GetSymbolicNames func() []string + HasError func() bool + Precpred func(RuleContext, int) bool + RemoveErrorListeners func() + Sempred func(RuleContext, int, int) bool + SetError func(RecognitionException) + SetState func(int) + type ReplaceOp struct + LastIndex int + func NewReplaceOp(from, to int, text string, stream TokenStream) *ReplaceOp + func (op *ReplaceOp) Execute(buffer *bytes.Buffer) int + func (op *ReplaceOp) String() string + type RewriteOperation interface + Execute func(buffer *bytes.Buffer) int + GetIndex func() int + GetInstructionIndex func() int + GetOpName func() string + GetText func() string + GetTokens func() TokenStream + SetIndex func(int) + SetInstructionIndex func(val int) + SetOpName func(string) + SetText func(string) + SetTokens func(TokenStream) + String func() string + type RuleContext interface + GetAltNumber func() int + GetInvokingState func() int + GetRuleIndex func() int + IsEmpty func() bool + SetAltNumber func(altNumber int) + SetInvokingState func(int) + String func([]string, RuleContext) string + type RuleNode interface + GetRuleContext func() RuleContext + type RuleStartState struct + func NewRuleStartState() *RuleStartState + type RuleStopState struct + func NewRuleStopState() *RuleStopState + type RuleTransition struct + func NewRuleTransition(ruleStart ATNState, ruleIndex, precedence int, followState ATNState) *RuleTransition + func (t *RuleTransition) Matches(_, _, _ int) bool + type SemCComparator struct + type SemanticContext interface + Equals func(other Collectable[SemanticContext]) bool + Hash func() int + String func() string + func SemanticContextandContext(a, b SemanticContext) SemanticContext + func SemanticContextorContext(a, b SemanticContext) SemanticContext + type SetTransition struct + func NewSetTransition(target ATNState, set *IntervalSet) *SetTransition + func (t *SetTransition) Matches(symbol, _, _ int) bool + func (t *SetTransition) String() string + type SimState struct + func NewSimState() *SimState + type StarBlockStartState struct + func NewStarBlockStartState() *StarBlockStartState + type StarLoopEntryState struct + func NewStarLoopEntryState() *StarLoopEntryState + type StarLoopbackState struct + func NewStarLoopbackState() *StarLoopbackState + type SyntaxTree interface + GetSourceInterval func() Interval + type TerminalNode interface + GetSymbol func() Token + type TerminalNodeImpl struct + func NewTerminalNodeImpl(symbol Token) *TerminalNodeImpl + func (t *TerminalNodeImpl) Accept(v ParseTreeVisitor) interface{} + func (t *TerminalNodeImpl) GetChild(_ int) Tree + func (t *TerminalNodeImpl) GetChildCount() int + func (t *TerminalNodeImpl) GetChildren() []Tree + func (t *TerminalNodeImpl) GetParent() Tree + func (t *TerminalNodeImpl) GetPayload() interface{} + func (t *TerminalNodeImpl) GetSourceInterval() Interval + func (t *TerminalNodeImpl) GetSymbol() Token + func (t *TerminalNodeImpl) GetText() string + func (t *TerminalNodeImpl) SetChildren(_ []Tree) + func (t *TerminalNodeImpl) SetParent(tree Tree) + func (t *TerminalNodeImpl) String() string + func (t *TerminalNodeImpl) ToStringTree(_ []string, _ Recognizer) string + type Token interface + GetChannel func() int + GetColumn func() int + GetInputStream func() CharStream + GetLine func() int + GetSource func() *TokenSourceCharStreamPair + GetStart func() int + GetStop func() int + GetText func() string + GetTokenIndex func() int + GetTokenSource func() TokenSource + GetTokenType func() int + SetText func(s string) + SetTokenIndex func(v int) + String func() string + type TokenFactory interface + Create func(source *TokenSourceCharStreamPair, ttype int, text string, ...) Token + type TokenSource interface + GetCharPositionInLine func() int + GetInputStream func() CharStream + GetLine func() int + GetSourceName func() string + GetTokenFactory func() TokenFactory + More func() + NextToken func() Token + Skip func() + type TokenSourceCharStreamPair struct + type TokenStream interface + Get func(index int) Token + GetAllText func() string + GetTextFromInterval func(Interval) string + GetTextFromRuleContext func(RuleContext) string + GetTextFromTokens func(Token, Token) string + GetTokenSource func() TokenSource + LT func(k int) Token + SetTokenSource func(TokenSource) + type TokenStreamRewriter struct + func NewTokenStreamRewriter(tokens TokenStream) *TokenStreamRewriter + func (tsr *TokenStreamRewriter) AddToProgram(name string, op RewriteOperation) + func (tsr *TokenStreamRewriter) Delete(programName string, from, to int) + func (tsr *TokenStreamRewriter) DeleteDefault(from, to int) + func (tsr *TokenStreamRewriter) DeleteDefaultPos(index int) + func (tsr *TokenStreamRewriter) DeleteProgram(programName string) + func (tsr *TokenStreamRewriter) DeleteProgramDefault() + func (tsr *TokenStreamRewriter) DeleteToken(programName string, from, to Token) + func (tsr *TokenStreamRewriter) DeleteTokenDefault(from, to Token) + func (tsr *TokenStreamRewriter) GetLastRewriteTokenIndex(programName string) int + func (tsr *TokenStreamRewriter) GetLastRewriteTokenIndexDefault() int + func (tsr *TokenStreamRewriter) GetProgram(name string) []RewriteOperation + func (tsr *TokenStreamRewriter) GetText(programName string, interval Interval) string + func (tsr *TokenStreamRewriter) GetTextDefault() string + func (tsr *TokenStreamRewriter) GetTokenStream() TokenStream + func (tsr *TokenStreamRewriter) InitializeProgram(name string) []RewriteOperation + func (tsr *TokenStreamRewriter) InsertAfter(programName string, index int, text string) + func (tsr *TokenStreamRewriter) InsertAfterDefault(index int, text string) + func (tsr *TokenStreamRewriter) InsertAfterToken(programName string, token Token, text string) + func (tsr *TokenStreamRewriter) InsertBefore(programName string, index int, text string) + func (tsr *TokenStreamRewriter) InsertBeforeDefault(index int, text string) + func (tsr *TokenStreamRewriter) InsertBeforeToken(programName string, token Token, text string) + func (tsr *TokenStreamRewriter) Replace(programName string, from, to int, text string) + func (tsr *TokenStreamRewriter) ReplaceDefault(from, to int, text string) + func (tsr *TokenStreamRewriter) ReplaceDefaultPos(index int, text string) + func (tsr *TokenStreamRewriter) ReplaceToken(programName string, from, to Token, text string) + func (tsr *TokenStreamRewriter) ReplaceTokenDefault(from, to Token, text string) + func (tsr *TokenStreamRewriter) ReplaceTokenDefaultPos(index Token, text string) + func (tsr *TokenStreamRewriter) Rollback(programName string, instructionIndex int) + func (tsr *TokenStreamRewriter) RollbackDefault(instructionIndex int) + func (tsr *TokenStreamRewriter) SetLastRewriteTokenIndex(programName string, i int) + type TokensStartState struct + func NewTokensStartState() *TokensStartState + type TraceListener struct + func NewTraceListener(parser *BaseParser) *TraceListener + func (t *TraceListener) EnterEveryRule(ctx ParserRuleContext) + func (t *TraceListener) ExitEveryRule(ctx ParserRuleContext) + func (t *TraceListener) VisitErrorNode(_ ErrorNode) + func (t *TraceListener) VisitTerminal(node TerminalNode) + type Transition interface + Matches func(int, int, int) bool + type Tree interface + GetChild func(i int) Tree + GetChildCount func() int + GetChildren func() []Tree + GetParent func() Tree + GetPayload func() interface{} + SetParent func(Tree) + func TreesGetChildren(t Tree) []Tree + func TreesgetAncestors(t Tree) []Tree + type VisitEntry struct + type VisitList struct + type VisitRecord struct + func NewVisitRecord() *VisitRecord + func (vr *VisitRecord) Get(k *PredictionContext) (*PredictionContext, bool) + func (vr *VisitRecord) Put(k, v *PredictionContext) (*PredictionContext, bool) + func (vr *VisitRecord) Release() + type WildcardTransition struct + func NewWildcardTransition(target ATNState) *WildcardTransition + func (t *WildcardTransition) Matches(symbol, minVocabSymbol, maxVocabSymbol int) bool + func (t *WildcardTransition) String() string