Documentation ¶
Overview ¶
Example ¶
package main import ( "bramp.net/antlr4/dgs" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" ) type exampleListener struct { *dgs.BaseDGSParserListener } func (l *exampleListener) EnterEveryRule(ctx antlr.ParserRuleContext) { fmt.Println(ctx.GetText()) } func main() { // Setup the input is := antlr.NewInputStream("...some text to parse...") // Create the Lexer lexer := dgs.NewDGSLexer(is) stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel) // Create the Parser p := dgs.NewDGSParser(stream) p.BuildParseTrees = true p.AddErrorListener(antlr.NewDiagnosticErrorListener(true)) // Finally walk the tree tree := p.Dgs() antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree) }
Output:
Index ¶
- Constants
- type A_mapContext
- func (s *A_mapContext) AllCOMMA() []antlr.TerminalNode
- func (s *A_mapContext) AllMapping() []IMappingContext
- func (s *A_mapContext) COMMA(i int) antlr.TerminalNode
- func (s *A_mapContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *A_mapContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *A_mapContext) GetParser() antlr.Parser
- func (s *A_mapContext) GetRuleContext() antlr.RuleContext
- func (*A_mapContext) IsA_mapContext()
- func (s *A_mapContext) LBRACK() antlr.TerminalNode
- func (s *A_mapContext) Mapping(i int) IMappingContext
- func (s *A_mapContext) RBRACK() antlr.TerminalNode
- func (s *A_mapContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AeContext
- func (s *AeContext) AE() antlr.TerminalNode
- func (s *AeContext) AllIdentifier() []IIdentifierContext
- func (s *AeContext) Attributes() IAttributesContext
- func (s *AeContext) Direction() IDirectionContext
- func (s *AeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AeContext) GetParser() antlr.Parser
- func (s *AeContext) GetRuleContext() antlr.RuleContext
- func (s *AeContext) Identifier(i int) IIdentifierContext
- func (*AeContext) IsAeContext()
- func (s *AeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AnContext
- func (s *AnContext) AN() antlr.TerminalNode
- func (s *AnContext) Attributes() IAttributesContext
- func (s *AnContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AnContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AnContext) GetParser() antlr.Parser
- func (s *AnContext) GetRuleContext() antlr.RuleContext
- func (s *AnContext) Identifier() IIdentifierContext
- func (*AnContext) IsAnContext()
- func (s *AnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ArrayContext
- func (s *ArrayContext) AllCOMMA() []antlr.TerminalNode
- func (s *ArrayContext) AllValue() []IValueContext
- func (s *ArrayContext) COMMA(i int) antlr.TerminalNode
- func (s *ArrayContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ArrayContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ArrayContext) GetParser() antlr.Parser
- func (s *ArrayContext) GetRuleContext() antlr.RuleContext
- func (*ArrayContext) IsArrayContext()
- func (s *ArrayContext) LBRACE() antlr.TerminalNode
- func (s *ArrayContext) RBRACE() antlr.TerminalNode
- func (s *ArrayContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ArrayContext) Value(i int) IValueContext
- type AssignContext
- func (s *AssignContext) COLON() antlr.TerminalNode
- func (s *AssignContext) EQUALS() antlr.TerminalNode
- func (s *AssignContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AssignContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AssignContext) GetParser() antlr.Parser
- func (s *AssignContext) GetRuleContext() antlr.RuleContext
- func (*AssignContext) IsAssignContext()
- func (s *AssignContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AttributeContext
- func (s *AttributeContext) AllCOMMA() []antlr.TerminalNode
- func (s *AttributeContext) AllValue() []IValueContext
- func (s *AttributeContext) Assign() IAssignContext
- func (s *AttributeContext) COMMA(i int) antlr.TerminalNode
- func (s *AttributeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AttributeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AttributeContext) GetParser() antlr.Parser
- func (s *AttributeContext) GetRuleContext() antlr.RuleContext
- func (s *AttributeContext) Identifier() IIdentifierContext
- func (*AttributeContext) IsAttributeContext()
- func (s *AttributeContext) MINUS() antlr.TerminalNode
- func (s *AttributeContext) PLUS() antlr.TerminalNode
- func (s *AttributeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *AttributeContext) Value(i int) IValueContext
- type AttributesContext
- func (s *AttributesContext) AllAttribute() []IAttributeContext
- func (s *AttributesContext) Attribute(i int) IAttributeContext
- func (s *AttributesContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AttributesContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AttributesContext) GetParser() antlr.Parser
- func (s *AttributesContext) GetRuleContext() antlr.RuleContext
- func (*AttributesContext) IsAttributesContext()
- func (s *AttributesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BaseDGSParserListener
- func (s *BaseDGSParserListener) EnterA_map(ctx *A_mapContext)
- func (s *BaseDGSParserListener) EnterAe(ctx *AeContext)
- func (s *BaseDGSParserListener) EnterAn(ctx *AnContext)
- func (s *BaseDGSParserListener) EnterArray(ctx *ArrayContext)
- func (s *BaseDGSParserListener) EnterAssign(ctx *AssignContext)
- func (s *BaseDGSParserListener) EnterAttribute(ctx *AttributeContext)
- func (s *BaseDGSParserListener) EnterAttributes(ctx *AttributesContext)
- func (s *BaseDGSParserListener) EnterCe(ctx *CeContext)
- func (s *BaseDGSParserListener) EnterCg(ctx *CgContext)
- func (s *BaseDGSParserListener) EnterCl(ctx *ClContext)
- func (s *BaseDGSParserListener) EnterCn(ctx *CnContext)
- func (s *BaseDGSParserListener) EnterDe(ctx *DeContext)
- func (s *BaseDGSParserListener) EnterDgs(ctx *DgsContext)
- func (s *BaseDGSParserListener) EnterDirection(ctx *DirectionContext)
- func (s *BaseDGSParserListener) EnterDn(ctx *DnContext)
- func (s *BaseDGSParserListener) EnterEvent(ctx *EventContext)
- func (s *BaseDGSParserListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseDGSParserListener) EnterHeader(ctx *HeaderContext)
- func (s *BaseDGSParserListener) EnterIdentifier(ctx *IdentifierContext)
- func (s *BaseDGSParserListener) EnterMapping(ctx *MappingContext)
- func (s *BaseDGSParserListener) EnterSt(ctx *StContext)
- func (s *BaseDGSParserListener) EnterValue(ctx *ValueContext)
- func (s *BaseDGSParserListener) ExitA_map(ctx *A_mapContext)
- func (s *BaseDGSParserListener) ExitAe(ctx *AeContext)
- func (s *BaseDGSParserListener) ExitAn(ctx *AnContext)
- func (s *BaseDGSParserListener) ExitArray(ctx *ArrayContext)
- func (s *BaseDGSParserListener) ExitAssign(ctx *AssignContext)
- func (s *BaseDGSParserListener) ExitAttribute(ctx *AttributeContext)
- func (s *BaseDGSParserListener) ExitAttributes(ctx *AttributesContext)
- func (s *BaseDGSParserListener) ExitCe(ctx *CeContext)
- func (s *BaseDGSParserListener) ExitCg(ctx *CgContext)
- func (s *BaseDGSParserListener) ExitCl(ctx *ClContext)
- func (s *BaseDGSParserListener) ExitCn(ctx *CnContext)
- func (s *BaseDGSParserListener) ExitDe(ctx *DeContext)
- func (s *BaseDGSParserListener) ExitDgs(ctx *DgsContext)
- func (s *BaseDGSParserListener) ExitDirection(ctx *DirectionContext)
- func (s *BaseDGSParserListener) ExitDn(ctx *DnContext)
- func (s *BaseDGSParserListener) ExitEvent(ctx *EventContext)
- func (s *BaseDGSParserListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseDGSParserListener) ExitHeader(ctx *HeaderContext)
- func (s *BaseDGSParserListener) ExitIdentifier(ctx *IdentifierContext)
- func (s *BaseDGSParserListener) ExitMapping(ctx *MappingContext)
- func (s *BaseDGSParserListener) ExitSt(ctx *StContext)
- func (s *BaseDGSParserListener) ExitValue(ctx *ValueContext)
- func (s *BaseDGSParserListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseDGSParserListener) VisitTerminal(node antlr.TerminalNode)
- type CeContext
- func (s *CeContext) Attributes() IAttributesContext
- func (s *CeContext) CE() antlr.TerminalNode
- func (s *CeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CeContext) GetParser() antlr.Parser
- func (s *CeContext) GetRuleContext() antlr.RuleContext
- func (s *CeContext) Identifier() IIdentifierContext
- func (*CeContext) IsCeContext()
- func (s *CeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CgContext
- func (s *CgContext) Attributes() IAttributesContext
- func (s *CgContext) CG() antlr.TerminalNode
- func (s *CgContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CgContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CgContext) GetParser() antlr.Parser
- func (s *CgContext) GetRuleContext() antlr.RuleContext
- func (*CgContext) IsCgContext()
- func (s *CgContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ClContext
- func (s *ClContext) CL() antlr.TerminalNode
- func (s *ClContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ClContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ClContext) GetParser() antlr.Parser
- func (s *ClContext) GetRuleContext() antlr.RuleContext
- func (*ClContext) IsClContext()
- func (s *ClContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CnContext
- func (s *CnContext) Attributes() IAttributesContext
- func (s *CnContext) CN() antlr.TerminalNode
- func (s *CnContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CnContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CnContext) GetParser() antlr.Parser
- func (s *CnContext) GetRuleContext() antlr.RuleContext
- func (s *CnContext) Identifier() IIdentifierContext
- func (*CnContext) IsCnContext()
- func (s *CnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DGSLexer
- type DGSParser
- func (p *DGSParser) A_map() (localctx IA_mapContext)
- func (p *DGSParser) Ae() (localctx IAeContext)
- func (p *DGSParser) An() (localctx IAnContext)
- func (p *DGSParser) Array() (localctx IArrayContext)
- func (p *DGSParser) Assign() (localctx IAssignContext)
- func (p *DGSParser) Attribute() (localctx IAttributeContext)
- func (p *DGSParser) Attributes() (localctx IAttributesContext)
- func (p *DGSParser) Ce() (localctx ICeContext)
- func (p *DGSParser) Cg() (localctx ICgContext)
- func (p *DGSParser) Cl() (localctx IClContext)
- func (p *DGSParser) Cn() (localctx ICnContext)
- func (p *DGSParser) De() (localctx IDeContext)
- func (p *DGSParser) Dgs() (localctx IDgsContext)
- func (p *DGSParser) Direction() (localctx IDirectionContext)
- func (p *DGSParser) Dn() (localctx IDnContext)
- func (p *DGSParser) Event() (localctx IEventContext)
- func (p *DGSParser) Header() (localctx IHeaderContext)
- func (p *DGSParser) Identifier() (localctx IIdentifierContext)
- func (p *DGSParser) Mapping() (localctx IMappingContext)
- func (p *DGSParser) St() (localctx IStContext)
- func (p *DGSParser) Value() (localctx IValueContext)
- type DGSParserListener
- type DeContext
- func (s *DeContext) DE() antlr.TerminalNode
- func (s *DeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DeContext) GetParser() antlr.Parser
- func (s *DeContext) GetRuleContext() antlr.RuleContext
- func (s *DeContext) Identifier() IIdentifierContext
- func (*DeContext) IsDeContext()
- func (s *DeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DgsContext
- func (s *DgsContext) AllCOMMENT() []antlr.TerminalNode
- func (s *DgsContext) AllEOL() []antlr.TerminalNode
- func (s *DgsContext) AllEvent() []IEventContext
- func (s *DgsContext) COMMENT(i int) antlr.TerminalNode
- func (s *DgsContext) EOL(i int) antlr.TerminalNode
- func (s *DgsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DgsContext) Event(i int) IEventContext
- func (s *DgsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DgsContext) GetParser() antlr.Parser
- func (s *DgsContext) GetRuleContext() antlr.RuleContext
- func (s *DgsContext) Header() IHeaderContext
- func (*DgsContext) IsDgsContext()
- func (s *DgsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DirectionContext
- func (s *DirectionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DirectionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DirectionContext) GetParser() antlr.Parser
- func (s *DirectionContext) GetRuleContext() antlr.RuleContext
- func (*DirectionContext) IsDirectionContext()
- func (s *DirectionContext) LANGLE() antlr.TerminalNode
- func (s *DirectionContext) RANGLE() antlr.TerminalNode
- func (s *DirectionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DnContext
- func (s *DnContext) DN() antlr.TerminalNode
- func (s *DnContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DnContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DnContext) GetParser() antlr.Parser
- func (s *DnContext) GetRuleContext() antlr.RuleContext
- func (s *DnContext) Identifier() IIdentifierContext
- func (*DnContext) IsDnContext()
- func (s *DnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type EventContext
- func (s *EventContext) Ae() IAeContext
- func (s *EventContext) An() IAnContext
- func (s *EventContext) COMMENT() antlr.TerminalNode
- func (s *EventContext) Ce() ICeContext
- func (s *EventContext) Cg() ICgContext
- func (s *EventContext) Cl() IClContext
- func (s *EventContext) Cn() ICnContext
- func (s *EventContext) De() IDeContext
- func (s *EventContext) Dn() IDnContext
- func (s *EventContext) EOL() antlr.TerminalNode
- func (s *EventContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *EventContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *EventContext) GetParser() antlr.Parser
- func (s *EventContext) GetRuleContext() antlr.RuleContext
- func (*EventContext) IsEventContext()
- func (s *EventContext) St() IStContext
- func (s *EventContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type HeaderContext
- func (s *HeaderContext) AllEOL() []antlr.TerminalNode
- func (s *HeaderContext) AllINT() []antlr.TerminalNode
- func (s *HeaderContext) EOL(i int) antlr.TerminalNode
- func (s *HeaderContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *HeaderContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *HeaderContext) GetParser() antlr.Parser
- func (s *HeaderContext) GetRuleContext() antlr.RuleContext
- func (s *HeaderContext) INT(i int) antlr.TerminalNode
- func (s *HeaderContext) Identifier() IIdentifierContext
- func (*HeaderContext) IsHeaderContext()
- func (s *HeaderContext) MAGIC() antlr.TerminalNode
- func (s *HeaderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IA_mapContext
- type IAeContext
- type IAnContext
- type IArrayContext
- type IAssignContext
- type IAttributeContext
- type IAttributesContext
- type ICeContext
- type ICgContext
- type IClContext
- type ICnContext
- type IDeContext
- type IDgsContext
- type IDirectionContext
- type IDnContext
- type IEventContext
- type IHeaderContext
- type IIdentifierContext
- type IMappingContext
- type IStContext
- type IValueContext
- type IdentifierContext
- func (s *IdentifierContext) AllDOT() []antlr.TerminalNode
- func (s *IdentifierContext) AllWORD() []antlr.TerminalNode
- func (s *IdentifierContext) DOT(i int) antlr.TerminalNode
- func (s *IdentifierContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *IdentifierContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *IdentifierContext) GetParser() antlr.Parser
- func (s *IdentifierContext) GetRuleContext() antlr.RuleContext
- func (s *IdentifierContext) INT() antlr.TerminalNode
- func (*IdentifierContext) IsIdentifierContext()
- func (s *IdentifierContext) STRING() antlr.TerminalNode
- func (s *IdentifierContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *IdentifierContext) WORD(i int) antlr.TerminalNode
- type MappingContext
- func (s *MappingContext) Assign() IAssignContext
- func (s *MappingContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MappingContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MappingContext) GetParser() antlr.Parser
- func (s *MappingContext) GetRuleContext() antlr.RuleContext
- func (s *MappingContext) Identifier() IIdentifierContext
- func (*MappingContext) IsMappingContext()
- func (s *MappingContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *MappingContext) Value() IValueContext
- type StContext
- func (s *StContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StContext) GetParser() antlr.Parser
- func (s *StContext) GetRuleContext() antlr.RuleContext
- func (*StContext) IsStContext()
- func (s *StContext) REAL() antlr.TerminalNode
- func (s *StContext) ST() antlr.TerminalNode
- func (s *StContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ValueContext
- func (s *ValueContext) A_map() IA_mapContext
- func (s *ValueContext) Array() IArrayContext
- func (s *ValueContext) COLOR() antlr.TerminalNode
- func (s *ValueContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ValueContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ValueContext) GetParser() antlr.Parser
- func (s *ValueContext) GetRuleContext() antlr.RuleContext
- func (s *ValueContext) INT() antlr.TerminalNode
- func (s *ValueContext) Identifier() IIdentifierContext
- func (*ValueContext) IsValueContext()
- func (s *ValueContext) REAL() antlr.TerminalNode
- func (s *ValueContext) STRING() antlr.TerminalNode
- func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Examples ¶
Constants ¶
const ( DGSLexerMAGIC = 1 DGSLexerAN = 2 DGSLexerCN = 3 DGSLexerDN = 4 DGSLexerAE = 5 DGSLexerCE = 6 DGSLexerDE = 7 DGSLexerCG = 8 DGSLexerST = 9 DGSLexerCL = 10 DGSLexerINT = 11 DGSLexerREAL = 12 DGSLexerPLUS = 13 DGSLexerMINUS = 14 DGSLexerCOMMA = 15 DGSLexerLBRACE = 16 DGSLexerRBRACE = 17 DGSLexerLBRACK = 18 DGSLexerRBRACK = 19 DGSLexerDOT = 20 DGSLexerLANGLE = 21 DGSLexerRANGLE = 22 DGSLexerEQUALS = 23 DGSLexerCOLON = 24 DGSLexerEOL = 25 DGSLexerWORD = 26 DGSLexerSTRING = 27 DGSLexerCOLOR = 28 DGSLexerSTART_COMMENT = 29 DGSLexerWS = 30 DGSLexerCOMMENT = 31 )
DGSLexer tokens.
const ( DGSParserEOF = antlr.TokenEOF DGSParserMAGIC = 1 DGSParserAN = 2 DGSParserCN = 3 DGSParserDN = 4 DGSParserAE = 5 DGSParserCE = 6 DGSParserDE = 7 DGSParserCG = 8 DGSParserST = 9 DGSParserCL = 10 DGSParserINT = 11 DGSParserREAL = 12 DGSParserPLUS = 13 DGSParserMINUS = 14 DGSParserCOMMA = 15 DGSParserLBRACE = 16 DGSParserRBRACE = 17 DGSParserLBRACK = 18 DGSParserRBRACK = 19 DGSParserDOT = 20 DGSParserLANGLE = 21 DGSParserRANGLE = 22 DGSParserEQUALS = 23 DGSParserCOLON = 24 DGSParserEOL = 25 DGSParserWORD = 26 DGSParserSTRING = 27 DGSParserCOLOR = 28 DGSParserSTART_COMMENT = 29 DGSParserWS = 30 DGSParserCOMMENT = 31 )
DGSParser tokens.
const ( DGSParserRULE_dgs = 0 DGSParserRULE_header = 1 DGSParserRULE_event = 2 DGSParserRULE_an = 3 DGSParserRULE_cn = 4 DGSParserRULE_dn = 5 DGSParserRULE_ae = 6 DGSParserRULE_ce = 7 DGSParserRULE_de = 8 DGSParserRULE_cg = 9 DGSParserRULE_st = 10 DGSParserRULE_cl = 11 DGSParserRULE_attributes = 12 DGSParserRULE_attribute = 13 DGSParserRULE_value = 14 DGSParserRULE_array = 15 DGSParserRULE_a_map = 16 DGSParserRULE_mapping = 17 DGSParserRULE_direction = 18 DGSParserRULE_assign = 19 DGSParserRULE_identifier = 20 )
DGSParser rules.
const DGSLexerCMT = 1
DGSLexerCMT is the DGSLexer mode.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A_mapContext ¶
type A_mapContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewA_mapContext ¶
func NewA_mapContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *A_mapContext
func NewEmptyA_mapContext ¶
func NewEmptyA_mapContext() *A_mapContext
func (*A_mapContext) AllCOMMA ¶
func (s *A_mapContext) AllCOMMA() []antlr.TerminalNode
func (*A_mapContext) AllMapping ¶
func (s *A_mapContext) AllMapping() []IMappingContext
func (*A_mapContext) COMMA ¶
func (s *A_mapContext) COMMA(i int) antlr.TerminalNode
func (*A_mapContext) EnterRule ¶
func (s *A_mapContext) EnterRule(listener antlr.ParseTreeListener)
func (*A_mapContext) ExitRule ¶
func (s *A_mapContext) ExitRule(listener antlr.ParseTreeListener)
func (*A_mapContext) GetParser ¶
func (s *A_mapContext) GetParser() antlr.Parser
func (*A_mapContext) GetRuleContext ¶
func (s *A_mapContext) GetRuleContext() antlr.RuleContext
func (*A_mapContext) IsA_mapContext ¶
func (*A_mapContext) IsA_mapContext()
func (*A_mapContext) LBRACK ¶
func (s *A_mapContext) LBRACK() antlr.TerminalNode
func (*A_mapContext) Mapping ¶
func (s *A_mapContext) Mapping(i int) IMappingContext
func (*A_mapContext) RBRACK ¶
func (s *A_mapContext) RBRACK() antlr.TerminalNode
func (*A_mapContext) ToStringTree ¶
func (s *A_mapContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type AeContext ¶
type AeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAeContext ¶
func NewEmptyAeContext ¶
func NewEmptyAeContext() *AeContext
func (*AeContext) AE ¶
func (s *AeContext) AE() antlr.TerminalNode
func (*AeContext) AllIdentifier ¶
func (s *AeContext) AllIdentifier() []IIdentifierContext
func (*AeContext) Attributes ¶
func (s *AeContext) Attributes() IAttributesContext
func (*AeContext) Direction ¶
func (s *AeContext) Direction() IDirectionContext
func (*AeContext) EnterRule ¶
func (s *AeContext) EnterRule(listener antlr.ParseTreeListener)
func (*AeContext) ExitRule ¶
func (s *AeContext) ExitRule(listener antlr.ParseTreeListener)
func (*AeContext) GetRuleContext ¶
func (s *AeContext) GetRuleContext() antlr.RuleContext
func (*AeContext) Identifier ¶
func (s *AeContext) Identifier(i int) IIdentifierContext
func (*AeContext) IsAeContext ¶
func (*AeContext) IsAeContext()
func (*AeContext) ToStringTree ¶
func (s *AeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type AnContext ¶
type AnContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAnContext ¶
func NewEmptyAnContext ¶
func NewEmptyAnContext() *AnContext
func (*AnContext) AN ¶
func (s *AnContext) AN() antlr.TerminalNode
func (*AnContext) Attributes ¶
func (s *AnContext) Attributes() IAttributesContext
func (*AnContext) EnterRule ¶
func (s *AnContext) EnterRule(listener antlr.ParseTreeListener)
func (*AnContext) ExitRule ¶
func (s *AnContext) ExitRule(listener antlr.ParseTreeListener)
func (*AnContext) GetRuleContext ¶
func (s *AnContext) GetRuleContext() antlr.RuleContext
func (*AnContext) Identifier ¶
func (s *AnContext) Identifier() IIdentifierContext
func (*AnContext) IsAnContext ¶
func (*AnContext) IsAnContext()
func (*AnContext) ToStringTree ¶
func (s *AnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
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) AllCOMMA ¶
func (s *ArrayContext) AllCOMMA() []antlr.TerminalNode
func (*ArrayContext) AllValue ¶
func (s *ArrayContext) AllValue() []IValueContext
func (*ArrayContext) COMMA ¶
func (s *ArrayContext) COMMA(i int) antlr.TerminalNode
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) LBRACE ¶
func (s *ArrayContext) LBRACE() antlr.TerminalNode
func (*ArrayContext) RBRACE ¶
func (s *ArrayContext) RBRACE() antlr.TerminalNode
func (*ArrayContext) ToStringTree ¶
func (s *ArrayContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ArrayContext) Value ¶
func (s *ArrayContext) Value(i int) IValueContext
type AssignContext ¶
type AssignContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAssignContext ¶
func NewAssignContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AssignContext
func NewEmptyAssignContext ¶
func NewEmptyAssignContext() *AssignContext
func (*AssignContext) COLON ¶
func (s *AssignContext) COLON() antlr.TerminalNode
func (*AssignContext) EQUALS ¶
func (s *AssignContext) EQUALS() antlr.TerminalNode
func (*AssignContext) EnterRule ¶
func (s *AssignContext) EnterRule(listener antlr.ParseTreeListener)
func (*AssignContext) ExitRule ¶
func (s *AssignContext) ExitRule(listener antlr.ParseTreeListener)
func (*AssignContext) GetParser ¶
func (s *AssignContext) GetParser() antlr.Parser
func (*AssignContext) GetRuleContext ¶
func (s *AssignContext) GetRuleContext() antlr.RuleContext
func (*AssignContext) IsAssignContext ¶
func (*AssignContext) IsAssignContext()
func (*AssignContext) ToStringTree ¶
func (s *AssignContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
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) AllCOMMA ¶
func (s *AttributeContext) AllCOMMA() []antlr.TerminalNode
func (*AttributeContext) AllValue ¶
func (s *AttributeContext) AllValue() []IValueContext
func (*AttributeContext) Assign ¶
func (s *AttributeContext) Assign() IAssignContext
func (*AttributeContext) COMMA ¶
func (s *AttributeContext) COMMA(i int) antlr.TerminalNode
func (*AttributeContext) EnterRule ¶
func (s *AttributeContext) EnterRule(listener antlr.ParseTreeListener)
func (*AttributeContext) ExitRule ¶
func (s *AttributeContext) ExitRule(listener antlr.ParseTreeListener)
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) MINUS ¶
func (s *AttributeContext) MINUS() antlr.TerminalNode
func (*AttributeContext) PLUS ¶
func (s *AttributeContext) PLUS() antlr.TerminalNode
func (*AttributeContext) ToStringTree ¶
func (s *AttributeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*AttributeContext) Value ¶
func (s *AttributeContext) Value(i int) IValueContext
type AttributesContext ¶
type AttributesContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAttributesContext ¶
func NewAttributesContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AttributesContext
func NewEmptyAttributesContext ¶
func NewEmptyAttributesContext() *AttributesContext
func (*AttributesContext) AllAttribute ¶
func (s *AttributesContext) AllAttribute() []IAttributeContext
func (*AttributesContext) Attribute ¶
func (s *AttributesContext) Attribute(i int) IAttributeContext
func (*AttributesContext) EnterRule ¶
func (s *AttributesContext) EnterRule(listener antlr.ParseTreeListener)
func (*AttributesContext) ExitRule ¶
func (s *AttributesContext) ExitRule(listener antlr.ParseTreeListener)
func (*AttributesContext) GetParser ¶
func (s *AttributesContext) GetParser() antlr.Parser
func (*AttributesContext) GetRuleContext ¶
func (s *AttributesContext) GetRuleContext() antlr.RuleContext
func (*AttributesContext) IsAttributesContext ¶
func (*AttributesContext) IsAttributesContext()
func (*AttributesContext) ToStringTree ¶
func (s *AttributesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BaseDGSParserListener ¶
type BaseDGSParserListener struct{}
BaseDGSParserListener is a complete listener for a parse tree produced by DGSParser.
func (*BaseDGSParserListener) EnterA_map ¶
func (s *BaseDGSParserListener) EnterA_map(ctx *A_mapContext)
EnterA_map is called when production a_map is entered.
func (*BaseDGSParserListener) EnterAe ¶
func (s *BaseDGSParserListener) EnterAe(ctx *AeContext)
EnterAe is called when production ae is entered.
func (*BaseDGSParserListener) EnterAn ¶
func (s *BaseDGSParserListener) EnterAn(ctx *AnContext)
EnterAn is called when production an is entered.
func (*BaseDGSParserListener) EnterArray ¶
func (s *BaseDGSParserListener) EnterArray(ctx *ArrayContext)
EnterArray is called when production array is entered.
func (*BaseDGSParserListener) EnterAssign ¶
func (s *BaseDGSParserListener) EnterAssign(ctx *AssignContext)
EnterAssign is called when production assign is entered.
func (*BaseDGSParserListener) EnterAttribute ¶
func (s *BaseDGSParserListener) EnterAttribute(ctx *AttributeContext)
EnterAttribute is called when production attribute is entered.
func (*BaseDGSParserListener) EnterAttributes ¶
func (s *BaseDGSParserListener) EnterAttributes(ctx *AttributesContext)
EnterAttributes is called when production attributes is entered.
func (*BaseDGSParserListener) EnterCe ¶
func (s *BaseDGSParserListener) EnterCe(ctx *CeContext)
EnterCe is called when production ce is entered.
func (*BaseDGSParserListener) EnterCg ¶
func (s *BaseDGSParserListener) EnterCg(ctx *CgContext)
EnterCg is called when production cg is entered.
func (*BaseDGSParserListener) EnterCl ¶
func (s *BaseDGSParserListener) EnterCl(ctx *ClContext)
EnterCl is called when production cl is entered.
func (*BaseDGSParserListener) EnterCn ¶
func (s *BaseDGSParserListener) EnterCn(ctx *CnContext)
EnterCn is called when production cn is entered.
func (*BaseDGSParserListener) EnterDe ¶
func (s *BaseDGSParserListener) EnterDe(ctx *DeContext)
EnterDe is called when production de is entered.
func (*BaseDGSParserListener) EnterDgs ¶
func (s *BaseDGSParserListener) EnterDgs(ctx *DgsContext)
EnterDgs is called when production dgs is entered.
func (*BaseDGSParserListener) EnterDirection ¶
func (s *BaseDGSParserListener) EnterDirection(ctx *DirectionContext)
EnterDirection is called when production direction is entered.
func (*BaseDGSParserListener) EnterDn ¶
func (s *BaseDGSParserListener) EnterDn(ctx *DnContext)
EnterDn is called when production dn is entered.
func (*BaseDGSParserListener) EnterEvent ¶
func (s *BaseDGSParserListener) EnterEvent(ctx *EventContext)
EnterEvent is called when production event is entered.
func (*BaseDGSParserListener) EnterEveryRule ¶
func (s *BaseDGSParserListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseDGSParserListener) EnterHeader ¶
func (s *BaseDGSParserListener) EnterHeader(ctx *HeaderContext)
EnterHeader is called when production header is entered.
func (*BaseDGSParserListener) EnterIdentifier ¶
func (s *BaseDGSParserListener) EnterIdentifier(ctx *IdentifierContext)
EnterIdentifier is called when production identifier is entered.
func (*BaseDGSParserListener) EnterMapping ¶
func (s *BaseDGSParserListener) EnterMapping(ctx *MappingContext)
EnterMapping is called when production mapping is entered.
func (*BaseDGSParserListener) EnterSt ¶
func (s *BaseDGSParserListener) EnterSt(ctx *StContext)
EnterSt is called when production st is entered.
func (*BaseDGSParserListener) EnterValue ¶
func (s *BaseDGSParserListener) EnterValue(ctx *ValueContext)
EnterValue is called when production value is entered.
func (*BaseDGSParserListener) ExitA_map ¶
func (s *BaseDGSParserListener) ExitA_map(ctx *A_mapContext)
ExitA_map is called when production a_map is exited.
func (*BaseDGSParserListener) ExitAe ¶
func (s *BaseDGSParserListener) ExitAe(ctx *AeContext)
ExitAe is called when production ae is exited.
func (*BaseDGSParserListener) ExitAn ¶
func (s *BaseDGSParserListener) ExitAn(ctx *AnContext)
ExitAn is called when production an is exited.
func (*BaseDGSParserListener) ExitArray ¶
func (s *BaseDGSParserListener) ExitArray(ctx *ArrayContext)
ExitArray is called when production array is exited.
func (*BaseDGSParserListener) ExitAssign ¶
func (s *BaseDGSParserListener) ExitAssign(ctx *AssignContext)
ExitAssign is called when production assign is exited.
func (*BaseDGSParserListener) ExitAttribute ¶
func (s *BaseDGSParserListener) ExitAttribute(ctx *AttributeContext)
ExitAttribute is called when production attribute is exited.
func (*BaseDGSParserListener) ExitAttributes ¶
func (s *BaseDGSParserListener) ExitAttributes(ctx *AttributesContext)
ExitAttributes is called when production attributes is exited.
func (*BaseDGSParserListener) ExitCe ¶
func (s *BaseDGSParserListener) ExitCe(ctx *CeContext)
ExitCe is called when production ce is exited.
func (*BaseDGSParserListener) ExitCg ¶
func (s *BaseDGSParserListener) ExitCg(ctx *CgContext)
ExitCg is called when production cg is exited.
func (*BaseDGSParserListener) ExitCl ¶
func (s *BaseDGSParserListener) ExitCl(ctx *ClContext)
ExitCl is called when production cl is exited.
func (*BaseDGSParserListener) ExitCn ¶
func (s *BaseDGSParserListener) ExitCn(ctx *CnContext)
ExitCn is called when production cn is exited.
func (*BaseDGSParserListener) ExitDe ¶
func (s *BaseDGSParserListener) ExitDe(ctx *DeContext)
ExitDe is called when production de is exited.
func (*BaseDGSParserListener) ExitDgs ¶
func (s *BaseDGSParserListener) ExitDgs(ctx *DgsContext)
ExitDgs is called when production dgs is exited.
func (*BaseDGSParserListener) ExitDirection ¶
func (s *BaseDGSParserListener) ExitDirection(ctx *DirectionContext)
ExitDirection is called when production direction is exited.
func (*BaseDGSParserListener) ExitDn ¶
func (s *BaseDGSParserListener) ExitDn(ctx *DnContext)
ExitDn is called when production dn is exited.
func (*BaseDGSParserListener) ExitEvent ¶
func (s *BaseDGSParserListener) ExitEvent(ctx *EventContext)
ExitEvent is called when production event is exited.
func (*BaseDGSParserListener) ExitEveryRule ¶
func (s *BaseDGSParserListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseDGSParserListener) ExitHeader ¶
func (s *BaseDGSParserListener) ExitHeader(ctx *HeaderContext)
ExitHeader is called when production header is exited.
func (*BaseDGSParserListener) ExitIdentifier ¶
func (s *BaseDGSParserListener) ExitIdentifier(ctx *IdentifierContext)
ExitIdentifier is called when production identifier is exited.
func (*BaseDGSParserListener) ExitMapping ¶
func (s *BaseDGSParserListener) ExitMapping(ctx *MappingContext)
ExitMapping is called when production mapping is exited.
func (*BaseDGSParserListener) ExitSt ¶
func (s *BaseDGSParserListener) ExitSt(ctx *StContext)
ExitSt is called when production st is exited.
func (*BaseDGSParserListener) ExitValue ¶
func (s *BaseDGSParserListener) ExitValue(ctx *ValueContext)
ExitValue is called when production value is exited.
func (*BaseDGSParserListener) VisitErrorNode ¶
func (s *BaseDGSParserListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseDGSParserListener) VisitTerminal ¶
func (s *BaseDGSParserListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type CeContext ¶
type CeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCeContext ¶
func NewEmptyCeContext ¶
func NewEmptyCeContext() *CeContext
func (*CeContext) Attributes ¶
func (s *CeContext) Attributes() IAttributesContext
func (*CeContext) CE ¶
func (s *CeContext) CE() antlr.TerminalNode
func (*CeContext) EnterRule ¶
func (s *CeContext) EnterRule(listener antlr.ParseTreeListener)
func (*CeContext) ExitRule ¶
func (s *CeContext) ExitRule(listener antlr.ParseTreeListener)
func (*CeContext) GetRuleContext ¶
func (s *CeContext) GetRuleContext() antlr.RuleContext
func (*CeContext) Identifier ¶
func (s *CeContext) Identifier() IIdentifierContext
func (*CeContext) IsCeContext ¶
func (*CeContext) IsCeContext()
func (*CeContext) ToStringTree ¶
func (s *CeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CgContext ¶
type CgContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCgContext ¶
func NewEmptyCgContext ¶
func NewEmptyCgContext() *CgContext
func (*CgContext) Attributes ¶
func (s *CgContext) Attributes() IAttributesContext
func (*CgContext) CG ¶
func (s *CgContext) CG() antlr.TerminalNode
func (*CgContext) EnterRule ¶
func (s *CgContext) EnterRule(listener antlr.ParseTreeListener)
func (*CgContext) ExitRule ¶
func (s *CgContext) ExitRule(listener antlr.ParseTreeListener)
func (*CgContext) GetRuleContext ¶
func (s *CgContext) GetRuleContext() antlr.RuleContext
func (*CgContext) IsCgContext ¶
func (*CgContext) IsCgContext()
func (*CgContext) ToStringTree ¶
func (s *CgContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ClContext ¶
type ClContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewClContext ¶
func NewEmptyClContext ¶
func NewEmptyClContext() *ClContext
func (*ClContext) CL ¶
func (s *ClContext) CL() antlr.TerminalNode
func (*ClContext) EnterRule ¶
func (s *ClContext) EnterRule(listener antlr.ParseTreeListener)
func (*ClContext) ExitRule ¶
func (s *ClContext) ExitRule(listener antlr.ParseTreeListener)
func (*ClContext) GetRuleContext ¶
func (s *ClContext) GetRuleContext() antlr.RuleContext
func (*ClContext) IsClContext ¶
func (*ClContext) IsClContext()
func (*ClContext) ToStringTree ¶
func (s *ClContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CnContext ¶
type CnContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCnContext ¶
func NewEmptyCnContext ¶
func NewEmptyCnContext() *CnContext
func (*CnContext) Attributes ¶
func (s *CnContext) Attributes() IAttributesContext
func (*CnContext) CN ¶
func (s *CnContext) CN() antlr.TerminalNode
func (*CnContext) EnterRule ¶
func (s *CnContext) EnterRule(listener antlr.ParseTreeListener)
func (*CnContext) ExitRule ¶
func (s *CnContext) ExitRule(listener antlr.ParseTreeListener)
func (*CnContext) GetRuleContext ¶
func (s *CnContext) GetRuleContext() antlr.RuleContext
func (*CnContext) Identifier ¶
func (s *CnContext) Identifier() IIdentifierContext
func (*CnContext) IsCnContext ¶
func (*CnContext) IsCnContext()
func (*CnContext) ToStringTree ¶
func (s *CnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DGSLexer ¶
func NewDGSLexer ¶
func NewDGSLexer(input antlr.CharStream) *DGSLexer
type DGSParser ¶
type DGSParser struct {
*antlr.BaseParser
}
func NewDGSParser ¶
func NewDGSParser(input antlr.TokenStream) *DGSParser
func (*DGSParser) A_map ¶
func (p *DGSParser) A_map() (localctx IA_mapContext)
func (*DGSParser) Ae ¶
func (p *DGSParser) Ae() (localctx IAeContext)
func (*DGSParser) An ¶
func (p *DGSParser) An() (localctx IAnContext)
func (*DGSParser) Array ¶
func (p *DGSParser) Array() (localctx IArrayContext)
func (*DGSParser) Assign ¶
func (p *DGSParser) Assign() (localctx IAssignContext)
func (*DGSParser) Attribute ¶
func (p *DGSParser) Attribute() (localctx IAttributeContext)
func (*DGSParser) Attributes ¶
func (p *DGSParser) Attributes() (localctx IAttributesContext)
func (*DGSParser) Ce ¶
func (p *DGSParser) Ce() (localctx ICeContext)
func (*DGSParser) Cg ¶
func (p *DGSParser) Cg() (localctx ICgContext)
func (*DGSParser) Cl ¶
func (p *DGSParser) Cl() (localctx IClContext)
func (*DGSParser) Cn ¶
func (p *DGSParser) Cn() (localctx ICnContext)
func (*DGSParser) De ¶
func (p *DGSParser) De() (localctx IDeContext)
func (*DGSParser) Dgs ¶
func (p *DGSParser) Dgs() (localctx IDgsContext)
func (*DGSParser) Direction ¶
func (p *DGSParser) Direction() (localctx IDirectionContext)
func (*DGSParser) Dn ¶
func (p *DGSParser) Dn() (localctx IDnContext)
func (*DGSParser) Event ¶
func (p *DGSParser) Event() (localctx IEventContext)
func (*DGSParser) Header ¶
func (p *DGSParser) Header() (localctx IHeaderContext)
func (*DGSParser) Identifier ¶
func (p *DGSParser) Identifier() (localctx IIdentifierContext)
func (*DGSParser) Mapping ¶
func (p *DGSParser) Mapping() (localctx IMappingContext)
func (*DGSParser) St ¶
func (p *DGSParser) St() (localctx IStContext)
func (*DGSParser) Value ¶
func (p *DGSParser) Value() (localctx IValueContext)
type DGSParserListener ¶
type DGSParserListener interface { antlr.ParseTreeListener // EnterDgs is called when entering the dgs production. EnterDgs(c *DgsContext) // EnterHeader is called when entering the header production. EnterHeader(c *HeaderContext) // EnterEvent is called when entering the event production. EnterEvent(c *EventContext) // EnterAn is called when entering the an production. EnterAn(c *AnContext) // EnterCn is called when entering the cn production. EnterCn(c *CnContext) // EnterDn is called when entering the dn production. EnterDn(c *DnContext) // EnterAe is called when entering the ae production. EnterAe(c *AeContext) // EnterCe is called when entering the ce production. EnterCe(c *CeContext) // EnterDe is called when entering the de production. EnterDe(c *DeContext) // EnterCg is called when entering the cg production. EnterCg(c *CgContext) // EnterSt is called when entering the st production. EnterSt(c *StContext) // EnterCl is called when entering the cl production. EnterCl(c *ClContext) // EnterAttributes is called when entering the attributes production. EnterAttributes(c *AttributesContext) // EnterAttribute is called when entering the attribute production. EnterAttribute(c *AttributeContext) // EnterValue is called when entering the value production. EnterValue(c *ValueContext) // EnterArray is called when entering the array production. EnterArray(c *ArrayContext) // EnterA_map is called when entering the a_map production. EnterA_map(c *A_mapContext) // EnterMapping is called when entering the mapping production. EnterMapping(c *MappingContext) // EnterDirection is called when entering the direction production. EnterDirection(c *DirectionContext) // EnterAssign is called when entering the assign production. EnterAssign(c *AssignContext) // EnterIdentifier is called when entering the identifier production. EnterIdentifier(c *IdentifierContext) // ExitDgs is called when exiting the dgs production. ExitDgs(c *DgsContext) // ExitHeader is called when exiting the header production. ExitHeader(c *HeaderContext) // ExitEvent is called when exiting the event production. ExitEvent(c *EventContext) // ExitAn is called when exiting the an production. ExitAn(c *AnContext) // ExitCn is called when exiting the cn production. ExitCn(c *CnContext) // ExitDn is called when exiting the dn production. ExitDn(c *DnContext) // ExitAe is called when exiting the ae production. ExitAe(c *AeContext) // ExitCe is called when exiting the ce production. ExitCe(c *CeContext) // ExitDe is called when exiting the de production. ExitDe(c *DeContext) // ExitCg is called when exiting the cg production. ExitCg(c *CgContext) // ExitSt is called when exiting the st production. ExitSt(c *StContext) // ExitCl is called when exiting the cl production. ExitCl(c *ClContext) // ExitAttributes is called when exiting the attributes production. ExitAttributes(c *AttributesContext) // ExitAttribute is called when exiting the attribute production. ExitAttribute(c *AttributeContext) // ExitValue is called when exiting the value production. ExitValue(c *ValueContext) // ExitArray is called when exiting the array production. ExitArray(c *ArrayContext) // ExitA_map is called when exiting the a_map production. ExitA_map(c *A_mapContext) // ExitMapping is called when exiting the mapping production. ExitMapping(c *MappingContext) // ExitDirection is called when exiting the direction production. ExitDirection(c *DirectionContext) // ExitAssign is called when exiting the assign production. ExitAssign(c *AssignContext) // ExitIdentifier is called when exiting the identifier production. ExitIdentifier(c *IdentifierContext) }
DGSParserListener is a complete listener for a parse tree produced by DGSParser.
type DeContext ¶
type DeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDeContext ¶
func NewEmptyDeContext ¶
func NewEmptyDeContext() *DeContext
func (*DeContext) DE ¶
func (s *DeContext) DE() antlr.TerminalNode
func (*DeContext) EnterRule ¶
func (s *DeContext) EnterRule(listener antlr.ParseTreeListener)
func (*DeContext) ExitRule ¶
func (s *DeContext) ExitRule(listener antlr.ParseTreeListener)
func (*DeContext) GetRuleContext ¶
func (s *DeContext) GetRuleContext() antlr.RuleContext
func (*DeContext) Identifier ¶
func (s *DeContext) Identifier() IIdentifierContext
func (*DeContext) IsDeContext ¶
func (*DeContext) IsDeContext()
func (*DeContext) ToStringTree ¶
func (s *DeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DgsContext ¶
type DgsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDgsContext ¶
func NewDgsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DgsContext
func NewEmptyDgsContext ¶
func NewEmptyDgsContext() *DgsContext
func (*DgsContext) AllCOMMENT ¶
func (s *DgsContext) AllCOMMENT() []antlr.TerminalNode
func (*DgsContext) AllEOL ¶
func (s *DgsContext) AllEOL() []antlr.TerminalNode
func (*DgsContext) AllEvent ¶
func (s *DgsContext) AllEvent() []IEventContext
func (*DgsContext) COMMENT ¶
func (s *DgsContext) COMMENT(i int) antlr.TerminalNode
func (*DgsContext) EOL ¶
func (s *DgsContext) EOL(i int) antlr.TerminalNode
func (*DgsContext) EnterRule ¶
func (s *DgsContext) EnterRule(listener antlr.ParseTreeListener)
func (*DgsContext) Event ¶
func (s *DgsContext) Event(i int) IEventContext
func (*DgsContext) ExitRule ¶
func (s *DgsContext) ExitRule(listener antlr.ParseTreeListener)
func (*DgsContext) GetParser ¶
func (s *DgsContext) GetParser() antlr.Parser
func (*DgsContext) GetRuleContext ¶
func (s *DgsContext) GetRuleContext() antlr.RuleContext
func (*DgsContext) Header ¶
func (s *DgsContext) Header() IHeaderContext
func (*DgsContext) IsDgsContext ¶
func (*DgsContext) IsDgsContext()
func (*DgsContext) ToStringTree ¶
func (s *DgsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DirectionContext ¶
type DirectionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDirectionContext ¶
func NewDirectionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DirectionContext
func NewEmptyDirectionContext ¶
func NewEmptyDirectionContext() *DirectionContext
func (*DirectionContext) EnterRule ¶
func (s *DirectionContext) EnterRule(listener antlr.ParseTreeListener)
func (*DirectionContext) ExitRule ¶
func (s *DirectionContext) ExitRule(listener antlr.ParseTreeListener)
func (*DirectionContext) GetParser ¶
func (s *DirectionContext) GetParser() antlr.Parser
func (*DirectionContext) GetRuleContext ¶
func (s *DirectionContext) GetRuleContext() antlr.RuleContext
func (*DirectionContext) IsDirectionContext ¶
func (*DirectionContext) IsDirectionContext()
func (*DirectionContext) LANGLE ¶
func (s *DirectionContext) LANGLE() antlr.TerminalNode
func (*DirectionContext) RANGLE ¶
func (s *DirectionContext) RANGLE() antlr.TerminalNode
func (*DirectionContext) ToStringTree ¶
func (s *DirectionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DnContext ¶
type DnContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDnContext ¶
func NewEmptyDnContext ¶
func NewEmptyDnContext() *DnContext
func (*DnContext) DN ¶
func (s *DnContext) DN() antlr.TerminalNode
func (*DnContext) EnterRule ¶
func (s *DnContext) EnterRule(listener antlr.ParseTreeListener)
func (*DnContext) ExitRule ¶
func (s *DnContext) ExitRule(listener antlr.ParseTreeListener)
func (*DnContext) GetRuleContext ¶
func (s *DnContext) GetRuleContext() antlr.RuleContext
func (*DnContext) Identifier ¶
func (s *DnContext) Identifier() IIdentifierContext
func (*DnContext) IsDnContext ¶
func (*DnContext) IsDnContext()
func (*DnContext) ToStringTree ¶
func (s *DnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type EventContext ¶
type EventContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEventContext ¶
func NewEmptyEventContext() *EventContext
func NewEventContext ¶
func NewEventContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EventContext
func (*EventContext) Ae ¶
func (s *EventContext) Ae() IAeContext
func (*EventContext) An ¶
func (s *EventContext) An() IAnContext
func (*EventContext) COMMENT ¶
func (s *EventContext) COMMENT() antlr.TerminalNode
func (*EventContext) Ce ¶
func (s *EventContext) Ce() ICeContext
func (*EventContext) Cg ¶
func (s *EventContext) Cg() ICgContext
func (*EventContext) Cl ¶
func (s *EventContext) Cl() IClContext
func (*EventContext) Cn ¶
func (s *EventContext) Cn() ICnContext
func (*EventContext) De ¶
func (s *EventContext) De() IDeContext
func (*EventContext) Dn ¶
func (s *EventContext) Dn() IDnContext
func (*EventContext) EOL ¶
func (s *EventContext) EOL() antlr.TerminalNode
func (*EventContext) EnterRule ¶
func (s *EventContext) EnterRule(listener antlr.ParseTreeListener)
func (*EventContext) ExitRule ¶
func (s *EventContext) ExitRule(listener antlr.ParseTreeListener)
func (*EventContext) GetParser ¶
func (s *EventContext) GetParser() antlr.Parser
func (*EventContext) GetRuleContext ¶
func (s *EventContext) GetRuleContext() antlr.RuleContext
func (*EventContext) IsEventContext ¶
func (*EventContext) IsEventContext()
func (*EventContext) St ¶
func (s *EventContext) St() IStContext
func (*EventContext) ToStringTree ¶
func (s *EventContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type HeaderContext ¶
type HeaderContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyHeaderContext ¶
func NewEmptyHeaderContext() *HeaderContext
func NewHeaderContext ¶
func NewHeaderContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *HeaderContext
func (*HeaderContext) AllEOL ¶
func (s *HeaderContext) AllEOL() []antlr.TerminalNode
func (*HeaderContext) AllINT ¶
func (s *HeaderContext) AllINT() []antlr.TerminalNode
func (*HeaderContext) EOL ¶
func (s *HeaderContext) EOL(i int) antlr.TerminalNode
func (*HeaderContext) EnterRule ¶
func (s *HeaderContext) EnterRule(listener antlr.ParseTreeListener)
func (*HeaderContext) ExitRule ¶
func (s *HeaderContext) ExitRule(listener antlr.ParseTreeListener)
func (*HeaderContext) GetParser ¶
func (s *HeaderContext) GetParser() antlr.Parser
func (*HeaderContext) GetRuleContext ¶
func (s *HeaderContext) GetRuleContext() antlr.RuleContext
func (*HeaderContext) INT ¶
func (s *HeaderContext) INT(i int) antlr.TerminalNode
func (*HeaderContext) Identifier ¶
func (s *HeaderContext) Identifier() IIdentifierContext
func (*HeaderContext) IsHeaderContext ¶
func (*HeaderContext) IsHeaderContext()
func (*HeaderContext) MAGIC ¶
func (s *HeaderContext) MAGIC() antlr.TerminalNode
func (*HeaderContext) ToStringTree ¶
func (s *HeaderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IA_mapContext ¶
type IA_mapContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsA_mapContext differentiates from other interfaces. IsA_mapContext() }
IA_mapContext is an interface to support dynamic dispatch.
type IAeContext ¶
type IAeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAeContext differentiates from other interfaces. IsAeContext() }
IAeContext is an interface to support dynamic dispatch.
type IAnContext ¶
type IAnContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAnContext differentiates from other interfaces. IsAnContext() }
IAnContext is an interface to support dynamic dispatch.
type IArrayContext ¶
type IArrayContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsArrayContext differentiates from other interfaces. IsArrayContext() }
IArrayContext is an interface to support dynamic dispatch.
type IAssignContext ¶
type IAssignContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAssignContext differentiates from other interfaces. IsAssignContext() }
IAssignContext is an interface to support dynamic dispatch.
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 IAttributesContext ¶
type IAttributesContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAttributesContext differentiates from other interfaces. IsAttributesContext() }
IAttributesContext is an interface to support dynamic dispatch.
type ICeContext ¶
type ICeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCeContext differentiates from other interfaces. IsCeContext() }
ICeContext is an interface to support dynamic dispatch.
type ICgContext ¶
type ICgContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCgContext differentiates from other interfaces. IsCgContext() }
ICgContext is an interface to support dynamic dispatch.
type IClContext ¶
type IClContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsClContext differentiates from other interfaces. IsClContext() }
IClContext is an interface to support dynamic dispatch.
type ICnContext ¶
type ICnContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCnContext differentiates from other interfaces. IsCnContext() }
ICnContext is an interface to support dynamic dispatch.
type IDeContext ¶
type IDeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDeContext differentiates from other interfaces. IsDeContext() }
IDeContext is an interface to support dynamic dispatch.
type IDgsContext ¶
type IDgsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDgsContext differentiates from other interfaces. IsDgsContext() }
IDgsContext is an interface to support dynamic dispatch.
type IDirectionContext ¶
type IDirectionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDirectionContext differentiates from other interfaces. IsDirectionContext() }
IDirectionContext is an interface to support dynamic dispatch.
type IDnContext ¶
type IDnContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDnContext differentiates from other interfaces. IsDnContext() }
IDnContext is an interface to support dynamic dispatch.
type IEventContext ¶
type IEventContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsEventContext differentiates from other interfaces. IsEventContext() }
IEventContext is an interface to support dynamic dispatch.
type IHeaderContext ¶
type IHeaderContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsHeaderContext differentiates from other interfaces. IsHeaderContext() }
IHeaderContext 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 IMappingContext ¶
type IMappingContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMappingContext differentiates from other interfaces. IsMappingContext() }
IMappingContext is an interface to support dynamic dispatch.
type IStContext ¶
type IStContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStContext differentiates from other interfaces. IsStContext() }
IStContext is an interface to support dynamic dispatch.
type IValueContext ¶
type IValueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // 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) AllDOT ¶
func (s *IdentifierContext) AllDOT() []antlr.TerminalNode
func (*IdentifierContext) AllWORD ¶
func (s *IdentifierContext) AllWORD() []antlr.TerminalNode
func (*IdentifierContext) DOT ¶
func (s *IdentifierContext) DOT(i int) antlr.TerminalNode
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) INT ¶
func (s *IdentifierContext) INT() antlr.TerminalNode
func (*IdentifierContext) IsIdentifierContext ¶
func (*IdentifierContext) IsIdentifierContext()
func (*IdentifierContext) STRING ¶
func (s *IdentifierContext) STRING() antlr.TerminalNode
func (*IdentifierContext) ToStringTree ¶
func (s *IdentifierContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*IdentifierContext) WORD ¶
func (s *IdentifierContext) WORD(i int) antlr.TerminalNode
type MappingContext ¶
type MappingContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMappingContext ¶
func NewEmptyMappingContext() *MappingContext
func NewMappingContext ¶
func NewMappingContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MappingContext
func (*MappingContext) Assign ¶
func (s *MappingContext) Assign() IAssignContext
func (*MappingContext) EnterRule ¶
func (s *MappingContext) EnterRule(listener antlr.ParseTreeListener)
func (*MappingContext) ExitRule ¶
func (s *MappingContext) ExitRule(listener antlr.ParseTreeListener)
func (*MappingContext) GetParser ¶
func (s *MappingContext) GetParser() antlr.Parser
func (*MappingContext) GetRuleContext ¶
func (s *MappingContext) GetRuleContext() antlr.RuleContext
func (*MappingContext) Identifier ¶
func (s *MappingContext) Identifier() IIdentifierContext
func (*MappingContext) IsMappingContext ¶
func (*MappingContext) IsMappingContext()
func (*MappingContext) ToStringTree ¶
func (s *MappingContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*MappingContext) Value ¶
func (s *MappingContext) Value() IValueContext
type StContext ¶
type StContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStContext ¶
func NewEmptyStContext() *StContext
func NewStContext ¶
func (*StContext) EnterRule ¶
func (s *StContext) EnterRule(listener antlr.ParseTreeListener)
func (*StContext) ExitRule ¶
func (s *StContext) ExitRule(listener antlr.ParseTreeListener)
func (*StContext) GetRuleContext ¶
func (s *StContext) GetRuleContext() antlr.RuleContext
func (*StContext) IsStContext ¶
func (*StContext) IsStContext()
func (*StContext) REAL ¶
func (s *StContext) REAL() antlr.TerminalNode
func (*StContext) ST ¶
func (s *StContext) ST() antlr.TerminalNode
func (*StContext) ToStringTree ¶
func (s *StContext) 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) A_map ¶
func (s *ValueContext) A_map() IA_mapContext
func (*ValueContext) Array ¶
func (s *ValueContext) Array() IArrayContext
func (*ValueContext) COLOR ¶
func (s *ValueContext) COLOR() antlr.TerminalNode
func (*ValueContext) EnterRule ¶
func (s *ValueContext) EnterRule(listener antlr.ParseTreeListener)
func (*ValueContext) ExitRule ¶
func (s *ValueContext) ExitRule(listener antlr.ParseTreeListener)
func (*ValueContext) GetParser ¶
func (s *ValueContext) GetParser() antlr.Parser
func (*ValueContext) GetRuleContext ¶
func (s *ValueContext) GetRuleContext() antlr.RuleContext
func (*ValueContext) INT ¶
func (s *ValueContext) INT() antlr.TerminalNode
func (*ValueContext) Identifier ¶
func (s *ValueContext) Identifier() IIdentifierContext
func (*ValueContext) IsValueContext ¶
func (*ValueContext) IsValueContext()
func (*ValueContext) REAL ¶
func (s *ValueContext) REAL() antlr.TerminalNode
func (*ValueContext) STRING ¶
func (s *ValueContext) STRING() antlr.TerminalNode
func (*ValueContext) ToStringTree ¶
func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string