parser

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StowageLexerT__0       = 1
	StowageLexerT__1       = 2
	StowageLexerT__2       = 3
	StowageLexerT__3       = 4
	StowageLexerT__4       = 5
	StowageLexerT__5       = 6
	StowageLexerT__6       = 7
	StowageLexerT__7       = 8
	StowageLexerT__8       = 9
	StowageLexerT__9       = 10
	StowageLexerT__10      = 11
	StowageLexerT__11      = 12
	StowageLexerT__12      = 13
	StowageLexerT__13      = 14
	StowageLexerT__14      = 15
	StowageLexerT__15      = 16
	StowageLexerT__16      = 17
	StowageLexerT__17      = 18
	StowageLexerT__18      = 19
	StowageLexerT__19      = 20
	StowageLexerT__20      = 21
	StowageLexerT__21      = 22
	StowageLexerT__22      = 23
	StowageLexerCOL        = 24
	StowageLexerCOMMENT    = 25
	StowageLexerUNIQUE     = 26
	StowageLexerIDENTIFIER = 27
	StowageLexerSTRING     = 28
	StowageLexerWHITESPACE = 29
)

StowageLexer tokens.

View Source
const (
	StowageParserEOF        = antlr.TokenEOF
	StowageParserT__0       = 1
	StowageParserT__1       = 2
	StowageParserT__2       = 3
	StowageParserT__3       = 4
	StowageParserT__4       = 5
	StowageParserT__5       = 6
	StowageParserT__6       = 7
	StowageParserT__7       = 8
	StowageParserT__8       = 9
	StowageParserT__9       = 10
	StowageParserT__10      = 11
	StowageParserT__11      = 12
	StowageParserT__12      = 13
	StowageParserT__13      = 14
	StowageParserT__14      = 15
	StowageParserT__15      = 16
	StowageParserT__16      = 17
	StowageParserT__17      = 18
	StowageParserT__18      = 19
	StowageParserT__19      = 20
	StowageParserT__20      = 21
	StowageParserT__21      = 22
	StowageParserT__22      = 23
	StowageParserCOL        = 24
	StowageParserCOMMENT    = 25
	StowageParserUNIQUE     = 26
	StowageParserIDENTIFIER = 27
	StowageParserSTRING     = 28
	StowageParserWHITESPACE = 29
)

StowageParser tokens.

View Source
const (
	StowageParserRULE_identifier    = 0
	StowageParserRULE_identifiers   = 1
	StowageParserRULE_pkg           = 2
	StowageParserRULE_root          = 3
	StowageParserRULE_entity        = 4
	StowageParserRULE_view          = 5
	StowageParserRULE_attribute     = 6
	StowageParserRULE_viewAttribute = 7
	StowageParserRULE_uniqueTypeDef = 8
	StowageParserRULE_typeDef       = 9
	StowageParserRULE_viewTypeDef   = 10
	StowageParserRULE_intType       = 11
	StowageParserRULE_serialType    = 12
	StowageParserRULE_floatType     = 13
	StowageParserRULE_stringType    = 14
	StowageParserRULE_boolType      = 15
	StowageParserRULE_enumType      = 16
	StowageParserRULE_enumValue     = 17
	StowageParserRULE_timeType      = 18
	StowageParserRULE_referenceType = 19
)

StowageParser rules.

Variables

This section is empty.

Functions

func Parse

func Parse(i string) (*ast.AST, error)

Types

type ASTVisitor

type ASTVisitor struct {
	*BaseStowageVisitor
	// contains filtered or unexported fields
}

func (*ASTVisitor) VisitAttribute

func (v *ASTVisitor) VisitAttribute(ctx *AttributeContext) interface{}

func (*ASTVisitor) VisitBoolType

func (v *ASTVisitor) VisitBoolType(ctx *BoolTypeContext) interface{}

func (*ASTVisitor) VisitEntity

func (v *ASTVisitor) VisitEntity(ctx *EntityContext) interface{}

func (*ASTVisitor) VisitEnumType

func (v *ASTVisitor) VisitEnumType(ctx *EnumTypeContext) interface{}

func (*ASTVisitor) VisitEnumValue

func (v *ASTVisitor) VisitEnumValue(ctx *EnumValueContext) interface{}

func (*ASTVisitor) VisitFloatType

func (v *ASTVisitor) VisitFloatType(ctx *FloatTypeContext) interface{}

func (*ASTVisitor) VisitIdentifiers

func (v *ASTVisitor) VisitIdentifiers(ctx *IdentifiersContext) interface{}

func (*ASTVisitor) VisitIntType

func (v *ASTVisitor) VisitIntType(ctx *IntTypeContext) interface{}

func (*ASTVisitor) VisitReferenceType

func (v *ASTVisitor) VisitReferenceType(ctx *ReferenceTypeContext) interface{}

func (*ASTVisitor) VisitRoot

func (v *ASTVisitor) VisitRoot(ctx *RootContext) interface{}

func (*ASTVisitor) VisitSerialType

func (v *ASTVisitor) VisitSerialType(ctx *SerialTypeContext) interface{}

func (*ASTVisitor) VisitStringType

func (v *ASTVisitor) VisitStringType(ctx *StringTypeContext) interface{}

func (*ASTVisitor) VisitTimeType

func (v *ASTVisitor) VisitTimeType(ctx *TimeTypeContext) interface{}

func (*ASTVisitor) VisitTypeDef

func (v *ASTVisitor) VisitTypeDef(ctx *TypeDefContext) interface{}

func (*ASTVisitor) VisitUniqueTypeDef

func (v *ASTVisitor) VisitUniqueTypeDef(ctx *UniqueTypeDefContext) interface{}

func (*ASTVisitor) VisitView added in v0.18.0

func (v *ASTVisitor) VisitView(ctx *ViewContext) interface{}

func (*ASTVisitor) VisitViewAttribute added in v0.18.0

func (v *ASTVisitor) VisitViewAttribute(ctx *ViewAttributeContext) interface{}

func (*ASTVisitor) VisitViewTypeDef added in v0.18.0

func (v *ASTVisitor) VisitViewTypeDef(ctx *ViewTypeDefContext) interface{}

type AttributeContext

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

func NewAttributeContext

func NewAttributeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AttributeContext

func NewEmptyAttributeContext

func NewEmptyAttributeContext() *AttributeContext

func (*AttributeContext) Accept

func (s *AttributeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*AttributeContext) GetParser

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

func (*AttributeContext) GetRuleContext

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

func (*AttributeContext) Identifier

func (s *AttributeContext) Identifier() IIdentifierContext

func (*AttributeContext) IsAttributeContext

func (*AttributeContext) IsAttributeContext()

func (*AttributeContext) ToStringTree

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

func (*AttributeContext) TypeDef

func (s *AttributeContext) TypeDef() ITypeDefContext

func (*AttributeContext) UNIQUE

func (s *AttributeContext) UNIQUE() antlr.TerminalNode

func (*AttributeContext) UniqueTypeDef

func (s *AttributeContext) UniqueTypeDef() IUniqueTypeDefContext

type BaseStowageVisitor

type BaseStowageVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseStowageVisitor) VisitAttribute

func (v *BaseStowageVisitor) VisitAttribute(ctx *AttributeContext) interface{}

func (*BaseStowageVisitor) VisitBoolType

func (v *BaseStowageVisitor) VisitBoolType(ctx *BoolTypeContext) interface{}

func (*BaseStowageVisitor) VisitEntity

func (v *BaseStowageVisitor) VisitEntity(ctx *EntityContext) interface{}

func (*BaseStowageVisitor) VisitEnumType

func (v *BaseStowageVisitor) VisitEnumType(ctx *EnumTypeContext) interface{}

func (*BaseStowageVisitor) VisitEnumValue

func (v *BaseStowageVisitor) VisitEnumValue(ctx *EnumValueContext) interface{}

func (*BaseStowageVisitor) VisitFloatType

func (v *BaseStowageVisitor) VisitFloatType(ctx *FloatTypeContext) interface{}

func (*BaseStowageVisitor) VisitIdentifier

func (v *BaseStowageVisitor) VisitIdentifier(ctx *IdentifierContext) interface{}

func (*BaseStowageVisitor) VisitIdentifiers

func (v *BaseStowageVisitor) VisitIdentifiers(ctx *IdentifiersContext) interface{}

func (*BaseStowageVisitor) VisitIntType

func (v *BaseStowageVisitor) VisitIntType(ctx *IntTypeContext) interface{}

func (*BaseStowageVisitor) VisitPkg

func (v *BaseStowageVisitor) VisitPkg(ctx *PkgContext) interface{}

func (*BaseStowageVisitor) VisitReferenceType

func (v *BaseStowageVisitor) VisitReferenceType(ctx *ReferenceTypeContext) interface{}

func (*BaseStowageVisitor) VisitRoot

func (v *BaseStowageVisitor) VisitRoot(ctx *RootContext) interface{}

func (*BaseStowageVisitor) VisitSerialType

func (v *BaseStowageVisitor) VisitSerialType(ctx *SerialTypeContext) interface{}

func (*BaseStowageVisitor) VisitStringType

func (v *BaseStowageVisitor) VisitStringType(ctx *StringTypeContext) interface{}

func (*BaseStowageVisitor) VisitTimeType

func (v *BaseStowageVisitor) VisitTimeType(ctx *TimeTypeContext) interface{}

func (*BaseStowageVisitor) VisitTypeDef

func (v *BaseStowageVisitor) VisitTypeDef(ctx *TypeDefContext) interface{}

func (*BaseStowageVisitor) VisitUniqueTypeDef

func (v *BaseStowageVisitor) VisitUniqueTypeDef(ctx *UniqueTypeDefContext) interface{}

func (*BaseStowageVisitor) VisitView added in v0.18.0

func (v *BaseStowageVisitor) VisitView(ctx *ViewContext) interface{}

func (*BaseStowageVisitor) VisitViewAttribute added in v0.18.0

func (v *BaseStowageVisitor) VisitViewAttribute(ctx *ViewAttributeContext) interface{}

func (*BaseStowageVisitor) VisitViewTypeDef added in v0.18.0

func (v *BaseStowageVisitor) VisitViewTypeDef(ctx *ViewTypeDefContext) interface{}

type BoolTypeContext

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

func NewBoolTypeContext

func NewBoolTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BoolTypeContext

func NewEmptyBoolTypeContext

func NewEmptyBoolTypeContext() *BoolTypeContext

func (*BoolTypeContext) Accept

func (s *BoolTypeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*BoolTypeContext) GetParser

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

func (*BoolTypeContext) GetRuleContext

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

func (*BoolTypeContext) IsBoolTypeContext

func (*BoolTypeContext) IsBoolTypeContext()

func (*BoolTypeContext) ToStringTree

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

type EntityContext

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

func NewEmptyEntityContext

func NewEmptyEntityContext() *EntityContext

func NewEntityContext

func NewEntityContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EntityContext

func (*EntityContext) Accept

func (s *EntityContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*EntityContext) AllAttribute

func (s *EntityContext) AllAttribute() []IAttributeContext

func (*EntityContext) AllCOMMENT

func (s *EntityContext) AllCOMMENT() []antlr.TerminalNode

func (*EntityContext) Attribute

func (s *EntityContext) Attribute(i int) IAttributeContext

func (*EntityContext) COMMENT

func (s *EntityContext) COMMENT(i int) antlr.TerminalNode

func (*EntityContext) GetParser

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

func (*EntityContext) GetRuleContext

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

func (*EntityContext) Identifier

func (s *EntityContext) Identifier() IIdentifierContext

func (*EntityContext) Identifiers

func (s *EntityContext) Identifiers() IIdentifiersContext

func (*EntityContext) IsEntityContext

func (*EntityContext) IsEntityContext()

func (*EntityContext) ToStringTree

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

type EnumTypeContext

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

func NewEmptyEnumTypeContext

func NewEmptyEnumTypeContext() *EnumTypeContext

func NewEnumTypeContext

func NewEnumTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EnumTypeContext

func (*EnumTypeContext) Accept

func (s *EnumTypeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*EnumTypeContext) AllEnumValue

func (s *EnumTypeContext) AllEnumValue() []IEnumValueContext

func (*EnumTypeContext) EnumValue

func (s *EnumTypeContext) EnumValue(i int) IEnumValueContext

func (*EnumTypeContext) GetParser

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

func (*EnumTypeContext) GetRuleContext

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

func (*EnumTypeContext) IsEnumTypeContext

func (*EnumTypeContext) IsEnumTypeContext()

func (*EnumTypeContext) ToStringTree

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

type EnumValueContext

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

func NewEmptyEnumValueContext

func NewEmptyEnumValueContext() *EnumValueContext

func NewEnumValueContext

func NewEnumValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EnumValueContext

func (*EnumValueContext) Accept

func (s *EnumValueContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*EnumValueContext) GetParser

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

func (*EnumValueContext) GetRuleContext

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

func (*EnumValueContext) Identifier

func (s *EnumValueContext) Identifier() IIdentifierContext

func (*EnumValueContext) IsEnumValueContext

func (*EnumValueContext) IsEnumValueContext()

func (*EnumValueContext) STRING

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

func (*EnumValueContext) ToStringTree

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

type ErrorListener

type ErrorListener struct {
	// contains filtered or unexported fields
}

func NewErrorListener

func NewErrorListener() *ErrorListener

func (*ErrorListener) Error

func (d *ErrorListener) Error() string

func (*ErrorListener) Get

func (d *ErrorListener) Get() error

func (*ErrorListener) ReportAmbiguity

func (d *ErrorListener) ReportAmbiguity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex int, exact bool, ambigAlts *antlr.BitSet, configs antlr.ATNConfigSet)

func (*ErrorListener) ReportAttemptingFullContext

func (d *ErrorListener) ReportAttemptingFullContext(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex int, conflictingAlts *antlr.BitSet, configs antlr.ATNConfigSet)

func (*ErrorListener) ReportContextSensitivity

func (d *ErrorListener) ReportContextSensitivity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex, prediction int, configs antlr.ATNConfigSet)

func (*ErrorListener) SyntaxError

func (d *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)

type FloatTypeContext

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

func NewEmptyFloatTypeContext

func NewEmptyFloatTypeContext() *FloatTypeContext

func NewFloatTypeContext

func NewFloatTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FloatTypeContext

func (*FloatTypeContext) Accept

func (s *FloatTypeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*FloatTypeContext) GetParser

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

func (*FloatTypeContext) GetRuleContext

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

func (*FloatTypeContext) IsFloatTypeContext

func (*FloatTypeContext) IsFloatTypeContext()

func (*FloatTypeContext) ToStringTree

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

type IAttributeContext

type IAttributeContext interface {
	antlr.ParserRuleContext

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

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

IAttributeContext is an interface to support dynamic dispatch.

type IBoolTypeContext

type IBoolTypeContext interface {
	antlr.ParserRuleContext

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

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

IBoolTypeContext is an interface to support dynamic dispatch.

type IEntityContext

type IEntityContext interface {
	antlr.ParserRuleContext

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

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

IEntityContext is an interface to support dynamic dispatch.

type IEnumTypeContext

type IEnumTypeContext interface {
	antlr.ParserRuleContext

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

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

IEnumTypeContext is an interface to support dynamic dispatch.

type IEnumValueContext

type IEnumValueContext interface {
	antlr.ParserRuleContext

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

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

IEnumValueContext is an interface to support dynamic dispatch.

type IFloatTypeContext

type IFloatTypeContext interface {
	antlr.ParserRuleContext

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

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

IFloatTypeContext is an interface to support dynamic dispatch.

type IIdentifierContext

type IIdentifierContext interface {
	antlr.ParserRuleContext

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

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

IIdentifierContext is an interface to support dynamic dispatch.

type IIdentifiersContext

type IIdentifiersContext interface {
	antlr.ParserRuleContext

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

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

IIdentifiersContext is an interface to support dynamic dispatch.

type IIntTypeContext

type IIntTypeContext interface {
	antlr.ParserRuleContext

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

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

IIntTypeContext is an interface to support dynamic dispatch.

type IPkgContext

type IPkgContext interface {
	antlr.ParserRuleContext

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

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

IPkgContext is an interface to support dynamic dispatch.

type IReferenceTypeContext

type IReferenceTypeContext interface {
	antlr.ParserRuleContext

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

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

IReferenceTypeContext 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 ISerialTypeContext

type ISerialTypeContext interface {
	antlr.ParserRuleContext

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

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

ISerialTypeContext is an interface to support dynamic dispatch.

type IStringTypeContext

type IStringTypeContext interface {
	antlr.ParserRuleContext

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

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

IStringTypeContext is an interface to support dynamic dispatch.

type ITimeTypeContext

type ITimeTypeContext interface {
	antlr.ParserRuleContext

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

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

ITimeTypeContext is an interface to support dynamic dispatch.

type ITypeDefContext

type ITypeDefContext interface {
	antlr.ParserRuleContext

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

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

ITypeDefContext is an interface to support dynamic dispatch.

type IUniqueTypeDefContext

type IUniqueTypeDefContext interface {
	antlr.ParserRuleContext

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

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

IUniqueTypeDefContext is an interface to support dynamic dispatch.

type IViewAttributeContext added in v0.18.0

type IViewAttributeContext interface {
	antlr.ParserRuleContext

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

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

IViewAttributeContext is an interface to support dynamic dispatch.

type IViewContext added in v0.18.0

type IViewContext interface {
	antlr.ParserRuleContext

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

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

IViewContext is an interface to support dynamic dispatch.

type IViewTypeDefContext added in v0.18.0

type IViewTypeDefContext interface {
	antlr.ParserRuleContext

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

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

IViewTypeDefContext 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) interface{}

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

func (*IdentifierContext) UNIQUE

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

type IdentifiersContext

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

func NewEmptyIdentifiersContext

func NewEmptyIdentifiersContext() *IdentifiersContext

func NewIdentifiersContext

func NewIdentifiersContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentifiersContext

func (*IdentifiersContext) Accept

func (s *IdentifiersContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*IdentifiersContext) AllIdentifier

func (s *IdentifiersContext) AllIdentifier() []IIdentifierContext

func (*IdentifiersContext) GetParser

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

func (*IdentifiersContext) GetRuleContext

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

func (*IdentifiersContext) Identifier

func (s *IdentifiersContext) Identifier(i int) IIdentifierContext

func (*IdentifiersContext) IsIdentifiersContext

func (*IdentifiersContext) IsIdentifiersContext()

func (*IdentifiersContext) ToStringTree

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

type IntTypeContext

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

func NewEmptyIntTypeContext

func NewEmptyIntTypeContext() *IntTypeContext

func NewIntTypeContext

func NewIntTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IntTypeContext

func (*IntTypeContext) Accept

func (s *IntTypeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*IntTypeContext) GetParser

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

func (*IntTypeContext) GetRuleContext

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

func (*IntTypeContext) IsIntTypeContext

func (*IntTypeContext) IsIntTypeContext()

func (*IntTypeContext) ToStringTree

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

type PkgContext

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

func NewEmptyPkgContext

func NewEmptyPkgContext() *PkgContext

func NewPkgContext

func NewPkgContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PkgContext

func (*PkgContext) Accept

func (s *PkgContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*PkgContext) AllIdentifier

func (s *PkgContext) AllIdentifier() []IIdentifierContext

func (*PkgContext) GetParser

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

func (*PkgContext) GetRuleContext

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

func (*PkgContext) Identifier

func (s *PkgContext) Identifier(i int) IIdentifierContext

func (*PkgContext) IsPkgContext

func (*PkgContext) IsPkgContext()

func (*PkgContext) ToStringTree

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

type ReferenceTypeContext

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

func NewEmptyReferenceTypeContext

func NewEmptyReferenceTypeContext() *ReferenceTypeContext

func NewReferenceTypeContext

func NewReferenceTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReferenceTypeContext

func (*ReferenceTypeContext) Accept

func (s *ReferenceTypeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ReferenceTypeContext) GetParser

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

func (*ReferenceTypeContext) GetRuleContext

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

func (*ReferenceTypeContext) Identifier

func (s *ReferenceTypeContext) Identifier() IIdentifierContext

func (*ReferenceTypeContext) IsReferenceTypeContext

func (*ReferenceTypeContext) IsReferenceTypeContext()

func (*ReferenceTypeContext) ToStringTree

func (s *ReferenceTypeContext) 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) Accept

func (s *RootContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*RootContext) AllEntity

func (s *RootContext) AllEntity() []IEntityContext

func (*RootContext) AllView added in v0.18.0

func (s *RootContext) AllView() []IViewContext

func (*RootContext) EOF

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

func (*RootContext) Entity

func (s *RootContext) Entity(i int) IEntityContext

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) View added in v0.18.0

func (s *RootContext) View(i int) IViewContext

type SerialTypeContext

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

func NewEmptySerialTypeContext

func NewEmptySerialTypeContext() *SerialTypeContext

func NewSerialTypeContext

func NewSerialTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SerialTypeContext

func (*SerialTypeContext) Accept

func (s *SerialTypeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*SerialTypeContext) GetParser

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

func (*SerialTypeContext) GetRuleContext

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

func (*SerialTypeContext) IsSerialTypeContext

func (*SerialTypeContext) IsSerialTypeContext()

func (*SerialTypeContext) ToStringTree

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

type StowageLexer

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

func NewStowageLexer

func NewStowageLexer(input antlr.CharStream) *StowageLexer

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

The *StowageLexer instance produced may be reused by calling the SetInputStream method. The initial lexer configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.

type StowageParser

type StowageParser struct {
	*antlr.BaseParser
}

func NewStowageParser

func NewStowageParser(input antlr.TokenStream) *StowageParser

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

The *StowageParser instance produced may be reused by calling the SetInputStream method. The initial parser configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.

func (*StowageParser) Attribute

func (p *StowageParser) Attribute() (localctx IAttributeContext)

func (*StowageParser) BoolType

func (p *StowageParser) BoolType() (localctx IBoolTypeContext)

func (*StowageParser) Entity

func (p *StowageParser) Entity() (localctx IEntityContext)

func (*StowageParser) EnumType

func (p *StowageParser) EnumType() (localctx IEnumTypeContext)

func (*StowageParser) EnumValue

func (p *StowageParser) EnumValue() (localctx IEnumValueContext)

func (*StowageParser) FloatType

func (p *StowageParser) FloatType() (localctx IFloatTypeContext)

func (*StowageParser) Identifier

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

func (*StowageParser) Identifiers

func (p *StowageParser) Identifiers() (localctx IIdentifiersContext)

func (*StowageParser) IntType

func (p *StowageParser) IntType() (localctx IIntTypeContext)

func (*StowageParser) Pkg

func (p *StowageParser) Pkg() (localctx IPkgContext)

func (*StowageParser) ReferenceType

func (p *StowageParser) ReferenceType() (localctx IReferenceTypeContext)

func (*StowageParser) Root

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

func (*StowageParser) SerialType

func (p *StowageParser) SerialType() (localctx ISerialTypeContext)

func (*StowageParser) StringType

func (p *StowageParser) StringType() (localctx IStringTypeContext)

func (*StowageParser) TimeType

func (p *StowageParser) TimeType() (localctx ITimeTypeContext)

func (*StowageParser) TypeDef

func (p *StowageParser) TypeDef() (localctx ITypeDefContext)

func (*StowageParser) UniqueTypeDef

func (p *StowageParser) UniqueTypeDef() (localctx IUniqueTypeDefContext)

func (*StowageParser) View added in v0.18.0

func (p *StowageParser) View() (localctx IViewContext)

func (*StowageParser) ViewAttribute added in v0.18.0

func (p *StowageParser) ViewAttribute() (localctx IViewAttributeContext)

func (*StowageParser) ViewTypeDef added in v0.18.0

func (p *StowageParser) ViewTypeDef() (localctx IViewTypeDefContext)

type StowageVisitor

type StowageVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by StowageParser#identifier.
	VisitIdentifier(ctx *IdentifierContext) interface{}

	// Visit a parse tree produced by StowageParser#identifiers.
	VisitIdentifiers(ctx *IdentifiersContext) interface{}

	// Visit a parse tree produced by StowageParser#pkg.
	VisitPkg(ctx *PkgContext) interface{}

	// Visit a parse tree produced by StowageParser#root.
	VisitRoot(ctx *RootContext) interface{}

	// Visit a parse tree produced by StowageParser#entity.
	VisitEntity(ctx *EntityContext) interface{}

	// Visit a parse tree produced by StowageParser#view.
	VisitView(ctx *ViewContext) interface{}

	// Visit a parse tree produced by StowageParser#attribute.
	VisitAttribute(ctx *AttributeContext) interface{}

	// Visit a parse tree produced by StowageParser#viewAttribute.
	VisitViewAttribute(ctx *ViewAttributeContext) interface{}

	// Visit a parse tree produced by StowageParser#uniqueTypeDef.
	VisitUniqueTypeDef(ctx *UniqueTypeDefContext) interface{}

	// Visit a parse tree produced by StowageParser#typeDef.
	VisitTypeDef(ctx *TypeDefContext) interface{}

	// Visit a parse tree produced by StowageParser#viewTypeDef.
	VisitViewTypeDef(ctx *ViewTypeDefContext) interface{}

	// Visit a parse tree produced by StowageParser#intType.
	VisitIntType(ctx *IntTypeContext) interface{}

	// Visit a parse tree produced by StowageParser#serialType.
	VisitSerialType(ctx *SerialTypeContext) interface{}

	// Visit a parse tree produced by StowageParser#floatType.
	VisitFloatType(ctx *FloatTypeContext) interface{}

	// Visit a parse tree produced by StowageParser#stringType.
	VisitStringType(ctx *StringTypeContext) interface{}

	// Visit a parse tree produced by StowageParser#boolType.
	VisitBoolType(ctx *BoolTypeContext) interface{}

	// Visit a parse tree produced by StowageParser#enumType.
	VisitEnumType(ctx *EnumTypeContext) interface{}

	// Visit a parse tree produced by StowageParser#enumValue.
	VisitEnumValue(ctx *EnumValueContext) interface{}

	// Visit a parse tree produced by StowageParser#timeType.
	VisitTimeType(ctx *TimeTypeContext) interface{}

	// Visit a parse tree produced by StowageParser#referenceType.
	VisitReferenceType(ctx *ReferenceTypeContext) interface{}
}

A complete Visitor for a parse tree produced by StowageParser.

type StringTypeContext

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

func NewEmptyStringTypeContext

func NewEmptyStringTypeContext() *StringTypeContext

func NewStringTypeContext

func NewStringTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StringTypeContext

func (*StringTypeContext) Accept

func (s *StringTypeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*StringTypeContext) GetParser

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

func (*StringTypeContext) GetRuleContext

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

func (*StringTypeContext) IsStringTypeContext

func (*StringTypeContext) IsStringTypeContext()

func (*StringTypeContext) ToStringTree

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

type TimeTypeContext

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

func NewEmptyTimeTypeContext

func NewEmptyTimeTypeContext() *TimeTypeContext

func NewTimeTypeContext

func NewTimeTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TimeTypeContext

func (*TimeTypeContext) Accept

func (s *TimeTypeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*TimeTypeContext) GetParser

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

func (*TimeTypeContext) GetRuleContext

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

func (*TimeTypeContext) IsTimeTypeContext

func (*TimeTypeContext) IsTimeTypeContext()

func (*TimeTypeContext) ToStringTree

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

type TypeDefContext

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

func NewEmptyTypeDefContext

func NewEmptyTypeDefContext() *TypeDefContext

func NewTypeDefContext

func NewTypeDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeDefContext

func (*TypeDefContext) Accept

func (s *TypeDefContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*TypeDefContext) BoolType

func (s *TypeDefContext) BoolType() IBoolTypeContext

func (*TypeDefContext) EnumType

func (s *TypeDefContext) EnumType() IEnumTypeContext

func (*TypeDefContext) GetParser

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

func (*TypeDefContext) GetRuleContext

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

func (*TypeDefContext) IsTypeDefContext

func (*TypeDefContext) IsTypeDefContext()

func (*TypeDefContext) ReferenceType

func (s *TypeDefContext) ReferenceType() IReferenceTypeContext

func (*TypeDefContext) SerialType

func (s *TypeDefContext) SerialType() ISerialTypeContext

func (*TypeDefContext) ToStringTree

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

type UniqueTypeDefContext

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

func NewEmptyUniqueTypeDefContext

func NewEmptyUniqueTypeDefContext() *UniqueTypeDefContext

func NewUniqueTypeDefContext

func NewUniqueTypeDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UniqueTypeDefContext

func (*UniqueTypeDefContext) Accept

func (s *UniqueTypeDefContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*UniqueTypeDefContext) FloatType

func (s *UniqueTypeDefContext) FloatType() IFloatTypeContext

func (*UniqueTypeDefContext) GetParser

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

func (*UniqueTypeDefContext) GetRuleContext

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

func (*UniqueTypeDefContext) IntType

func (*UniqueTypeDefContext) IsUniqueTypeDefContext

func (*UniqueTypeDefContext) IsUniqueTypeDefContext()

func (*UniqueTypeDefContext) StringType

func (s *UniqueTypeDefContext) StringType() IStringTypeContext

func (*UniqueTypeDefContext) TimeType

func (s *UniqueTypeDefContext) TimeType() ITimeTypeContext

func (*UniqueTypeDefContext) ToStringTree

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

type ViewAttributeContext added in v0.18.0

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

func NewEmptyViewAttributeContext added in v0.18.0

func NewEmptyViewAttributeContext() *ViewAttributeContext

func NewViewAttributeContext added in v0.18.0

func NewViewAttributeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ViewAttributeContext

func (*ViewAttributeContext) Accept added in v0.18.0

func (s *ViewAttributeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ViewAttributeContext) GetParser added in v0.18.0

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

func (*ViewAttributeContext) GetRuleContext added in v0.18.0

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

func (*ViewAttributeContext) Identifier added in v0.18.0

func (s *ViewAttributeContext) Identifier() IIdentifierContext

func (*ViewAttributeContext) IsViewAttributeContext added in v0.18.0

func (*ViewAttributeContext) IsViewAttributeContext()

func (*ViewAttributeContext) ToStringTree added in v0.18.0

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

func (*ViewAttributeContext) ViewTypeDef added in v0.18.0

func (s *ViewAttributeContext) ViewTypeDef() IViewTypeDefContext

type ViewContext added in v0.18.0

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

func NewEmptyViewContext added in v0.18.0

func NewEmptyViewContext() *ViewContext

func NewViewContext added in v0.18.0

func NewViewContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ViewContext

func (*ViewContext) Accept added in v0.18.0

func (s *ViewContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ViewContext) AllCOMMENT added in v0.18.0

func (s *ViewContext) AllCOMMENT() []antlr.TerminalNode

func (*ViewContext) AllViewAttribute added in v0.18.0

func (s *ViewContext) AllViewAttribute() []IViewAttributeContext

func (*ViewContext) COMMENT added in v0.18.0

func (s *ViewContext) COMMENT(i int) antlr.TerminalNode

func (*ViewContext) GetParser added in v0.18.0

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

func (*ViewContext) GetRuleContext added in v0.18.0

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

func (*ViewContext) Identifier added in v0.18.0

func (s *ViewContext) Identifier() IIdentifierContext

func (*ViewContext) IsViewContext added in v0.18.0

func (*ViewContext) IsViewContext()

func (*ViewContext) ToStringTree added in v0.18.0

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

func (*ViewContext) ViewAttribute added in v0.18.0

func (s *ViewContext) ViewAttribute(i int) IViewAttributeContext

type ViewTypeDefContext added in v0.18.0

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

func NewEmptyViewTypeDefContext added in v0.18.0

func NewEmptyViewTypeDefContext() *ViewTypeDefContext

func NewViewTypeDefContext added in v0.18.0

func NewViewTypeDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ViewTypeDefContext

func (*ViewTypeDefContext) Accept added in v0.18.0

func (s *ViewTypeDefContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ViewTypeDefContext) BoolType added in v0.18.0

func (s *ViewTypeDefContext) BoolType() IBoolTypeContext

func (*ViewTypeDefContext) EnumType added in v0.18.0

func (s *ViewTypeDefContext) EnumType() IEnumTypeContext

func (*ViewTypeDefContext) FloatType added in v0.18.0

func (s *ViewTypeDefContext) FloatType() IFloatTypeContext

func (*ViewTypeDefContext) GetParser added in v0.18.0

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

func (*ViewTypeDefContext) GetRuleContext added in v0.18.0

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

func (*ViewTypeDefContext) IntType added in v0.18.0

func (s *ViewTypeDefContext) IntType() IIntTypeContext

func (*ViewTypeDefContext) IsViewTypeDefContext added in v0.18.0

func (*ViewTypeDefContext) IsViewTypeDefContext()

func (*ViewTypeDefContext) ReferenceType added in v0.18.0

func (s *ViewTypeDefContext) ReferenceType() IReferenceTypeContext

func (*ViewTypeDefContext) StringType added in v0.18.0

func (s *ViewTypeDefContext) StringType() IStringTypeContext

func (*ViewTypeDefContext) TimeType added in v0.18.0

func (s *ViewTypeDefContext) TimeType() ITimeTypeContext

func (*ViewTypeDefContext) ToStringTree added in v0.18.0

func (s *ViewTypeDefContext) 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