Documentation ¶
Index ¶
- Constants
- func Render(in string) string
- type AttributeContext
- func (s *AttributeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *AttributeContext) EQUALS() antlr.TerminalNode
- func (s *AttributeContext) GetColon() antlr.Token
- func (s *AttributeContext) GetParser() antlr.Parser
- func (s *AttributeContext) GetRuleContext() antlr.RuleContext
- func (*AttributeContext) IsAttributeContext()
- func (s *AttributeContext) Name() antlr.TerminalNode
- func (s *AttributeContext) STRING() antlr.TerminalNode
- func (s *AttributeContext) SetColon(v antlr.Token)
- func (s *AttributeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ChardataContext
- func (s *ChardataContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ChardataContext) GetParser() antlr.Parser
- func (s *ChardataContext) GetRuleContext() antlr.RuleContext
- func (*ChardataContext) IsChardataContext()
- func (s *ChardataContext) SEA_WS() antlr.TerminalNode
- func (s *ChardataContext) TEXT() antlr.TerminalNode
- func (s *ChardataContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ContentContext
- func (s *ContentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ContentContext) AllCDATA() []antlr.TerminalNode
- func (s *ContentContext) AllCOMMENT() []antlr.TerminalNode
- func (s *ContentContext) AllChardata() []IChardataContext
- func (s *ContentContext) AllElement() []IElementContext
- func (s *ContentContext) AllPI() []antlr.TerminalNode
- func (s *ContentContext) AllReference() []IReferenceContext
- func (s *ContentContext) CDATA(i int) antlr.TerminalNode
- func (s *ContentContext) COMMENT(i int) antlr.TerminalNode
- func (s *ContentContext) Chardata(i int) IChardataContext
- func (s *ContentContext) Element(i int) IElementContext
- func (s *ContentContext) GetParser() antlr.Parser
- func (s *ContentContext) GetRuleContext() antlr.RuleContext
- func (*ContentContext) IsContentContext()
- func (s *ContentContext) PI(i int) antlr.TerminalNode
- func (s *ContentContext) Reference(i int) IReferenceContext
- func (s *ContentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DocumentContext
- func (s *DocumentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *DocumentContext) AllMisc() []IMiscContext
- func (s *DocumentContext) Element() IElementContext
- func (s *DocumentContext) GetParser() antlr.Parser
- func (s *DocumentContext) GetRuleContext() antlr.RuleContext
- func (*DocumentContext) IsDocumentContext()
- func (s *DocumentContext) Misc(i int) IMiscContext
- func (s *DocumentContext) Prolog() IPrologContext
- func (s *DocumentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ElementContext
- func (s *ElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ElementContext) AllAttribute() []IAttributeContext
- func (s *ElementContext) AllName() []antlr.TerminalNode
- func (s *ElementContext) AllTagL() []ITagLContext
- func (s *ElementContext) AllTagR() []ITagRContext
- func (s *ElementContext) Attribute(i int) IAttributeContext
- func (s *ElementContext) Content() IContentContext
- func (s *ElementContext) GetParser() antlr.Parser
- func (s *ElementContext) GetRuleContext() antlr.RuleContext
- func (*ElementContext) IsElementContext()
- func (s *ElementContext) Name(i int) antlr.TerminalNode
- func (s *ElementContext) TagL(i int) ITagLContext
- func (s *ElementContext) TagR(i int) ITagRContext
- func (s *ElementContext) TagR1() ITagR1Context
- func (s *ElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IAttributeContext
- type IChardataContext
- type IContentContext
- type IDocumentContext
- type IElementContext
- type IMiscContext
- type IPrologContext
- type IReferenceContext
- type ITagLContext
- type ITagR1Context
- type ITagRContext
- type MiscContext
- func (s *MiscContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *MiscContext) COMMENT() antlr.TerminalNode
- func (s *MiscContext) GetParser() antlr.Parser
- func (s *MiscContext) GetRuleContext() antlr.RuleContext
- func (*MiscContext) IsMiscContext()
- func (s *MiscContext) PI() antlr.TerminalNode
- func (s *MiscContext) SEA_WS() antlr.TerminalNode
- func (s *MiscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type PrologContext
- func (s *PrologContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *PrologContext) AllAttribute() []IAttributeContext
- func (s *PrologContext) Attribute(i int) IAttributeContext
- func (s *PrologContext) GetParser() antlr.Parser
- func (s *PrologContext) GetRuleContext() antlr.RuleContext
- func (*PrologContext) IsPrologContext()
- func (s *PrologContext) SPECIAL_CLOSE() antlr.TerminalNode
- func (s *PrologContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *PrologContext) XMLDeclOpen() antlr.TerminalNode
- type ReferenceContext
- func (s *ReferenceContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ReferenceContext) CharRef() antlr.TerminalNode
- func (s *ReferenceContext) EntityRef() antlr.TerminalNode
- func (s *ReferenceContext) GetParser() antlr.Parser
- func (s *ReferenceContext) GetRuleContext() antlr.RuleContext
- func (*ReferenceContext) IsReferenceContext()
- func (s *ReferenceContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TagLContext
- func (s *TagLContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *TagLContext) GetParser() antlr.Parser
- func (s *TagLContext) GetRuleContext() antlr.RuleContext
- func (*TagLContext) IsTagLContext()
- func (s *TagLContext) OPEN() antlr.TerminalNode
- func (s *TagLContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TagR1Context
- func (s *TagR1Context) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *TagR1Context) GetParser() antlr.Parser
- func (s *TagR1Context) GetRuleContext() antlr.RuleContext
- func (*TagR1Context) IsTagR1Context()
- func (s *TagR1Context) SLASH() antlr.TerminalNode
- func (s *TagR1Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TagRContext
- func (s *TagRContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *TagRContext) CLOSE() antlr.TerminalNode
- func (s *TagRContext) GetParser() antlr.Parser
- func (s *TagRContext) GetRuleContext() antlr.RuleContext
- func (*TagRContext) IsTagRContext()
- func (s *TagRContext) SLASH_CLOSE() antlr.TerminalNode
- func (s *TagRContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Visitor
- func (v *Visitor) VisitAttribute(ctx *AttributeContext) interface{}
- func (v *Visitor) VisitChardata(ctx *ChardataContext) interface{}
- func (v *Visitor) VisitContent(ctx *ContentContext) interface{}
- func (v *Visitor) VisitDocument(ctx *DocumentContext) interface{}
- func (v *Visitor) VisitElement(ctx *ElementContext) interface{}
- func (v *Visitor) VisitMisc(ctx *MiscContext) interface{}
- func (v *Visitor) VisitProlog(ctx *PrologContext) interface{}
- func (v *Visitor) VisitReference(ctx *ReferenceContext) interface{}
- func (v *Visitor) VisitTagL(ctx *TagLContext) interface{}
- func (v *Visitor) VisitTagR(ctx *TagRContext) interface{}
- func (v *Visitor) VisitTagR1(ctx *TagR1Context) interface{}
- type XmlLexer
- type XmlParser
- func (p *XmlParser) Attribute() (localctx IAttributeContext)
- func (p *XmlParser) Chardata() (localctx IChardataContext)
- func (p *XmlParser) Content() (localctx IContentContext)
- func (p *XmlParser) Document() (localctx IDocumentContext)
- func (p *XmlParser) Element() (localctx IElementContext)
- func (p *XmlParser) Misc() (localctx IMiscContext)
- func (p *XmlParser) Prolog() (localctx IPrologContext)
- func (p *XmlParser) Reference() (localctx IReferenceContext)
- func (p *XmlParser) TagL() (localctx ITagLContext)
- func (p *XmlParser) TagR() (localctx ITagRContext)
- func (p *XmlParser) TagR1() (localctx ITagR1Context)
- type XmlParserVisitor
Constants ¶
const ( XmlLexerCOMMENT = 1 XmlLexerCDATA = 2 XmlLexerDTD = 3 XmlLexerEntityRef = 4 XmlLexerCharRef = 5 XmlLexerSEA_WS = 6 XmlLexerOPEN = 7 XmlLexerXMLDeclOpen = 8 XmlLexerTEXT = 9 XmlLexerCLOSE = 10 XmlLexerSPECIAL_CLOSE = 11 XmlLexerSLASH_CLOSE = 12 XmlLexerSLASH = 13 XmlLexerEQUALS = 14 XmlLexerSTRING = 15 XmlLexerName = 16 XmlLexerS = 17 XmlLexerPI = 18 )
XmlLexer tokens.
const ( XmlLexerINSIDE = iota + 1 XmlLexerPROC_INSTR )
XmlLexer modes.
const ( XmlParserEOF = antlr.TokenEOF XmlParserCOMMENT = 1 XmlParserCDATA = 2 XmlParserDTD = 3 XmlParserEntityRef = 4 XmlParserCharRef = 5 XmlParserSEA_WS = 6 XmlParserOPEN = 7 XmlParserXMLDeclOpen = 8 XmlParserTEXT = 9 XmlParserCLOSE = 10 XmlParserSPECIAL_CLOSE = 11 XmlParserSLASH_CLOSE = 12 XmlParserSLASH = 13 XmlParserEQUALS = 14 XmlParserSTRING = 15 XmlParserName = 16 XmlParserS = 17 XmlParserPI = 18 )
XmlParser tokens.
const ( XmlParserRULE_document = 0 XmlParserRULE_prolog = 1 XmlParserRULE_content = 2 XmlParserRULE_element = 3 XmlParserRULE_tagL = 4 XmlParserRULE_tagR = 5 XmlParserRULE_tagR1 = 6 XmlParserRULE_reference = 7 XmlParserRULE_attribute = 8 XmlParserRULE_chardata = 9 XmlParserRULE_misc = 10 )
XmlParser rules.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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) EQUALS ¶
func (s *AttributeContext) EQUALS() antlr.TerminalNode
func (*AttributeContext) GetColon ¶
func (s *AttributeContext) GetColon() antlr.Token
func (*AttributeContext) GetParser ¶
func (s *AttributeContext) GetParser() antlr.Parser
func (*AttributeContext) GetRuleContext ¶
func (s *AttributeContext) GetRuleContext() antlr.RuleContext
func (*AttributeContext) IsAttributeContext ¶
func (*AttributeContext) IsAttributeContext()
func (*AttributeContext) Name ¶
func (s *AttributeContext) Name() antlr.TerminalNode
func (*AttributeContext) STRING ¶
func (s *AttributeContext) STRING() antlr.TerminalNode
func (*AttributeContext) SetColon ¶
func (s *AttributeContext) SetColon(v antlr.Token)
func (*AttributeContext) ToStringTree ¶
func (s *AttributeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ChardataContext ¶
type ChardataContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewChardataContext ¶
func NewChardataContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ChardataContext
func NewEmptyChardataContext ¶
func NewEmptyChardataContext() *ChardataContext
func (*ChardataContext) Accept ¶
func (s *ChardataContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ChardataContext) GetParser ¶
func (s *ChardataContext) GetParser() antlr.Parser
func (*ChardataContext) GetRuleContext ¶
func (s *ChardataContext) GetRuleContext() antlr.RuleContext
func (*ChardataContext) IsChardataContext ¶
func (*ChardataContext) IsChardataContext()
func (*ChardataContext) SEA_WS ¶
func (s *ChardataContext) SEA_WS() antlr.TerminalNode
func (*ChardataContext) TEXT ¶
func (s *ChardataContext) TEXT() antlr.TerminalNode
func (*ChardataContext) ToStringTree ¶
func (s *ChardataContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ContentContext ¶
type ContentContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewContentContext ¶
func NewContentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ContentContext
func NewEmptyContentContext ¶
func NewEmptyContentContext() *ContentContext
func (*ContentContext) Accept ¶
func (s *ContentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ContentContext) AllCDATA ¶
func (s *ContentContext) AllCDATA() []antlr.TerminalNode
func (*ContentContext) AllCOMMENT ¶
func (s *ContentContext) AllCOMMENT() []antlr.TerminalNode
func (*ContentContext) AllChardata ¶
func (s *ContentContext) AllChardata() []IChardataContext
func (*ContentContext) AllElement ¶
func (s *ContentContext) AllElement() []IElementContext
func (*ContentContext) AllPI ¶
func (s *ContentContext) AllPI() []antlr.TerminalNode
func (*ContentContext) AllReference ¶
func (s *ContentContext) AllReference() []IReferenceContext
func (*ContentContext) CDATA ¶
func (s *ContentContext) CDATA(i int) antlr.TerminalNode
func (*ContentContext) COMMENT ¶
func (s *ContentContext) COMMENT(i int) antlr.TerminalNode
func (*ContentContext) Chardata ¶
func (s *ContentContext) Chardata(i int) IChardataContext
func (*ContentContext) Element ¶
func (s *ContentContext) Element(i int) IElementContext
func (*ContentContext) GetParser ¶
func (s *ContentContext) GetParser() antlr.Parser
func (*ContentContext) GetRuleContext ¶
func (s *ContentContext) GetRuleContext() antlr.RuleContext
func (*ContentContext) IsContentContext ¶
func (*ContentContext) IsContentContext()
func (*ContentContext) PI ¶
func (s *ContentContext) PI(i int) antlr.TerminalNode
func (*ContentContext) Reference ¶
func (s *ContentContext) Reference(i int) IReferenceContext
func (*ContentContext) ToStringTree ¶
func (s *ContentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DocumentContext ¶
type DocumentContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDocumentContext ¶
func NewDocumentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DocumentContext
func NewEmptyDocumentContext ¶
func NewEmptyDocumentContext() *DocumentContext
func (*DocumentContext) Accept ¶
func (s *DocumentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*DocumentContext) AllMisc ¶
func (s *DocumentContext) AllMisc() []IMiscContext
func (*DocumentContext) Element ¶
func (s *DocumentContext) Element() IElementContext
func (*DocumentContext) GetParser ¶
func (s *DocumentContext) GetParser() antlr.Parser
func (*DocumentContext) GetRuleContext ¶
func (s *DocumentContext) GetRuleContext() antlr.RuleContext
func (*DocumentContext) IsDocumentContext ¶
func (*DocumentContext) IsDocumentContext()
func (*DocumentContext) Misc ¶
func (s *DocumentContext) Misc(i int) IMiscContext
func (*DocumentContext) Prolog ¶
func (s *DocumentContext) Prolog() IPrologContext
func (*DocumentContext) ToStringTree ¶
func (s *DocumentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ElementContext ¶
type ElementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewElementContext ¶
func NewElementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ElementContext
func NewEmptyElementContext ¶
func NewEmptyElementContext() *ElementContext
func (*ElementContext) Accept ¶
func (s *ElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ElementContext) AllAttribute ¶
func (s *ElementContext) AllAttribute() []IAttributeContext
func (*ElementContext) AllName ¶
func (s *ElementContext) AllName() []antlr.TerminalNode
func (*ElementContext) AllTagL ¶
func (s *ElementContext) AllTagL() []ITagLContext
func (*ElementContext) AllTagR ¶
func (s *ElementContext) AllTagR() []ITagRContext
func (*ElementContext) Attribute ¶
func (s *ElementContext) Attribute(i int) IAttributeContext
func (*ElementContext) Content ¶
func (s *ElementContext) Content() IContentContext
func (*ElementContext) GetParser ¶
func (s *ElementContext) GetParser() antlr.Parser
func (*ElementContext) GetRuleContext ¶
func (s *ElementContext) GetRuleContext() antlr.RuleContext
func (*ElementContext) IsElementContext ¶
func (*ElementContext) IsElementContext()
func (*ElementContext) Name ¶
func (s *ElementContext) Name(i int) antlr.TerminalNode
func (*ElementContext) TagL ¶
func (s *ElementContext) TagL(i int) ITagLContext
func (*ElementContext) TagR ¶
func (s *ElementContext) TagR(i int) ITagRContext
func (*ElementContext) TagR1 ¶
func (s *ElementContext) TagR1() ITagR1Context
func (*ElementContext) ToStringTree ¶
func (s *ElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IAttributeContext ¶
type IAttributeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetColon returns the colon token. GetColon() antlr.Token // SetColon sets the colon token. SetColon(antlr.Token) // IsAttributeContext differentiates from other interfaces. IsAttributeContext() }
IAttributeContext is an interface to support dynamic dispatch.
type IChardataContext ¶
type IChardataContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsChardataContext differentiates from other interfaces. IsChardataContext() }
IChardataContext is an interface to support dynamic dispatch.
type IContentContext ¶
type IContentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsContentContext differentiates from other interfaces. IsContentContext() }
IContentContext is an interface to support dynamic dispatch.
type IDocumentContext ¶
type IDocumentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDocumentContext differentiates from other interfaces. IsDocumentContext() }
IDocumentContext is an interface to support dynamic dispatch.
type IElementContext ¶
type IElementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsElementContext differentiates from other interfaces. IsElementContext() }
IElementContext is an interface to support dynamic dispatch.
type IMiscContext ¶
type IMiscContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMiscContext differentiates from other interfaces. IsMiscContext() }
IMiscContext is an interface to support dynamic dispatch.
type IPrologContext ¶
type IPrologContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsPrologContext differentiates from other interfaces. IsPrologContext() }
IPrologContext is an interface to support dynamic dispatch.
type IReferenceContext ¶
type IReferenceContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsReferenceContext differentiates from other interfaces. IsReferenceContext() }
IReferenceContext is an interface to support dynamic dispatch.
type ITagLContext ¶
type ITagLContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTagLContext differentiates from other interfaces. IsTagLContext() }
ITagLContext is an interface to support dynamic dispatch.
type ITagR1Context ¶
type ITagR1Context interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTagR1Context differentiates from other interfaces. IsTagR1Context() }
ITagR1Context is an interface to support dynamic dispatch.
type ITagRContext ¶
type ITagRContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTagRContext differentiates from other interfaces. IsTagRContext() }
ITagRContext is an interface to support dynamic dispatch.
type MiscContext ¶
type MiscContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMiscContext ¶
func NewEmptyMiscContext() *MiscContext
func NewMiscContext ¶
func NewMiscContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MiscContext
func (*MiscContext) Accept ¶
func (s *MiscContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*MiscContext) COMMENT ¶
func (s *MiscContext) COMMENT() antlr.TerminalNode
func (*MiscContext) GetParser ¶
func (s *MiscContext) GetParser() antlr.Parser
func (*MiscContext) GetRuleContext ¶
func (s *MiscContext) GetRuleContext() antlr.RuleContext
func (*MiscContext) IsMiscContext ¶
func (*MiscContext) IsMiscContext()
func (*MiscContext) PI ¶
func (s *MiscContext) PI() antlr.TerminalNode
func (*MiscContext) SEA_WS ¶
func (s *MiscContext) SEA_WS() antlr.TerminalNode
func (*MiscContext) ToStringTree ¶
func (s *MiscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type PrologContext ¶
type PrologContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyPrologContext ¶
func NewEmptyPrologContext() *PrologContext
func NewPrologContext ¶
func NewPrologContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PrologContext
func (*PrologContext) Accept ¶
func (s *PrologContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*PrologContext) AllAttribute ¶
func (s *PrologContext) AllAttribute() []IAttributeContext
func (*PrologContext) Attribute ¶
func (s *PrologContext) Attribute(i int) IAttributeContext
func (*PrologContext) GetParser ¶
func (s *PrologContext) GetParser() antlr.Parser
func (*PrologContext) GetRuleContext ¶
func (s *PrologContext) GetRuleContext() antlr.RuleContext
func (*PrologContext) IsPrologContext ¶
func (*PrologContext) IsPrologContext()
func (*PrologContext) SPECIAL_CLOSE ¶
func (s *PrologContext) SPECIAL_CLOSE() antlr.TerminalNode
func (*PrologContext) ToStringTree ¶
func (s *PrologContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*PrologContext) XMLDeclOpen ¶
func (s *PrologContext) XMLDeclOpen() antlr.TerminalNode
type ReferenceContext ¶
type ReferenceContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyReferenceContext ¶
func NewEmptyReferenceContext() *ReferenceContext
func NewReferenceContext ¶
func NewReferenceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReferenceContext
func (*ReferenceContext) Accept ¶
func (s *ReferenceContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ReferenceContext) CharRef ¶
func (s *ReferenceContext) CharRef() antlr.TerminalNode
func (*ReferenceContext) EntityRef ¶
func (s *ReferenceContext) EntityRef() antlr.TerminalNode
func (*ReferenceContext) GetParser ¶
func (s *ReferenceContext) GetParser() antlr.Parser
func (*ReferenceContext) GetRuleContext ¶
func (s *ReferenceContext) GetRuleContext() antlr.RuleContext
func (*ReferenceContext) IsReferenceContext ¶
func (*ReferenceContext) IsReferenceContext()
func (*ReferenceContext) ToStringTree ¶
func (s *ReferenceContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TagLContext ¶
type TagLContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTagLContext ¶
func NewEmptyTagLContext() *TagLContext
func NewTagLContext ¶
func NewTagLContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TagLContext
func (*TagLContext) Accept ¶
func (s *TagLContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*TagLContext) GetParser ¶
func (s *TagLContext) GetParser() antlr.Parser
func (*TagLContext) GetRuleContext ¶
func (s *TagLContext) GetRuleContext() antlr.RuleContext
func (*TagLContext) IsTagLContext ¶
func (*TagLContext) IsTagLContext()
func (*TagLContext) OPEN ¶
func (s *TagLContext) OPEN() antlr.TerminalNode
func (*TagLContext) ToStringTree ¶
func (s *TagLContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TagR1Context ¶
type TagR1Context struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTagR1Context ¶
func NewEmptyTagR1Context() *TagR1Context
func NewTagR1Context ¶
func NewTagR1Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TagR1Context
func (*TagR1Context) Accept ¶
func (s *TagR1Context) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*TagR1Context) GetParser ¶
func (s *TagR1Context) GetParser() antlr.Parser
func (*TagR1Context) GetRuleContext ¶
func (s *TagR1Context) GetRuleContext() antlr.RuleContext
func (*TagR1Context) IsTagR1Context ¶
func (*TagR1Context) IsTagR1Context()
func (*TagR1Context) SLASH ¶
func (s *TagR1Context) SLASH() antlr.TerminalNode
func (*TagR1Context) ToStringTree ¶
func (s *TagR1Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TagRContext ¶
type TagRContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTagRContext ¶
func NewEmptyTagRContext() *TagRContext
func NewTagRContext ¶
func NewTagRContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TagRContext
func (*TagRContext) Accept ¶
func (s *TagRContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*TagRContext) CLOSE ¶
func (s *TagRContext) CLOSE() antlr.TerminalNode
func (*TagRContext) GetParser ¶
func (s *TagRContext) GetParser() antlr.Parser
func (*TagRContext) GetRuleContext ¶
func (s *TagRContext) GetRuleContext() antlr.RuleContext
func (*TagRContext) IsTagRContext ¶
func (*TagRContext) IsTagRContext()
func (*TagRContext) SLASH_CLOSE ¶
func (s *TagRContext) SLASH_CLOSE() antlr.TerminalNode
func (*TagRContext) ToStringTree ¶
func (s *TagRContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Visitor ¶
type Visitor struct {
*antlr.BaseParseTreeVisitor
}
func (*Visitor) VisitAttribute ¶
func (v *Visitor) VisitAttribute(ctx *AttributeContext) interface{}
func (*Visitor) VisitChardata ¶
func (v *Visitor) VisitChardata(ctx *ChardataContext) interface{}
func (*Visitor) VisitContent ¶
func (v *Visitor) VisitContent(ctx *ContentContext) interface{}
func (*Visitor) VisitDocument ¶
func (v *Visitor) VisitDocument(ctx *DocumentContext) interface{}
func (*Visitor) VisitElement ¶
func (v *Visitor) VisitElement(ctx *ElementContext) interface{}
func (*Visitor) VisitMisc ¶
func (v *Visitor) VisitMisc(ctx *MiscContext) interface{}
func (*Visitor) VisitProlog ¶
func (v *Visitor) VisitProlog(ctx *PrologContext) interface{}
func (*Visitor) VisitReference ¶
func (v *Visitor) VisitReference(ctx *ReferenceContext) interface{}
func (*Visitor) VisitTagL ¶
func (v *Visitor) VisitTagL(ctx *TagLContext) interface{}
func (*Visitor) VisitTagR ¶
func (v *Visitor) VisitTagR(ctx *TagRContext) interface{}
func (*Visitor) VisitTagR1 ¶
func (v *Visitor) VisitTagR1(ctx *TagR1Context) interface{}
type XmlLexer ¶
func NewXmlLexer ¶
func NewXmlLexer(input antlr.CharStream) *XmlLexer
NewXmlLexer produces a new lexer instance for the optional input antlr.CharStream.
The *XmlLexer 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 XmlParser ¶
type XmlParser struct {
*antlr.BaseParser
}
func NewXmlParser ¶
func NewXmlParser(input antlr.TokenStream) *XmlParser
NewXmlParser produces a new parser instance for the optional input antlr.TokenStream.
The *XmlParser 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 (*XmlParser) Attribute ¶
func (p *XmlParser) Attribute() (localctx IAttributeContext)
func (*XmlParser) Chardata ¶
func (p *XmlParser) Chardata() (localctx IChardataContext)
func (*XmlParser) Content ¶
func (p *XmlParser) Content() (localctx IContentContext)
func (*XmlParser) Document ¶
func (p *XmlParser) Document() (localctx IDocumentContext)
func (*XmlParser) Element ¶
func (p *XmlParser) Element() (localctx IElementContext)
func (*XmlParser) Misc ¶
func (p *XmlParser) Misc() (localctx IMiscContext)
func (*XmlParser) Prolog ¶
func (p *XmlParser) Prolog() (localctx IPrologContext)
func (*XmlParser) Reference ¶
func (p *XmlParser) Reference() (localctx IReferenceContext)
func (*XmlParser) TagL ¶
func (p *XmlParser) TagL() (localctx ITagLContext)
func (*XmlParser) TagR ¶
func (p *XmlParser) TagR() (localctx ITagRContext)
func (*XmlParser) TagR1 ¶
func (p *XmlParser) TagR1() (localctx ITagR1Context)
type XmlParserVisitor ¶
type XmlParserVisitor interface { antlr.ParseTreeVisitor // Visit a parse tree produced by XmlParser#document. VisitDocument(ctx *DocumentContext) interface{} // Visit a parse tree produced by XmlParser#prolog. VisitProlog(ctx *PrologContext) interface{} // Visit a parse tree produced by XmlParser#content. VisitContent(ctx *ContentContext) interface{} // Visit a parse tree produced by XmlParser#element. VisitElement(ctx *ElementContext) interface{} // Visit a parse tree produced by XmlParser#tagL. VisitTagL(ctx *TagLContext) interface{} // Visit a parse tree produced by XmlParser#tagR. VisitTagR(ctx *TagRContext) interface{} // Visit a parse tree produced by XmlParser#tagR1. VisitTagR1(ctx *TagR1Context) interface{} // Visit a parse tree produced by XmlParser#reference. VisitReference(ctx *ReferenceContext) interface{} // Visit a parse tree produced by XmlParser#attribute. VisitAttribute(ctx *AttributeContext) interface{} // Visit a parse tree produced by XmlParser#chardata. VisitChardata(ctx *ChardataContext) interface{} // Visit a parse tree produced by XmlParser#misc. VisitMisc(ctx *MiscContext) interface{} }
A complete Visitor for a parse tree produced by XmlParser.