Documentation ¶
Index ¶
- Constants
- func Render(in string) string
- type DockerContext
- func (s *DockerContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *DockerContext) AllValue() []IValueContext
- func (s *DockerContext) GetParser() antlr.Parser
- func (s *DockerContext) GetRuleContext() antlr.RuleContext
- func (*DockerContext) IsDockerContext()
- func (s *DockerContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *DockerContext) Value(i int) IValueContext
- type DockerLexer
- type DockerParser
- type DockerVisitor
- type IDockerContext
- type IValueContext
- type ValueContext
- func (s *ValueContext) ARG() antlr.TerminalNode
- func (s *ValueContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ValueContext) BOOL() antlr.TerminalNode
- func (s *ValueContext) BRACES() antlr.TerminalNode
- func (s *ValueContext) BRACKETS() antlr.TerminalNode
- func (s *ValueContext) COLON() antlr.TerminalNode
- func (s *ValueContext) COMMA() antlr.TerminalNode
- func (s *ValueContext) COMMENT() antlr.TerminalNode
- func (s *ValueContext) DOT() antlr.TerminalNode
- func (s *ValueContext) DOUBLE_QUOTED_STRING() antlr.TerminalNode
- func (s *ValueContext) GetParser() antlr.Parser
- func (s *ValueContext) GetRuleContext() antlr.RuleContext
- func (*ValueContext) IsValueContext()
- func (s *ValueContext) KEYWORD() antlr.TerminalNode
- func (s *ValueContext) LINE_VALUE() antlr.TerminalNode
- func (s *ValueContext) NUMBER() antlr.TerminalNode
- func (s *ValueContext) OTHER() antlr.TerminalNode
- func (s *ValueContext) PARENTHESES() antlr.TerminalNode
- func (s *ValueContext) SINGLE_QUOTED_STRING() antlr.TerminalNode
- func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Visitor
Constants ¶
const ( DockerLexerKEYWORD = 1 DockerLexerBOOL = 2 DockerLexerBRACKETS = 3 DockerLexerBRACES = 4 DockerLexerCOMMA = 5 DockerLexerARG = 6 DockerLexerCOLON = 7 DockerLexerDOT = 8 DockerLexerPARENTHESES = 9 DockerLexerCOMMENT = 10 DockerLexerLINE_VALUE = 11 DockerLexerDOUBLE_QUOTED_STRING = 12 DockerLexerSINGLE_QUOTED_STRING = 13 DockerLexerWS = 14 DockerLexerSINGLE_SAFECODEPOINT = 15 DockerLexerSAFECODEPOINT = 16 DockerLexerNUMBER = 17 DockerLexerOTHER = 18 )
DockerLexer tokens.
const ( DockerParserEOF = antlr.TokenEOF DockerParserKEYWORD = 1 DockerParserBOOL = 2 DockerParserBRACKETS = 3 DockerParserBRACES = 4 DockerParserCOMMA = 5 DockerParserARG = 6 DockerParserCOLON = 7 DockerParserDOT = 8 DockerParserPARENTHESES = 9 DockerParserCOMMENT = 10 DockerParserLINE_VALUE = 11 DockerParserDOUBLE_QUOTED_STRING = 12 DockerParserSINGLE_QUOTED_STRING = 13 DockerParserWS = 14 DockerParserSINGLE_SAFECODEPOINT = 15 DockerParserSAFECODEPOINT = 16 DockerParserNUMBER = 17 DockerParserOTHER = 18 )
DockerParser tokens.
const ( DockerParserRULE_docker = 0 DockerParserRULE_value = 1 )
DockerParser rules.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerContext ¶
type DockerContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDockerContext ¶
func NewDockerContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DockerContext
func NewEmptyDockerContext ¶
func NewEmptyDockerContext() *DockerContext
func (*DockerContext) Accept ¶
func (s *DockerContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*DockerContext) AllValue ¶
func (s *DockerContext) AllValue() []IValueContext
func (*DockerContext) GetParser ¶
func (s *DockerContext) GetParser() antlr.Parser
func (*DockerContext) GetRuleContext ¶
func (s *DockerContext) GetRuleContext() antlr.RuleContext
func (*DockerContext) IsDockerContext ¶
func (*DockerContext) IsDockerContext()
func (*DockerContext) ToStringTree ¶
func (s *DockerContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*DockerContext) Value ¶
func (s *DockerContext) Value(i int) IValueContext
type DockerLexer ¶
func NewDockerLexer ¶
func NewDockerLexer(input antlr.CharStream) *DockerLexer
NewDockerLexer produces a new lexer instance for the optional input antlr.CharStream.
The *DockerLexer 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 DockerParser ¶
type DockerParser struct {
*antlr.BaseParser
}
func NewDockerParser ¶
func NewDockerParser(input antlr.TokenStream) *DockerParser
NewDockerParser produces a new parser instance for the optional input antlr.TokenStream.
The *DockerParser 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 (*DockerParser) Docker ¶
func (p *DockerParser) Docker() (localctx IDockerContext)
func (*DockerParser) Value ¶
func (p *DockerParser) Value() (localctx IValueContext)
type DockerVisitor ¶
type DockerVisitor interface { antlr.ParseTreeVisitor // Visit a parse tree produced by DockerParser#docker. VisitDocker(ctx *DockerContext) interface{} // Visit a parse tree produced by DockerParser#value. VisitValue(ctx *ValueContext) interface{} }
A complete Visitor for a parse tree produced by DockerParser.
type IDockerContext ¶
type IDockerContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDockerContext differentiates from other interfaces. IsDockerContext() }
IDockerContext 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 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) ARG ¶
func (s *ValueContext) ARG() antlr.TerminalNode
func (*ValueContext) Accept ¶
func (s *ValueContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ValueContext) BOOL ¶
func (s *ValueContext) BOOL() antlr.TerminalNode
func (*ValueContext) BRACES ¶
func (s *ValueContext) BRACES() antlr.TerminalNode
func (*ValueContext) BRACKETS ¶
func (s *ValueContext) BRACKETS() antlr.TerminalNode
func (*ValueContext) COLON ¶
func (s *ValueContext) COLON() antlr.TerminalNode
func (*ValueContext) COMMA ¶
func (s *ValueContext) COMMA() antlr.TerminalNode
func (*ValueContext) COMMENT ¶
func (s *ValueContext) COMMENT() antlr.TerminalNode
func (*ValueContext) DOT ¶
func (s *ValueContext) DOT() antlr.TerminalNode
func (*ValueContext) DOUBLE_QUOTED_STRING ¶
func (s *ValueContext) DOUBLE_QUOTED_STRING() antlr.TerminalNode
func (*ValueContext) GetParser ¶
func (s *ValueContext) GetParser() antlr.Parser
func (*ValueContext) GetRuleContext ¶
func (s *ValueContext) GetRuleContext() antlr.RuleContext
func (*ValueContext) IsValueContext ¶
func (*ValueContext) IsValueContext()
func (*ValueContext) KEYWORD ¶
func (s *ValueContext) KEYWORD() antlr.TerminalNode
func (*ValueContext) LINE_VALUE ¶
func (s *ValueContext) LINE_VALUE() antlr.TerminalNode
func (*ValueContext) NUMBER ¶
func (s *ValueContext) NUMBER() antlr.TerminalNode
func (*ValueContext) OTHER ¶
func (s *ValueContext) OTHER() antlr.TerminalNode
func (*ValueContext) PARENTHESES ¶
func (s *ValueContext) PARENTHESES() antlr.TerminalNode
func (*ValueContext) SINGLE_QUOTED_STRING ¶
func (s *ValueContext) SINGLE_QUOTED_STRING() antlr.TerminalNode
func (*ValueContext) ToStringTree ¶
func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Visitor ¶
type Visitor struct {
*antlr.BaseParseTreeVisitor
}
func (*Visitor) VisitDocker ¶
func (v *Visitor) VisitDocker(ctx *DockerContext) interface{}
func (*Visitor) VisitValue ¶
func (v *Visitor) VisitValue(ctx *ValueContext) interface{}