const lexerConfig … const parserConfig … type ATNConfig … // NewATNConfig6 creates a new ATNConfig instance given a state, alt and context only func NewATNConfig6(state ATNState, alt int, context *PredictionContext) *ATNConfig { … } // NewATNConfig5 creates a new ATNConfig instance given a state, alt, context and semantic context func NewATNConfig5(state ATNState, alt int, context *PredictionContext, semanticContext SemanticContext) *ATNConfig { … } // NewATNConfig4 creates a new ATNConfig instance given an existing config, and a state only func NewATNConfig4(c *ATNConfig, state ATNState) *ATNConfig { … } // NewATNConfig3 creates a new ATNConfig instance given an existing config, a state and a semantic context func NewATNConfig3(c *ATNConfig, state ATNState, semanticContext SemanticContext) *ATNConfig { … } // NewATNConfig2 creates a new ATNConfig instance given an existing config, and a context only func NewATNConfig2(c *ATNConfig, semanticContext SemanticContext) *ATNConfig { … } // NewATNConfig1 creates a new ATNConfig instance given an existing config, a state, and a context only func NewATNConfig1(c *ATNConfig, state ATNState, context *PredictionContext) *ATNConfig { … } // NewATNConfig creates a new ATNConfig instance given an existing config, a state, a context and a semantic context, other 'constructors' // are just wrappers around this one. func NewATNConfig(c *ATNConfig, state ATNState, context *PredictionContext, semanticContext SemanticContext) *ATNConfig { … } func (a *ATNConfig) InitATNConfig(c *ATNConfig, state ATNState, alt int, context *PredictionContext, semanticContext SemanticContext) { … } func (a *ATNConfig) getPrecedenceFilterSuppressed() bool { … } func (a *ATNConfig) setPrecedenceFilterSuppressed(v bool) { … } // GetState returns the ATN state associated with this configuration func (a *ATNConfig) GetState() ATNState { … } // GetAlt returns the alternative associated with this configuration func (a *ATNConfig) GetAlt() int { … } // SetContext sets the rule invocation stack associated with this configuration func (a *ATNConfig) SetContext(v *PredictionContext) { … } // GetContext returns the rule invocation stack associated with this configuration func (a *ATNConfig) GetContext() *PredictionContext { … } // GetSemanticContext returns the semantic context associated with this configuration func (a *ATNConfig) GetSemanticContext() SemanticContext { … } // GetReachesIntoOuterContext returns the count of references to an outer context from this configuration func (a *ATNConfig) GetReachesIntoOuterContext() int { … } // SetReachesIntoOuterContext sets the count of references to an outer context from this configuration func (a *ATNConfig) SetReachesIntoOuterContext(v int) { … } // Equals is the default comparison function for an ATNConfig when no specialist implementation is required // for a collection. // // An ATN configuration is equal to another if both have the same state, they // predict the same alternative, and syntactic/semantic contexts are the same. func (a *ATNConfig) Equals(o Collectable[*ATNConfig]) bool { … } // PEquals is the default comparison function for a Parser ATNConfig when no specialist implementation is required // for a collection. // // An ATN configuration is equal to another if both have the same state, they // predict the same alternative, and syntactic/semantic contexts are the same. func (a *ATNConfig) PEquals(o Collectable[*ATNConfig]) bool { … } // Hash is the default hash function for a parser ATNConfig, when no specialist hash function // is required for a collection func (a *ATNConfig) Hash() int { … } // PHash is the default hash function for a parser ATNConfig, when no specialist hash function // is required for a collection func (a *ATNConfig) PHash() int { … } // String returns a string representation of the ATNConfig, usually used for debugging purposes func (a *ATNConfig) String() string { … } func NewLexerATNConfig6(state ATNState, alt int, context *PredictionContext) *ATNConfig { … } func NewLexerATNConfig4(c *ATNConfig, state ATNState) *ATNConfig { … } func NewLexerATNConfig3(c *ATNConfig, state ATNState, lexerActionExecutor *LexerActionExecutor) *ATNConfig { … } func NewLexerATNConfig2(c *ATNConfig, state ATNState, context *PredictionContext) *ATNConfig { … } //goland:noinspection GoUnusedExportedFunction func NewLexerATNConfig1(state ATNState, alt int, context *PredictionContext) *ATNConfig { … } // LHash is the default hash function for Lexer ATNConfig objects, it can be used directly or via // the default comparator [ObjEqComparator]. func (a *ATNConfig) LHash() int { … } // LEquals is the default comparison function for Lexer ATNConfig objects, it can be used directly or via // the default comparator [ObjEqComparator]. func (a *ATNConfig) LEquals(other Collectable[*ATNConfig]) bool { … } func checkNonGreedyDecision(source *ATNConfig, target ATNState) bool { … }