parser

package
v0.0.0-...-57ed551 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetaLexerMETA_QUALIFY_NAME   = 1
	MetaLexerSTRING              = 2
	MetaLexerBOOLEAN             = 3
	MetaLexerFLOAT               = 4
	MetaLexerINTEGER             = 5
	MetaLexerLINE_COMMENT        = 6
	MetaLexerBLOCK_COMMENT_START = 7
	MetaLexerBLOCK_COMMENT_END   = 8
	MetaLexerIDENT               = 9
	MetaLexerWS                  = 10
	MetaLexerPLUS                = 11
	MetaLexerASSIGNMENT          = 12
	MetaLexerDOT                 = 13
	MetaLexerERRCHAR             = 14
)

MetaLexer tokens.

View Source
const (
	MetaParserEOF                 = antlr.TokenEOF
	MetaParserMETA_QUALIFY_NAME   = 1
	MetaParserSTRING              = 2
	MetaParserBOOLEAN             = 3
	MetaParserFLOAT               = 4
	MetaParserINTEGER             = 5
	MetaParserLINE_COMMENT        = 6
	MetaParserBLOCK_COMMENT_START = 7
	MetaParserBLOCK_COMMENT_END   = 8
	MetaParserIDENT               = 9
	MetaParserWS                  = 10
	MetaParserPLUS                = 11
	MetaParserASSIGNMENT          = 12
	MetaParserDOT                 = 13
	MetaParserERRCHAR             = 14
)

MetaParser tokens.

View Source
const (
	MetaParserRULE_root               = 0
	MetaParserRULE_singleLine         = 1
	MetaParserRULE_multipleLine       = 2
	MetaParserRULE_metaBody           = 3
	MetaParserRULE_metaQualifyName    = 4
	MetaParserRULE_fieldExpr          = 5
	MetaParserRULE_fieldNameValueExpr = 6
	MetaParserRULE_fieldName          = 7
	MetaParserRULE_valueExpr          = 8
	MetaParserRULE_boolValue          = 9
	MetaParserRULE_strValue           = 10
	MetaParserRULE_floatValue         = 11
	MetaParserRULE_integerValue       = 12
	MetaParserRULE_fieldNameExpr      = 13
)

MetaParser rules.

Variables

This section is empty.

Functions

func MetaLexerInit

func MetaLexerInit()

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

func MetaParserInit

func MetaParserInit()

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

Types

type BaseMetaParserListener

type BaseMetaParserListener struct{}

BaseMetaParserListener is a complete listener for a parse tree produced by MetaParser.

func (*BaseMetaParserListener) EnterBoolValue

func (s *BaseMetaParserListener) EnterBoolValue(ctx *BoolValueContext)

EnterBoolValue is called when production boolValue is entered.

func (*BaseMetaParserListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseMetaParserListener) EnterFieldExpr

func (s *BaseMetaParserListener) EnterFieldExpr(ctx *FieldExprContext)

EnterFieldExpr is called when production fieldExpr is entered.

func (*BaseMetaParserListener) EnterFieldName

func (s *BaseMetaParserListener) EnterFieldName(ctx *FieldNameContext)

EnterFieldName is called when production fieldName is entered.

func (*BaseMetaParserListener) EnterFieldNameExpr

func (s *BaseMetaParserListener) EnterFieldNameExpr(ctx *FieldNameExprContext)

EnterFieldNameExpr is called when production fieldNameExpr is entered.

func (*BaseMetaParserListener) EnterFieldNameValueExpr

func (s *BaseMetaParserListener) EnterFieldNameValueExpr(ctx *FieldNameValueExprContext)

EnterFieldNameValueExpr is called when production fieldNameValueExpr is entered.

func (*BaseMetaParserListener) EnterFloatValue

func (s *BaseMetaParserListener) EnterFloatValue(ctx *FloatValueContext)

EnterFloatValue is called when production floatValue is entered.

func (*BaseMetaParserListener) EnterIntegerValue

func (s *BaseMetaParserListener) EnterIntegerValue(ctx *IntegerValueContext)

EnterIntegerValue is called when production integerValue is entered.

func (*BaseMetaParserListener) EnterMetaBody

func (s *BaseMetaParserListener) EnterMetaBody(ctx *MetaBodyContext)

EnterMetaBody is called when production metaBody is entered.

func (*BaseMetaParserListener) EnterMetaQualifyName

func (s *BaseMetaParserListener) EnterMetaQualifyName(ctx *MetaQualifyNameContext)

EnterMetaQualifyName is called when production metaQualifyName is entered.

func (*BaseMetaParserListener) EnterMultipleLine

func (s *BaseMetaParserListener) EnterMultipleLine(ctx *MultipleLineContext)

EnterMultipleLine is called when production multipleLine is entered.

func (*BaseMetaParserListener) EnterRoot

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

EnterRoot is called when production root is entered.

func (*BaseMetaParserListener) EnterSingleLine

func (s *BaseMetaParserListener) EnterSingleLine(ctx *SingleLineContext)

EnterSingleLine is called when production singleLine is entered.

func (*BaseMetaParserListener) EnterStrValue

func (s *BaseMetaParserListener) EnterStrValue(ctx *StrValueContext)

EnterStrValue is called when production strValue is entered.

func (*BaseMetaParserListener) EnterValueExpr

func (s *BaseMetaParserListener) EnterValueExpr(ctx *ValueExprContext)

EnterValueExpr is called when production valueExpr is entered.

func (*BaseMetaParserListener) ExitBoolValue

func (s *BaseMetaParserListener) ExitBoolValue(ctx *BoolValueContext)

ExitBoolValue is called when production boolValue is exited.

func (*BaseMetaParserListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseMetaParserListener) ExitFieldExpr

func (s *BaseMetaParserListener) ExitFieldExpr(ctx *FieldExprContext)

ExitFieldExpr is called when production fieldExpr is exited.

func (*BaseMetaParserListener) ExitFieldName

func (s *BaseMetaParserListener) ExitFieldName(ctx *FieldNameContext)

ExitFieldName is called when production fieldName is exited.

func (*BaseMetaParserListener) ExitFieldNameExpr

func (s *BaseMetaParserListener) ExitFieldNameExpr(ctx *FieldNameExprContext)

ExitFieldNameExpr is called when production fieldNameExpr is exited.

func (*BaseMetaParserListener) ExitFieldNameValueExpr

func (s *BaseMetaParserListener) ExitFieldNameValueExpr(ctx *FieldNameValueExprContext)

ExitFieldNameValueExpr is called when production fieldNameValueExpr is exited.

func (*BaseMetaParserListener) ExitFloatValue

func (s *BaseMetaParserListener) ExitFloatValue(ctx *FloatValueContext)

ExitFloatValue is called when production floatValue is exited.

func (*BaseMetaParserListener) ExitIntegerValue

func (s *BaseMetaParserListener) ExitIntegerValue(ctx *IntegerValueContext)

ExitIntegerValue is called when production integerValue is exited.

func (*BaseMetaParserListener) ExitMetaBody

func (s *BaseMetaParserListener) ExitMetaBody(ctx *MetaBodyContext)

ExitMetaBody is called when production metaBody is exited.

func (*BaseMetaParserListener) ExitMetaQualifyName

func (s *BaseMetaParserListener) ExitMetaQualifyName(ctx *MetaQualifyNameContext)

ExitMetaQualifyName is called when production metaQualifyName is exited.

func (*BaseMetaParserListener) ExitMultipleLine

func (s *BaseMetaParserListener) ExitMultipleLine(ctx *MultipleLineContext)

ExitMultipleLine is called when production multipleLine is exited.

func (*BaseMetaParserListener) ExitRoot

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

ExitRoot is called when production root is exited.

func (*BaseMetaParserListener) ExitSingleLine

func (s *BaseMetaParserListener) ExitSingleLine(ctx *SingleLineContext)

ExitSingleLine is called when production singleLine is exited.

func (*BaseMetaParserListener) ExitStrValue

func (s *BaseMetaParserListener) ExitStrValue(ctx *StrValueContext)

ExitStrValue is called when production strValue is exited.

func (*BaseMetaParserListener) ExitValueExpr

func (s *BaseMetaParserListener) ExitValueExpr(ctx *ValueExprContext)

ExitValueExpr is called when production valueExpr is exited.

func (*BaseMetaParserListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseMetaParserListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type BoolValueContext

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

func NewBoolValueContext

func NewBoolValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BoolValueContext

func NewEmptyBoolValueContext

func NewEmptyBoolValueContext() *BoolValueContext

func (*BoolValueContext) BOOLEAN

func (s *BoolValueContext) BOOLEAN() antlr.TerminalNode

func (*BoolValueContext) EnterRule

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

func (*BoolValueContext) ExitRule

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

func (*BoolValueContext) GetParser

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

func (*BoolValueContext) GetRuleContext

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

func (*BoolValueContext) IsBoolValueContext

func (*BoolValueContext) IsBoolValueContext()

func (*BoolValueContext) ToStringTree

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

type FieldExprContext

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

func NewEmptyFieldExprContext

func NewEmptyFieldExprContext() *FieldExprContext

func NewFieldExprContext

func NewFieldExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FieldExprContext

func (*FieldExprContext) EnterRule

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

func (*FieldExprContext) ExitRule

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

func (*FieldExprContext) FieldNameExpr

func (s *FieldExprContext) FieldNameExpr() IFieldNameExprContext

func (*FieldExprContext) FieldNameValueExpr

func (s *FieldExprContext) FieldNameValueExpr() IFieldNameValueExprContext

func (*FieldExprContext) GetParser

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

func (*FieldExprContext) GetRuleContext

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

func (*FieldExprContext) IsFieldExprContext

func (*FieldExprContext) IsFieldExprContext()

func (*FieldExprContext) ToStringTree

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

type FieldNameContext

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

func NewEmptyFieldNameContext

func NewEmptyFieldNameContext() *FieldNameContext

func NewFieldNameContext

func NewFieldNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FieldNameContext

func (*FieldNameContext) EnterRule

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

func (*FieldNameContext) ExitRule

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

func (*FieldNameContext) GetParser

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

func (*FieldNameContext) GetRuleContext

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

func (*FieldNameContext) IDENT

func (s *FieldNameContext) IDENT() antlr.TerminalNode

func (*FieldNameContext) IsFieldNameContext

func (*FieldNameContext) IsFieldNameContext()

func (*FieldNameContext) ToStringTree

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

type FieldNameExprContext

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

func NewEmptyFieldNameExprContext

func NewEmptyFieldNameExprContext() *FieldNameExprContext

func NewFieldNameExprContext

func NewFieldNameExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FieldNameExprContext

func (*FieldNameExprContext) EnterRule

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

func (*FieldNameExprContext) ExitRule

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

func (*FieldNameExprContext) FieldName

func (s *FieldNameExprContext) FieldName() IFieldNameContext

func (*FieldNameExprContext) GetParser

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

func (*FieldNameExprContext) GetRuleContext

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

func (*FieldNameExprContext) IsFieldNameExprContext

func (*FieldNameExprContext) IsFieldNameExprContext()

func (*FieldNameExprContext) ToStringTree

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

type FieldNameValueExprContext

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

func NewEmptyFieldNameValueExprContext

func NewEmptyFieldNameValueExprContext() *FieldNameValueExprContext

func NewFieldNameValueExprContext

func NewFieldNameValueExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FieldNameValueExprContext

func (*FieldNameValueExprContext) ASSIGNMENT

func (*FieldNameValueExprContext) EnterRule

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

func (*FieldNameValueExprContext) ExitRule

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

func (*FieldNameValueExprContext) FieldName

func (*FieldNameValueExprContext) GetParser

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

func (*FieldNameValueExprContext) GetRuleContext

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

func (*FieldNameValueExprContext) IsFieldNameValueExprContext

func (*FieldNameValueExprContext) IsFieldNameValueExprContext()

func (*FieldNameValueExprContext) ToStringTree

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

func (*FieldNameValueExprContext) ValueExpr

type FloatValueContext

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

func NewEmptyFloatValueContext

func NewEmptyFloatValueContext() *FloatValueContext

func NewFloatValueContext

func NewFloatValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FloatValueContext

func (*FloatValueContext) EnterRule

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

func (*FloatValueContext) ExitRule

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

func (*FloatValueContext) FLOAT

func (*FloatValueContext) GetParser

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

func (*FloatValueContext) GetRuleContext

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

func (*FloatValueContext) IsFloatValueContext

func (*FloatValueContext) IsFloatValueContext()

func (*FloatValueContext) ToStringTree

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

type IBoolValueContext

type IBoolValueContext interface {
	antlr.ParserRuleContext

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

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

IBoolValueContext is an interface to support dynamic dispatch.

type IFieldExprContext

type IFieldExprContext interface {
	antlr.ParserRuleContext

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

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

IFieldExprContext is an interface to support dynamic dispatch.

type IFieldNameContext

type IFieldNameContext interface {
	antlr.ParserRuleContext

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

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

IFieldNameContext is an interface to support dynamic dispatch.

type IFieldNameExprContext

type IFieldNameExprContext interface {
	antlr.ParserRuleContext

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

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

IFieldNameExprContext is an interface to support dynamic dispatch.

type IFieldNameValueExprContext

type IFieldNameValueExprContext interface {
	antlr.ParserRuleContext

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

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

IFieldNameValueExprContext is an interface to support dynamic dispatch.

type IFloatValueContext

type IFloatValueContext interface {
	antlr.ParserRuleContext

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

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

IFloatValueContext is an interface to support dynamic dispatch.

type IIntegerValueContext

type IIntegerValueContext interface {
	antlr.ParserRuleContext

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

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

IIntegerValueContext is an interface to support dynamic dispatch.

type IMetaBodyContext

type IMetaBodyContext interface {
	antlr.ParserRuleContext

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

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

IMetaBodyContext is an interface to support dynamic dispatch.

type IMetaQualifyNameContext

type IMetaQualifyNameContext interface {
	antlr.ParserRuleContext

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

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

IMetaQualifyNameContext is an interface to support dynamic dispatch.

type IMultipleLineContext

type IMultipleLineContext interface {
	antlr.ParserRuleContext

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

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

IMultipleLineContext is an interface to support dynamic dispatch.

type IRootContext

type IRootContext interface {
	antlr.ParserRuleContext

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

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

IRootContext is an interface to support dynamic dispatch.

type ISingleLineContext

type ISingleLineContext interface {
	antlr.ParserRuleContext

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

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

ISingleLineContext is an interface to support dynamic dispatch.

type IStrValueContext

type IStrValueContext interface {
	antlr.ParserRuleContext

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

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

IStrValueContext is an interface to support dynamic dispatch.

type IValueExprContext

type IValueExprContext interface {
	antlr.ParserRuleContext

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

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

IValueExprContext is an interface to support dynamic dispatch.

type IntegerValueContext

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

func NewEmptyIntegerValueContext

func NewEmptyIntegerValueContext() *IntegerValueContext

func NewIntegerValueContext

func NewIntegerValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IntegerValueContext

func (*IntegerValueContext) EnterRule

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

func (*IntegerValueContext) ExitRule

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

func (*IntegerValueContext) GetParser

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

func (*IntegerValueContext) GetRuleContext

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

func (*IntegerValueContext) INTEGER

func (s *IntegerValueContext) INTEGER() antlr.TerminalNode

func (*IntegerValueContext) IsIntegerValueContext

func (*IntegerValueContext) IsIntegerValueContext()

func (*IntegerValueContext) ToStringTree

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

type MetaBodyContext

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

func NewEmptyMetaBodyContext

func NewEmptyMetaBodyContext() *MetaBodyContext

func NewMetaBodyContext

func NewMetaBodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MetaBodyContext

func (*MetaBodyContext) AllFieldExpr

func (s *MetaBodyContext) AllFieldExpr() []IFieldExprContext

func (*MetaBodyContext) EnterRule

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

func (*MetaBodyContext) ExitRule

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

func (*MetaBodyContext) FieldExpr

func (s *MetaBodyContext) FieldExpr(i int) IFieldExprContext

func (*MetaBodyContext) GetParser

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

func (*MetaBodyContext) GetRuleContext

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

func (*MetaBodyContext) IsMetaBodyContext

func (*MetaBodyContext) IsMetaBodyContext()

func (*MetaBodyContext) MetaQualifyName

func (s *MetaBodyContext) MetaQualifyName() IMetaQualifyNameContext

func (*MetaBodyContext) ToStringTree

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

type MetaLexer

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

func NewMetaLexer

func NewMetaLexer(input antlr.CharStream) *MetaLexer

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

type MetaParser

type MetaParser struct {
	*antlr.BaseParser
}

func NewMetaParser

func NewMetaParser(input antlr.TokenStream) *MetaParser

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

func (*MetaParser) BoolValue

func (p *MetaParser) BoolValue() (localctx IBoolValueContext)

func (*MetaParser) FieldExpr

func (p *MetaParser) FieldExpr() (localctx IFieldExprContext)

func (*MetaParser) FieldName

func (p *MetaParser) FieldName() (localctx IFieldNameContext)

func (*MetaParser) FieldNameExpr

func (p *MetaParser) FieldNameExpr() (localctx IFieldNameExprContext)

func (*MetaParser) FieldNameValueExpr

func (p *MetaParser) FieldNameValueExpr() (localctx IFieldNameValueExprContext)

func (*MetaParser) FloatValue

func (p *MetaParser) FloatValue() (localctx IFloatValueContext)

func (*MetaParser) IntegerValue

func (p *MetaParser) IntegerValue() (localctx IIntegerValueContext)

func (*MetaParser) MetaBody

func (p *MetaParser) MetaBody() (localctx IMetaBodyContext)

func (*MetaParser) MetaQualifyName

func (p *MetaParser) MetaQualifyName() (localctx IMetaQualifyNameContext)

func (*MetaParser) MultipleLine

func (p *MetaParser) MultipleLine() (localctx IMultipleLineContext)

func (*MetaParser) Root

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

func (*MetaParser) SingleLine

func (p *MetaParser) SingleLine() (localctx ISingleLineContext)

func (*MetaParser) StrValue

func (p *MetaParser) StrValue() (localctx IStrValueContext)

func (*MetaParser) ValueExpr

func (p *MetaParser) ValueExpr() (localctx IValueExprContext)

type MetaParserListener

type MetaParserListener interface {
	antlr.ParseTreeListener

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

	// EnterSingleLine is called when entering the singleLine production.
	EnterSingleLine(c *SingleLineContext)

	// EnterMultipleLine is called when entering the multipleLine production.
	EnterMultipleLine(c *MultipleLineContext)

	// EnterMetaBody is called when entering the metaBody production.
	EnterMetaBody(c *MetaBodyContext)

	// EnterMetaQualifyName is called when entering the metaQualifyName production.
	EnterMetaQualifyName(c *MetaQualifyNameContext)

	// EnterFieldExpr is called when entering the fieldExpr production.
	EnterFieldExpr(c *FieldExprContext)

	// EnterFieldNameValueExpr is called when entering the fieldNameValueExpr production.
	EnterFieldNameValueExpr(c *FieldNameValueExprContext)

	// EnterFieldName is called when entering the fieldName production.
	EnterFieldName(c *FieldNameContext)

	// EnterValueExpr is called when entering the valueExpr production.
	EnterValueExpr(c *ValueExprContext)

	// EnterBoolValue is called when entering the boolValue production.
	EnterBoolValue(c *BoolValueContext)

	// EnterStrValue is called when entering the strValue production.
	EnterStrValue(c *StrValueContext)

	// EnterFloatValue is called when entering the floatValue production.
	EnterFloatValue(c *FloatValueContext)

	// EnterIntegerValue is called when entering the integerValue production.
	EnterIntegerValue(c *IntegerValueContext)

	// EnterFieldNameExpr is called when entering the fieldNameExpr production.
	EnterFieldNameExpr(c *FieldNameExprContext)

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

	// ExitSingleLine is called when exiting the singleLine production.
	ExitSingleLine(c *SingleLineContext)

	// ExitMultipleLine is called when exiting the multipleLine production.
	ExitMultipleLine(c *MultipleLineContext)

	// ExitMetaBody is called when exiting the metaBody production.
	ExitMetaBody(c *MetaBodyContext)

	// ExitMetaQualifyName is called when exiting the metaQualifyName production.
	ExitMetaQualifyName(c *MetaQualifyNameContext)

	// ExitFieldExpr is called when exiting the fieldExpr production.
	ExitFieldExpr(c *FieldExprContext)

	// ExitFieldNameValueExpr is called when exiting the fieldNameValueExpr production.
	ExitFieldNameValueExpr(c *FieldNameValueExprContext)

	// ExitFieldName is called when exiting the fieldName production.
	ExitFieldName(c *FieldNameContext)

	// ExitValueExpr is called when exiting the valueExpr production.
	ExitValueExpr(c *ValueExprContext)

	// ExitBoolValue is called when exiting the boolValue production.
	ExitBoolValue(c *BoolValueContext)

	// ExitStrValue is called when exiting the strValue production.
	ExitStrValue(c *StrValueContext)

	// ExitFloatValue is called when exiting the floatValue production.
	ExitFloatValue(c *FloatValueContext)

	// ExitIntegerValue is called when exiting the integerValue production.
	ExitIntegerValue(c *IntegerValueContext)

	// ExitFieldNameExpr is called when exiting the fieldNameExpr production.
	ExitFieldNameExpr(c *FieldNameExprContext)
}

MetaParserListener is a complete listener for a parse tree produced by MetaParser.

type MetaQualifyNameContext

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

func NewEmptyMetaQualifyNameContext

func NewEmptyMetaQualifyNameContext() *MetaQualifyNameContext

func NewMetaQualifyNameContext

func NewMetaQualifyNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MetaQualifyNameContext

func (*MetaQualifyNameContext) EnterRule

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

func (*MetaQualifyNameContext) ExitRule

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

func (*MetaQualifyNameContext) GetParser

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

func (*MetaQualifyNameContext) GetRuleContext

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

func (*MetaQualifyNameContext) IsMetaQualifyNameContext

func (*MetaQualifyNameContext) IsMetaQualifyNameContext()

func (*MetaQualifyNameContext) META_QUALIFY_NAME

func (s *MetaQualifyNameContext) META_QUALIFY_NAME() antlr.TerminalNode

func (*MetaQualifyNameContext) ToStringTree

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

type MultipleLineContext

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

func NewEmptyMultipleLineContext

func NewEmptyMultipleLineContext() *MultipleLineContext

func NewMultipleLineContext

func NewMultipleLineContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MultipleLineContext

func (*MultipleLineContext) BLOCK_COMMENT_END

func (s *MultipleLineContext) BLOCK_COMMENT_END() antlr.TerminalNode

func (*MultipleLineContext) BLOCK_COMMENT_START

func (s *MultipleLineContext) BLOCK_COMMENT_START() antlr.TerminalNode

func (*MultipleLineContext) EnterRule

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

func (*MultipleLineContext) ExitRule

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

func (*MultipleLineContext) GetParser

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

func (*MultipleLineContext) GetRuleContext

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

func (*MultipleLineContext) IsMultipleLineContext

func (*MultipleLineContext) IsMultipleLineContext()

func (*MultipleLineContext) MetaBody

func (s *MultipleLineContext) MetaBody() IMetaBodyContext

func (*MultipleLineContext) ToStringTree

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

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) EOF

func (s *RootContext) EOF() antlr.TerminalNode

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) MultipleLine

func (s *RootContext) MultipleLine() IMultipleLineContext

func (*RootContext) SingleLine

func (s *RootContext) SingleLine() ISingleLineContext

func (*RootContext) ToStringTree

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

type SingleLineContext

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

func NewEmptySingleLineContext

func NewEmptySingleLineContext() *SingleLineContext

func NewSingleLineContext

func NewSingleLineContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SingleLineContext

func (*SingleLineContext) EnterRule

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

func (*SingleLineContext) ExitRule

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

func (*SingleLineContext) GetParser

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

func (*SingleLineContext) GetRuleContext

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

func (*SingleLineContext) IsSingleLineContext

func (*SingleLineContext) IsSingleLineContext()

func (*SingleLineContext) LINE_COMMENT

func (s *SingleLineContext) LINE_COMMENT() antlr.TerminalNode

func (*SingleLineContext) MetaBody

func (s *SingleLineContext) MetaBody() IMetaBodyContext

func (*SingleLineContext) ToStringTree

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

type StrValueContext

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

func NewEmptyStrValueContext

func NewEmptyStrValueContext() *StrValueContext

func NewStrValueContext

func NewStrValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StrValueContext

func (*StrValueContext) EnterRule

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

func (*StrValueContext) ExitRule

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

func (*StrValueContext) GetParser

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

func (*StrValueContext) GetRuleContext

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

func (*StrValueContext) IsStrValueContext

func (*StrValueContext) IsStrValueContext()

func (*StrValueContext) STRING

func (s *StrValueContext) STRING() antlr.TerminalNode

func (*StrValueContext) ToStringTree

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

type ValueExprContext

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

func NewEmptyValueExprContext

func NewEmptyValueExprContext() *ValueExprContext

func NewValueExprContext

func NewValueExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValueExprContext

func (*ValueExprContext) BoolValue

func (s *ValueExprContext) BoolValue() IBoolValueContext

func (*ValueExprContext) EnterRule

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

func (*ValueExprContext) ExitRule

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

func (*ValueExprContext) FloatValue

func (s *ValueExprContext) FloatValue() IFloatValueContext

func (*ValueExprContext) GetParser

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

func (*ValueExprContext) GetRuleContext

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

func (*ValueExprContext) IntegerValue

func (s *ValueExprContext) IntegerValue() IIntegerValueContext

func (*ValueExprContext) IsValueExprContext

func (*ValueExprContext) IsValueExprContext()

func (*ValueExprContext) StrValue

func (s *ValueExprContext) StrValue() IStrValueContext

func (*ValueExprContext) ToStringTree

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

Jump to

Keyboard shortcuts

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