parser

package
v0.0.0-...-27647ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinmlLexerT__0          = 1
	MinmlLexerT__1          = 2
	MinmlLexerT__2          = 3
	MinmlLexerT__3          = 4
	MinmlLexerT__4          = 5
	MinmlLexerT__5          = 6
	MinmlLexerFALSE         = 7
	MinmlLexerNULL          = 8
	MinmlLexerTRUE          = 9
	MinmlLexerDQ_STRING     = 10
	MinmlLexerSQ_STRING     = 11
	MinmlLexerTRI_DQ_STRING = 12
	MinmlLexerTRI_SQ_STRING = 13
	MinmlLexerIDENTIFIER    = 14
	MinmlLexerNUMBER        = 15
	MinmlLexerLINE_COMMENT  = 16
	MinmlLexerBLOCK_COMMENT = 17
	MinmlLexerWS            = 18
)

MinmlLexer tokens.

View Source
const (
	MinmlParserEOF           = antlr.TokenEOF
	MinmlParserT__0          = 1
	MinmlParserT__1          = 2
	MinmlParserT__2          = 3
	MinmlParserT__3          = 4
	MinmlParserT__4          = 5
	MinmlParserT__5          = 6
	MinmlParserFALSE         = 7
	MinmlParserNULL          = 8
	MinmlParserTRUE          = 9
	MinmlParserDQ_STRING     = 10
	MinmlParserSQ_STRING     = 11
	MinmlParserTRI_DQ_STRING = 12
	MinmlParserTRI_SQ_STRING = 13
	MinmlParserIDENTIFIER    = 14
	MinmlParserNUMBER        = 15
	MinmlParserLINE_COMMENT  = 16
	MinmlParserBLOCK_COMMENT = 17
	MinmlParserWS            = 18
)

MinmlParser tokens.

View Source
const (
	MinmlParserRULE_root        = 0
	MinmlParserRULE_value       = 1
	MinmlParserRULE_obj         = 2
	MinmlParserRULE_pair        = 3
	MinmlParserRULE_array       = 4
	MinmlParserRULE_identifier  = 5
	MinmlParserRULE_stringValue = 6
	MinmlParserRULE_number      = 7
	MinmlParserRULE_true        = 8
	MinmlParserRULE_false       = 9
	MinmlParserRULE_null        = 10
)

MinmlParser rules.

Variables

This section is empty.

Functions

func MinmlLexerInit

func MinmlLexerInit()

MinmlLexerInit initializes any static state used to implement MinmlLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewMinmlLexer(). You can call this function if you wish to initialize the static state ahead of time.

func MinmlParserInit

func MinmlParserInit()

MinmlParserInit initializes any static state used to implement MinmlParser. By default the static state used to implement the parser is lazily initialized during the first call to NewMinmlParser(). You can call this function if you wish to initialize the static state ahead of time.

Types

type ArrayContext

type ArrayContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewArrayContext

func NewArrayContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArrayContext

func NewEmptyArrayContext

func NewEmptyArrayContext() *ArrayContext

func (*ArrayContext) Accept

func (s *ArrayContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*ArrayContext) AllValue

func (s *ArrayContext) AllValue() []IValueContext

func (*ArrayContext) EnterRule

func (s *ArrayContext) EnterRule(listener antlr.ParseTreeListener)

func (*ArrayContext) ExitRule

func (s *ArrayContext) ExitRule(listener antlr.ParseTreeListener)

func (*ArrayContext) GetParser

func (s *ArrayContext) GetParser() antlr.Parser

func (*ArrayContext) GetRuleContext

func (s *ArrayContext) GetRuleContext() antlr.RuleContext

func (*ArrayContext) IsArrayContext

func (*ArrayContext) IsArrayContext()

func (*ArrayContext) ToStringTree

func (s *ArrayContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*ArrayContext) Value

func (s *ArrayContext) Value(i int) IValueContext

type BaseMinmlListener

type BaseMinmlListener struct{}

BaseMinmlListener is a complete listener for a parse tree produced by MinmlParser.

func (*BaseMinmlListener) EnterArray

func (s *BaseMinmlListener) EnterArray(ctx *ArrayContext)

EnterArray is called when production array is entered.

func (*BaseMinmlListener) EnterEveryRule

func (s *BaseMinmlListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BaseMinmlListener) EnterFalse

func (s *BaseMinmlListener) EnterFalse(ctx *FalseContext)

EnterFalse is called when production false is entered.

func (*BaseMinmlListener) EnterIdentifier

func (s *BaseMinmlListener) EnterIdentifier(ctx *IdentifierContext)

EnterIdentifier is called when production identifier is entered.

func (*BaseMinmlListener) EnterNull

func (s *BaseMinmlListener) EnterNull(ctx *NullContext)

EnterNull is called when production null is entered.

func (*BaseMinmlListener) EnterNumber

func (s *BaseMinmlListener) EnterNumber(ctx *NumberContext)

EnterNumber is called when production number is entered.

func (*BaseMinmlListener) EnterObj

func (s *BaseMinmlListener) EnterObj(ctx *ObjContext)

EnterObj is called when production obj is entered.

func (*BaseMinmlListener) EnterPair

func (s *BaseMinmlListener) EnterPair(ctx *PairContext)

EnterPair is called when production pair is entered.

func (*BaseMinmlListener) EnterRoot

func (s *BaseMinmlListener) EnterRoot(ctx *RootContext)

EnterRoot is called when production root is entered.

func (*BaseMinmlListener) EnterStringValue

func (s *BaseMinmlListener) EnterStringValue(ctx *StringValueContext)

EnterStringValue is called when production stringValue is entered.

func (*BaseMinmlListener) EnterTrue

func (s *BaseMinmlListener) EnterTrue(ctx *TrueContext)

EnterTrue is called when production true is entered.

func (*BaseMinmlListener) EnterValue

func (s *BaseMinmlListener) EnterValue(ctx *ValueContext)

EnterValue is called when production value is entered.

func (*BaseMinmlListener) ExitArray

func (s *BaseMinmlListener) ExitArray(ctx *ArrayContext)

ExitArray is called when production array is exited.

func (*BaseMinmlListener) ExitEveryRule

func (s *BaseMinmlListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BaseMinmlListener) ExitFalse

func (s *BaseMinmlListener) ExitFalse(ctx *FalseContext)

ExitFalse is called when production false is exited.

func (*BaseMinmlListener) ExitIdentifier

func (s *BaseMinmlListener) ExitIdentifier(ctx *IdentifierContext)

ExitIdentifier is called when production identifier is exited.

func (*BaseMinmlListener) ExitNull

func (s *BaseMinmlListener) ExitNull(ctx *NullContext)

ExitNull is called when production null is exited.

func (*BaseMinmlListener) ExitNumber

func (s *BaseMinmlListener) ExitNumber(ctx *NumberContext)

ExitNumber is called when production number is exited.

func (*BaseMinmlListener) ExitObj

func (s *BaseMinmlListener) ExitObj(ctx *ObjContext)

ExitObj is called when production obj is exited.

func (*BaseMinmlListener) ExitPair

func (s *BaseMinmlListener) ExitPair(ctx *PairContext)

ExitPair is called when production pair is exited.

func (*BaseMinmlListener) ExitRoot

func (s *BaseMinmlListener) ExitRoot(ctx *RootContext)

ExitRoot is called when production root is exited.

func (*BaseMinmlListener) ExitStringValue

func (s *BaseMinmlListener) ExitStringValue(ctx *StringValueContext)

ExitStringValue is called when production stringValue is exited.

func (*BaseMinmlListener) ExitTrue

func (s *BaseMinmlListener) ExitTrue(ctx *TrueContext)

ExitTrue is called when production true is exited.

func (*BaseMinmlListener) ExitValue

func (s *BaseMinmlListener) ExitValue(ctx *ValueContext)

ExitValue is called when production value is exited.

func (*BaseMinmlListener) VisitErrorNode

func (s *BaseMinmlListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BaseMinmlListener) VisitTerminal

func (s *BaseMinmlListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type BaseMinmlVisitor

type BaseMinmlVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseMinmlVisitor) VisitArray

func (v *BaseMinmlVisitor) VisitArray(ctx *ArrayContext) any

func (*BaseMinmlVisitor) VisitFalse

func (v *BaseMinmlVisitor) VisitFalse(ctx *FalseContext) any

func (*BaseMinmlVisitor) VisitIdentifier

func (v *BaseMinmlVisitor) VisitIdentifier(ctx *IdentifierContext) any

func (*BaseMinmlVisitor) VisitNull

func (v *BaseMinmlVisitor) VisitNull(ctx *NullContext) any

func (*BaseMinmlVisitor) VisitNumber

func (v *BaseMinmlVisitor) VisitNumber(ctx *NumberContext) any

func (*BaseMinmlVisitor) VisitObj

func (v *BaseMinmlVisitor) VisitObj(ctx *ObjContext) any

func (*BaseMinmlVisitor) VisitPair

func (v *BaseMinmlVisitor) VisitPair(ctx *PairContext) any

func (*BaseMinmlVisitor) VisitRoot

func (v *BaseMinmlVisitor) VisitRoot(ctx *RootContext) any

func (*BaseMinmlVisitor) VisitStringValue

func (v *BaseMinmlVisitor) VisitStringValue(ctx *StringValueContext) any

func (*BaseMinmlVisitor) VisitTrue

func (v *BaseMinmlVisitor) VisitTrue(ctx *TrueContext) any

func (*BaseMinmlVisitor) VisitValue

func (v *BaseMinmlVisitor) VisitValue(ctx *ValueContext) any

type FalseContext

type FalseContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFalseContext

func NewEmptyFalseContext() *FalseContext

func NewFalseContext

func NewFalseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FalseContext

func (*FalseContext) Accept

func (s *FalseContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*FalseContext) EnterRule

func (s *FalseContext) EnterRule(listener antlr.ParseTreeListener)

func (*FalseContext) ExitRule

func (s *FalseContext) ExitRule(listener antlr.ParseTreeListener)

func (*FalseContext) FALSE

func (s *FalseContext) FALSE() antlr.TerminalNode

func (*FalseContext) GetParser

func (s *FalseContext) GetParser() antlr.Parser

func (*FalseContext) GetRuleContext

func (s *FalseContext) GetRuleContext() antlr.RuleContext

func (*FalseContext) IsFalseContext

func (*FalseContext) IsFalseContext()

func (*FalseContext) ToStringTree

func (s *FalseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IArrayContext

type IArrayContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllValue() []IValueContext
	Value(i int) IValueContext

	// IsArrayContext differentiates from other interfaces.
	IsArrayContext()
}

IArrayContext is an interface to support dynamic dispatch.

type IFalseContext

type IFalseContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	FALSE() antlr.TerminalNode

	// IsFalseContext differentiates from other interfaces.
	IsFalseContext()
}

IFalseContext is an interface to support dynamic dispatch.

type IIdentifierContext

type IIdentifierContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	IDENTIFIER() antlr.TerminalNode

	// IsIdentifierContext differentiates from other interfaces.
	IsIdentifierContext()
}

IIdentifierContext is an interface to support dynamic dispatch.

type INullContext

type INullContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	NULL() antlr.TerminalNode

	// IsNullContext differentiates from other interfaces.
	IsNullContext()
}

INullContext is an interface to support dynamic dispatch.

type INumberContext

type INumberContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	NUMBER() antlr.TerminalNode

	// IsNumberContext differentiates from other interfaces.
	IsNumberContext()
}

INumberContext is an interface to support dynamic dispatch.

type IObjContext

type IObjContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllPair() []IPairContext
	Pair(i int) IPairContext

	// IsObjContext differentiates from other interfaces.
	IsObjContext()
}

IObjContext is an interface to support dynamic dispatch.

type IPairContext

type IPairContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetK returns the k rule contexts.
	GetK() IValueContext

	// GetV returns the v rule contexts.
	GetV() IValueContext

	// SetK sets the k rule contexts.
	SetK(IValueContext)

	// SetV sets the v rule contexts.
	SetV(IValueContext)

	// Getter signatures
	AllValue() []IValueContext
	Value(i int) IValueContext

	// IsPairContext differentiates from other interfaces.
	IsPairContext()
}

IPairContext is an interface to support dynamic dispatch.

type IRootContext

type IRootContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Value() IValueContext

	// IsRootContext differentiates from other interfaces.
	IsRootContext()
}

IRootContext is an interface to support dynamic dispatch.

type IStringValueContext

type IStringValueContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	TRI_DQ_STRING() antlr.TerminalNode
	TRI_SQ_STRING() antlr.TerminalNode
	DQ_STRING() antlr.TerminalNode
	SQ_STRING() antlr.TerminalNode

	// IsStringValueContext differentiates from other interfaces.
	IsStringValueContext()
}

IStringValueContext is an interface to support dynamic dispatch.

type ITrueContext

type ITrueContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	TRUE() antlr.TerminalNode

	// IsTrueContext differentiates from other interfaces.
	IsTrueContext()
}

ITrueContext is an interface to support dynamic dispatch.

type IValueContext

type IValueContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Obj() IObjContext
	Array() IArrayContext
	StringValue() IStringValueContext
	Number() INumberContext
	True_() ITrueContext
	False_() IFalseContext
	Null() INullContext
	Identifier() IIdentifierContext

	// IsValueContext differentiates from other interfaces.
	IsValueContext()
}

IValueContext is an interface to support dynamic dispatch.

type IdentifierContext

type IdentifierContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIdentifierContext

func NewEmptyIdentifierContext() *IdentifierContext

func NewIdentifierContext

func NewIdentifierContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentifierContext

func (*IdentifierContext) Accept

func (s *IdentifierContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*IdentifierContext) EnterRule

func (s *IdentifierContext) EnterRule(listener antlr.ParseTreeListener)

func (*IdentifierContext) ExitRule

func (s *IdentifierContext) ExitRule(listener antlr.ParseTreeListener)

func (*IdentifierContext) GetParser

func (s *IdentifierContext) GetParser() antlr.Parser

func (*IdentifierContext) GetRuleContext

func (s *IdentifierContext) GetRuleContext() antlr.RuleContext

func (*IdentifierContext) IDENTIFIER

func (s *IdentifierContext) IDENTIFIER() antlr.TerminalNode

func (*IdentifierContext) IsIdentifierContext

func (*IdentifierContext) IsIdentifierContext()

func (*IdentifierContext) ToStringTree

func (s *IdentifierContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type MinmlLexer

type MinmlLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewMinmlLexer

func NewMinmlLexer(input antlr.CharStream) *MinmlLexer

NewMinmlLexer produces a new lexer instance for the optional input antlr.CharStream.

type MinmlListener

type MinmlListener interface {
	antlr.ParseTreeListener

	// EnterRoot is called when entering the root production.
	EnterRoot(c *RootContext)

	// EnterValue is called when entering the value production.
	EnterValue(c *ValueContext)

	// EnterObj is called when entering the obj production.
	EnterObj(c *ObjContext)

	// EnterPair is called when entering the pair production.
	EnterPair(c *PairContext)

	// EnterArray is called when entering the array production.
	EnterArray(c *ArrayContext)

	// EnterIdentifier is called when entering the identifier production.
	EnterIdentifier(c *IdentifierContext)

	// EnterStringValue is called when entering the stringValue production.
	EnterStringValue(c *StringValueContext)

	// EnterNumber is called when entering the number production.
	EnterNumber(c *NumberContext)

	// EnterTrue is called when entering the true production.
	EnterTrue(c *TrueContext)

	// EnterFalse is called when entering the false production.
	EnterFalse(c *FalseContext)

	// EnterNull is called when entering the null production.
	EnterNull(c *NullContext)

	// ExitRoot is called when exiting the root production.
	ExitRoot(c *RootContext)

	// ExitValue is called when exiting the value production.
	ExitValue(c *ValueContext)

	// ExitObj is called when exiting the obj production.
	ExitObj(c *ObjContext)

	// ExitPair is called when exiting the pair production.
	ExitPair(c *PairContext)

	// ExitArray is called when exiting the array production.
	ExitArray(c *ArrayContext)

	// ExitIdentifier is called when exiting the identifier production.
	ExitIdentifier(c *IdentifierContext)

	// ExitStringValue is called when exiting the stringValue production.
	ExitStringValue(c *StringValueContext)

	// ExitNumber is called when exiting the number production.
	ExitNumber(c *NumberContext)

	// ExitTrue is called when exiting the true production.
	ExitTrue(c *TrueContext)

	// ExitFalse is called when exiting the false production.
	ExitFalse(c *FalseContext)

	// ExitNull is called when exiting the null production.
	ExitNull(c *NullContext)
}

MinmlListener is a complete listener for a parse tree produced by MinmlParser.

type MinmlParser

type MinmlParser struct {
	*antlr.BaseParser
}

func NewMinmlParser

func NewMinmlParser(input antlr.TokenStream) *MinmlParser

NewMinmlParser produces a new parser instance for the optional input antlr.TokenStream.

func (*MinmlParser) Array

func (p *MinmlParser) Array() (localctx IArrayContext)

func (*MinmlParser) False_

func (p *MinmlParser) False_() (localctx IFalseContext)

func (*MinmlParser) Identifier

func (p *MinmlParser) Identifier() (localctx IIdentifierContext)

func (*MinmlParser) Null

func (p *MinmlParser) Null() (localctx INullContext)

func (*MinmlParser) Number

func (p *MinmlParser) Number() (localctx INumberContext)

func (*MinmlParser) Obj

func (p *MinmlParser) Obj() (localctx IObjContext)

func (*MinmlParser) Pair

func (p *MinmlParser) Pair() (localctx IPairContext)

func (*MinmlParser) Root

func (p *MinmlParser) Root() (localctx IRootContext)

func (*MinmlParser) StringValue

func (p *MinmlParser) StringValue() (localctx IStringValueContext)

func (*MinmlParser) True_

func (p *MinmlParser) True_() (localctx ITrueContext)

func (*MinmlParser) Value

func (p *MinmlParser) Value() (localctx IValueContext)

type MinmlVisitor

type MinmlVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by MinmlParser#root.
	VisitRoot(ctx *RootContext) any

	// Visit a parse tree produced by MinmlParser#value.
	VisitValue(ctx *ValueContext) any

	// Visit a parse tree produced by MinmlParser#obj.
	VisitObj(ctx *ObjContext) any

	// Visit a parse tree produced by MinmlParser#pair.
	VisitPair(ctx *PairContext) any

	// Visit a parse tree produced by MinmlParser#array.
	VisitArray(ctx *ArrayContext) any

	// Visit a parse tree produced by MinmlParser#identifier.
	VisitIdentifier(ctx *IdentifierContext) any

	// Visit a parse tree produced by MinmlParser#stringValue.
	VisitStringValue(ctx *StringValueContext) any

	// Visit a parse tree produced by MinmlParser#number.
	VisitNumber(ctx *NumberContext) any

	// Visit a parse tree produced by MinmlParser#true.
	VisitTrue(ctx *TrueContext) any

	// Visit a parse tree produced by MinmlParser#false.
	VisitFalse(ctx *FalseContext) any

	// Visit a parse tree produced by MinmlParser#null.
	VisitNull(ctx *NullContext) any
}

A complete Visitor for a parse tree produced by MinmlParser.

type NullContext

type NullContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyNullContext

func NewEmptyNullContext() *NullContext

func NewNullContext

func NewNullContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NullContext

func (*NullContext) Accept

func (s *NullContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*NullContext) EnterRule

func (s *NullContext) EnterRule(listener antlr.ParseTreeListener)

func (*NullContext) ExitRule

func (s *NullContext) ExitRule(listener antlr.ParseTreeListener)

func (*NullContext) GetParser

func (s *NullContext) GetParser() antlr.Parser

func (*NullContext) GetRuleContext

func (s *NullContext) GetRuleContext() antlr.RuleContext

func (*NullContext) IsNullContext

func (*NullContext) IsNullContext()

func (*NullContext) NULL

func (s *NullContext) NULL() antlr.TerminalNode

func (*NullContext) ToStringTree

func (s *NullContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type NumberContext

type NumberContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyNumberContext

func NewEmptyNumberContext() *NumberContext

func NewNumberContext

func NewNumberContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NumberContext

func (*NumberContext) Accept

func (s *NumberContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*NumberContext) EnterRule

func (s *NumberContext) EnterRule(listener antlr.ParseTreeListener)

func (*NumberContext) ExitRule

func (s *NumberContext) ExitRule(listener antlr.ParseTreeListener)

func (*NumberContext) GetParser

func (s *NumberContext) GetParser() antlr.Parser

func (*NumberContext) GetRuleContext

func (s *NumberContext) GetRuleContext() antlr.RuleContext

func (*NumberContext) IsNumberContext

func (*NumberContext) IsNumberContext()

func (*NumberContext) NUMBER

func (s *NumberContext) NUMBER() antlr.TerminalNode

func (*NumberContext) ToStringTree

func (s *NumberContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ObjContext

type ObjContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyObjContext

func NewEmptyObjContext() *ObjContext

func NewObjContext

func NewObjContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ObjContext

func (*ObjContext) Accept

func (s *ObjContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*ObjContext) AllPair

func (s *ObjContext) AllPair() []IPairContext

func (*ObjContext) EnterRule

func (s *ObjContext) EnterRule(listener antlr.ParseTreeListener)

func (*ObjContext) ExitRule

func (s *ObjContext) ExitRule(listener antlr.ParseTreeListener)

func (*ObjContext) GetParser

func (s *ObjContext) GetParser() antlr.Parser

func (*ObjContext) GetRuleContext

func (s *ObjContext) GetRuleContext() antlr.RuleContext

func (*ObjContext) IsObjContext

func (*ObjContext) IsObjContext()

func (*ObjContext) Pair

func (s *ObjContext) Pair(i int) IPairContext

func (*ObjContext) ToStringTree

func (s *ObjContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type PairContext

type PairContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPairContext

func NewEmptyPairContext() *PairContext

func NewPairContext

func NewPairContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PairContext

func (*PairContext) Accept

func (s *PairContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*PairContext) AllValue

func (s *PairContext) AllValue() []IValueContext

func (*PairContext) EnterRule

func (s *PairContext) EnterRule(listener antlr.ParseTreeListener)

func (*PairContext) ExitRule

func (s *PairContext) ExitRule(listener antlr.ParseTreeListener)

func (*PairContext) GetK

func (s *PairContext) GetK() IValueContext

func (*PairContext) GetParser

func (s *PairContext) GetParser() antlr.Parser

func (*PairContext) GetRuleContext

func (s *PairContext) GetRuleContext() antlr.RuleContext

func (*PairContext) GetV

func (s *PairContext) GetV() IValueContext

func (*PairContext) IsPairContext

func (*PairContext) IsPairContext()

func (*PairContext) SetK

func (s *PairContext) SetK(v IValueContext)

func (*PairContext) SetV

func (s *PairContext) SetV(v IValueContext)

func (*PairContext) ToStringTree

func (s *PairContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*PairContext) Value

func (s *PairContext) Value(i int) IValueContext

type RootContext

type RootContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyRootContext

func NewEmptyRootContext() *RootContext

func NewRootContext

func NewRootContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RootContext

func (*RootContext) Accept

func (s *RootContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*RootContext) EnterRule

func (s *RootContext) EnterRule(listener antlr.ParseTreeListener)

func (*RootContext) ExitRule

func (s *RootContext) ExitRule(listener antlr.ParseTreeListener)

func (*RootContext) GetParser

func (s *RootContext) GetParser() antlr.Parser

func (*RootContext) GetRuleContext

func (s *RootContext) GetRuleContext() antlr.RuleContext

func (*RootContext) IsRootContext

func (*RootContext) IsRootContext()

func (*RootContext) ToStringTree

func (s *RootContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*RootContext) Value

func (s *RootContext) Value() IValueContext

type StringValueContext

type StringValueContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyStringValueContext

func NewEmptyStringValueContext() *StringValueContext

func NewStringValueContext

func NewStringValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StringValueContext

func (*StringValueContext) Accept

func (s *StringValueContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*StringValueContext) DQ_STRING

func (s *StringValueContext) DQ_STRING() antlr.TerminalNode

func (*StringValueContext) EnterRule

func (s *StringValueContext) EnterRule(listener antlr.ParseTreeListener)

func (*StringValueContext) ExitRule

func (s *StringValueContext) ExitRule(listener antlr.ParseTreeListener)

func (*StringValueContext) GetParser

func (s *StringValueContext) GetParser() antlr.Parser

func (*StringValueContext) GetRuleContext

func (s *StringValueContext) GetRuleContext() antlr.RuleContext

func (*StringValueContext) IsStringValueContext

func (*StringValueContext) IsStringValueContext()

func (*StringValueContext) SQ_STRING

func (s *StringValueContext) SQ_STRING() antlr.TerminalNode

func (*StringValueContext) TRI_DQ_STRING

func (s *StringValueContext) TRI_DQ_STRING() antlr.TerminalNode

func (*StringValueContext) TRI_SQ_STRING

func (s *StringValueContext) TRI_SQ_STRING() antlr.TerminalNode

func (*StringValueContext) ToStringTree

func (s *StringValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type TrueContext

type TrueContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyTrueContext

func NewEmptyTrueContext() *TrueContext

func NewTrueContext

func NewTrueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TrueContext

func (*TrueContext) Accept

func (s *TrueContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*TrueContext) EnterRule

func (s *TrueContext) EnterRule(listener antlr.ParseTreeListener)

func (*TrueContext) ExitRule

func (s *TrueContext) ExitRule(listener antlr.ParseTreeListener)

func (*TrueContext) GetParser

func (s *TrueContext) GetParser() antlr.Parser

func (*TrueContext) GetRuleContext

func (s *TrueContext) GetRuleContext() antlr.RuleContext

func (*TrueContext) IsTrueContext

func (*TrueContext) IsTrueContext()

func (*TrueContext) TRUE

func (s *TrueContext) TRUE() antlr.TerminalNode

func (*TrueContext) ToStringTree

func (s *TrueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ValueContext

type ValueContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyValueContext

func NewEmptyValueContext() *ValueContext

func NewValueContext

func NewValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValueContext

func (*ValueContext) Accept

func (s *ValueContext) Accept(visitor antlr.ParseTreeVisitor) any

func (*ValueContext) Array

func (s *ValueContext) Array() IArrayContext

func (*ValueContext) EnterRule

func (s *ValueContext) EnterRule(listener antlr.ParseTreeListener)

func (*ValueContext) ExitRule

func (s *ValueContext) ExitRule(listener antlr.ParseTreeListener)

func (*ValueContext) False_

func (s *ValueContext) False_() IFalseContext

func (*ValueContext) GetParser

func (s *ValueContext) GetParser() antlr.Parser

func (*ValueContext) GetRuleContext

func (s *ValueContext) GetRuleContext() antlr.RuleContext

func (*ValueContext) Identifier

func (s *ValueContext) Identifier() IIdentifierContext

func (*ValueContext) IsValueContext

func (*ValueContext) IsValueContext()

func (*ValueContext) Null

func (s *ValueContext) Null() INullContext

func (*ValueContext) Number

func (s *ValueContext) Number() INumberContext

func (*ValueContext) Obj

func (s *ValueContext) Obj() IObjContext

func (*ValueContext) StringValue

func (s *ValueContext) StringValue() IStringValueContext

func (*ValueContext) ToStringTree

func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*ValueContext) True_

func (s *ValueContext) True_() ITrueContext

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL