Documentation ¶
Index ¶
- Constants
- func HerdLexerInit()
- func HerdParserInit()
- type AddContext
- func (s *AddContext) ADD() antlr.TerminalNode
- func (s *AddContext) AllFilter() []IFilterContext
- func (s *AddContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AddContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AddContext) Filter(i int) IFilterContext
- func (s *AddContext) GLOB() antlr.TerminalNode
- func (s *AddContext) GetFilters() IFilterContext
- func (s *AddContext) GetGlob() antlr.Token
- func (s *AddContext) GetParser() antlr.Parser
- func (s *AddContext) GetRuleContext() antlr.RuleContext
- func (s *AddContext) HOSTS() antlr.TerminalNode
- func (s *AddContext) IDENTIFIER() antlr.TerminalNode
- func (*AddContext) IsAddContext()
- func (s *AddContext) SetFilters(v IFilterContext)
- func (s *AddContext) SetGlob(v antlr.Token)
- func (s *AddContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ArrayContext
- func (s *ArrayContext) AllValue() []IValueContext
- 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) SB_OPEN() antlr.TerminalNode
- func (s *ArrayContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ArrayContext) Value(i int) IValueContext
- type BaseHerdListener
- func (s *BaseHerdListener) EnterAdd(ctx *AddContext)
- func (s *BaseHerdListener) EnterArray(ctx *ArrayContext)
- func (s *BaseHerdListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseHerdListener) EnterFilter(ctx *FilterContext)
- func (s *BaseHerdListener) EnterHash(ctx *HashContext)
- func (s *BaseHerdListener) EnterLine(ctx *LineContext)
- func (s *BaseHerdListener) EnterList(ctx *ListContext)
- func (s *BaseHerdListener) EnterProg(ctx *ProgContext)
- func (s *BaseHerdListener) EnterRemove(ctx *RemoveContext)
- func (s *BaseHerdListener) EnterRun(ctx *RunContext)
- func (s *BaseHerdListener) EnterScalar(ctx *ScalarContext)
- func (s *BaseHerdListener) EnterSet(ctx *SetContext)
- func (s *BaseHerdListener) EnterValue(ctx *ValueContext)
- func (s *BaseHerdListener) ExitAdd(ctx *AddContext)
- func (s *BaseHerdListener) ExitArray(ctx *ArrayContext)
- func (s *BaseHerdListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseHerdListener) ExitFilter(ctx *FilterContext)
- func (s *BaseHerdListener) ExitHash(ctx *HashContext)
- func (s *BaseHerdListener) ExitLine(ctx *LineContext)
- func (s *BaseHerdListener) ExitList(ctx *ListContext)
- func (s *BaseHerdListener) ExitProg(ctx *ProgContext)
- func (s *BaseHerdListener) ExitRemove(ctx *RemoveContext)
- func (s *BaseHerdListener) ExitRun(ctx *RunContext)
- func (s *BaseHerdListener) ExitScalar(ctx *ScalarContext)
- func (s *BaseHerdListener) ExitSet(ctx *SetContext)
- func (s *BaseHerdListener) ExitValue(ctx *ValueContext)
- func (s *BaseHerdListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseHerdListener) VisitTerminal(node antlr.TerminalNode)
- type FilterContext
- func (s *FilterContext) EQUALS() antlr.TerminalNode
- func (s *FilterContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FilterContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FilterContext) GetComp() antlr.Token
- func (s *FilterContext) GetKey() antlr.Token
- func (s *FilterContext) GetParser() antlr.Parser
- func (s *FilterContext) GetRuleContext() antlr.RuleContext
- func (s *FilterContext) GetRx() antlr.Token
- func (s *FilterContext) GetVal() IScalarContext
- func (s *FilterContext) IDENTIFIER() antlr.TerminalNode
- func (*FilterContext) IsFilterContext()
- func (s *FilterContext) MATCHES() antlr.TerminalNode
- func (s *FilterContext) NOT_EQUALS() antlr.TerminalNode
- func (s *FilterContext) NOT_MATCHES() antlr.TerminalNode
- func (s *FilterContext) REGEXP() antlr.TerminalNode
- func (s *FilterContext) Scalar() IScalarContext
- func (s *FilterContext) SetComp(v antlr.Token)
- func (s *FilterContext) SetKey(v antlr.Token)
- func (s *FilterContext) SetRx(v antlr.Token)
- func (s *FilterContext) SetVal(v IScalarContext)
- func (s *FilterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type HashContext
- func (s *HashContext) AllIDENTIFIER() []antlr.TerminalNode
- func (s *HashContext) AllValue() []IValueContext
- func (s *HashContext) CB_OPEN() antlr.TerminalNode
- func (s *HashContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *HashContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *HashContext) GetParser() antlr.Parser
- func (s *HashContext) GetRuleContext() antlr.RuleContext
- func (s *HashContext) IDENTIFIER(i int) antlr.TerminalNode
- func (*HashContext) IsHashContext()
- func (s *HashContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *HashContext) Value(i int) IValueContext
- type HerdLexer
- type HerdListener
- type HerdParser
- func (p *HerdParser) Add() (localctx IAddContext)
- func (p *HerdParser) Array() (localctx IArrayContext)
- func (p *HerdParser) Filter() (localctx IFilterContext)
- func (p *HerdParser) Hash() (localctx IHashContext)
- func (p *HerdParser) Line() (localctx ILineContext)
- func (p *HerdParser) List() (localctx IListContext)
- func (p *HerdParser) Prog() (localctx IProgContext)
- func (p *HerdParser) Remove() (localctx IRemoveContext)
- func (p *HerdParser) Run() (localctx IRunContext)
- func (p *HerdParser) Scalar() (localctx IScalarContext)
- func (p *HerdParser) Set() (localctx ISetContext)
- func (p *HerdParser) Value() (localctx IValueContext)
- type IAddContext
- type IArrayContext
- type IFilterContext
- type IHashContext
- type ILineContext
- type IListContext
- type IProgContext
- type IRemoveContext
- type IRunContext
- type IScalarContext
- type ISetContext
- type IValueContext
- type LineContext
- func (s *LineContext) Add() IAddContext
- func (s *LineContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LineContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LineContext) GetParser() antlr.Parser
- func (s *LineContext) GetRuleContext() antlr.RuleContext
- func (*LineContext) IsLineContext()
- func (s *LineContext) List() IListContext
- func (s *LineContext) Remove() IRemoveContext
- func (s *LineContext) Run() IRunContext
- func (s *LineContext) Set() ISetContext
- func (s *LineContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ListContext
- func (s *ListContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ListContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ListContext) GetOpts() IHashContext
- func (s *ListContext) GetParser() antlr.Parser
- func (s *ListContext) GetRuleContext() antlr.RuleContext
- func (s *ListContext) HOSTS() antlr.TerminalNode
- func (s *ListContext) Hash() IHashContext
- func (*ListContext) IsListContext()
- func (s *ListContext) LIST() antlr.TerminalNode
- func (s *ListContext) SetOpts(v IHashContext)
- func (s *ListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ProgContext
- func (s *ProgContext) AllLine() []ILineContext
- func (s *ProgContext) EOF() antlr.TerminalNode
- func (s *ProgContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProgContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProgContext) GetParser() antlr.Parser
- func (s *ProgContext) GetRuleContext() antlr.RuleContext
- func (*ProgContext) IsProgContext()
- func (s *ProgContext) Line(i int) ILineContext
- func (s *ProgContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RemoveContext
- func (s *RemoveContext) AllFilter() []IFilterContext
- func (s *RemoveContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RemoveContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RemoveContext) Filter(i int) IFilterContext
- func (s *RemoveContext) GLOB() antlr.TerminalNode
- func (s *RemoveContext) GetFilters() IFilterContext
- func (s *RemoveContext) GetGlob() antlr.Token
- func (s *RemoveContext) GetParser() antlr.Parser
- func (s *RemoveContext) GetRuleContext() antlr.RuleContext
- func (s *RemoveContext) HOSTS() antlr.TerminalNode
- func (s *RemoveContext) IDENTIFIER() antlr.TerminalNode
- func (*RemoveContext) IsRemoveContext()
- func (s *RemoveContext) REMOVE() antlr.TerminalNode
- func (s *RemoveContext) SetFilters(v IFilterContext)
- func (s *RemoveContext) SetGlob(v antlr.Token)
- func (s *RemoveContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RunContext
- func (s *RunContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RunContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RunContext) GetParser() antlr.Parser
- func (s *RunContext) GetRuleContext() antlr.RuleContext
- func (*RunContext) IsRunContext()
- func (s *RunContext) RUN() antlr.TerminalNode
- func (s *RunContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ScalarContext
- func (s *ScalarContext) DURATION() antlr.TerminalNode
- func (s *ScalarContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ScalarContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ScalarContext) GetParser() antlr.Parser
- func (s *ScalarContext) GetRuleContext() antlr.RuleContext
- func (s *ScalarContext) IDENTIFIER() antlr.TerminalNode
- func (*ScalarContext) IsScalarContext()
- func (s *ScalarContext) NUMBER() antlr.TerminalNode
- func (s *ScalarContext) STRING() antlr.TerminalNode
- func (s *ScalarContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SetContext
- func (s *SetContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SetContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SetContext) GetParser() antlr.Parser
- func (s *SetContext) GetRuleContext() antlr.RuleContext
- func (s *SetContext) GetVarname() antlr.Token
- func (s *SetContext) GetVarvalue() IScalarContext
- func (s *SetContext) IDENTIFIER() antlr.TerminalNode
- func (*SetContext) IsSetContext()
- func (s *SetContext) SET() antlr.TerminalNode
- func (s *SetContext) Scalar() IScalarContext
- func (s *SetContext) SetVarname(v antlr.Token)
- func (s *SetContext) SetVarvalue(v IScalarContext)
- func (s *SetContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ValueContext
- func (s *ValueContext) Array() IArrayContext
- 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) Hash() IHashContext
- func (*ValueContext) IsValueContext()
- func (s *ValueContext) Scalar() IScalarContext
- func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
const ( HerdLexerT__0 = 1 HerdLexerT__1 = 2 HerdLexerT__2 = 3 HerdLexerT__3 = 4 HerdLexerT__4 = 5 HerdLexerRUN = 6 HerdLexerSB_OPEN = 7 HerdLexerCB_OPEN = 8 HerdLexerSET = 9 HerdLexerADD = 10 HerdLexerREMOVE = 11 HerdLexerLIST = 12 HerdLexerHOSTS = 13 HerdLexerDURATION = 14 HerdLexerNUMBER = 15 HerdLexerIDENTIFIER = 16 HerdLexerGLOB = 17 HerdLexerEQUALS = 18 HerdLexerMATCHES = 19 HerdLexerNOT_EQUALS = 20 HerdLexerNOT_MATCHES = 21 HerdLexerSTRING = 22 HerdLexerREGEXP = 23 HerdLexerSKIP_ = 24 )
HerdLexer tokens.
const ( HerdParserEOF = antlr.TokenEOF HerdParserT__0 = 1 HerdParserT__1 = 2 HerdParserT__2 = 3 HerdParserT__3 = 4 HerdParserT__4 = 5 HerdParserRUN = 6 HerdParserSB_OPEN = 7 HerdParserCB_OPEN = 8 HerdParserSET = 9 HerdParserADD = 10 HerdParserREMOVE = 11 HerdParserLIST = 12 HerdParserHOSTS = 13 HerdParserDURATION = 14 HerdParserNUMBER = 15 HerdParserIDENTIFIER = 16 HerdParserGLOB = 17 HerdParserEQUALS = 18 HerdParserMATCHES = 19 HerdParserNOT_EQUALS = 20 HerdParserNOT_MATCHES = 21 HerdParserSTRING = 22 HerdParserREGEXP = 23 HerdParserSKIP_ = 24 )
HerdParser tokens.
const ( HerdParserRULE_prog = 0 HerdParserRULE_line = 1 HerdParserRULE_run = 2 HerdParserRULE_set = 3 HerdParserRULE_add = 4 HerdParserRULE_remove = 5 HerdParserRULE_list = 6 HerdParserRULE_filter = 7 HerdParserRULE_scalar = 8 HerdParserRULE_value = 9 HerdParserRULE_array = 10 HerdParserRULE_hash = 11 )
HerdParser rules.
Variables ¶
This section is empty.
Functions ¶
func HerdLexerInit ¶ added in v0.9.0
func HerdLexerInit()
HerdLexerInit initializes any static state used to implement HerdLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewHerdLexer(). You can call this function if you wish to initialize the static state ahead of time.
func HerdParserInit ¶ added in v0.9.0
func HerdParserInit()
HerdParserInit initializes any static state used to implement HerdParser. By default the static state used to implement the parser is lazily initialized during the first call to NewHerdParser(). You can call this function if you wish to initialize the static state ahead of time.
Types ¶
type AddContext ¶
type AddContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAddContext ¶
func NewAddContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AddContext
func NewEmptyAddContext ¶
func NewEmptyAddContext() *AddContext
func (*AddContext) ADD ¶
func (s *AddContext) ADD() antlr.TerminalNode
func (*AddContext) AllFilter ¶
func (s *AddContext) AllFilter() []IFilterContext
func (*AddContext) EnterRule ¶
func (s *AddContext) EnterRule(listener antlr.ParseTreeListener)
func (*AddContext) ExitRule ¶
func (s *AddContext) ExitRule(listener antlr.ParseTreeListener)
func (*AddContext) Filter ¶
func (s *AddContext) Filter(i int) IFilterContext
func (*AddContext) GLOB ¶
func (s *AddContext) GLOB() antlr.TerminalNode
func (*AddContext) GetFilters ¶
func (s *AddContext) GetFilters() IFilterContext
func (*AddContext) GetGlob ¶
func (s *AddContext) GetGlob() antlr.Token
func (*AddContext) GetParser ¶
func (s *AddContext) GetParser() antlr.Parser
func (*AddContext) GetRuleContext ¶
func (s *AddContext) GetRuleContext() antlr.RuleContext
func (*AddContext) HOSTS ¶
func (s *AddContext) HOSTS() antlr.TerminalNode
func (*AddContext) IDENTIFIER ¶
func (s *AddContext) IDENTIFIER() antlr.TerminalNode
func (*AddContext) IsAddContext ¶
func (*AddContext) IsAddContext()
func (*AddContext) SetFilters ¶
func (s *AddContext) SetFilters(v IFilterContext)
func (*AddContext) SetGlob ¶
func (s *AddContext) SetGlob(v antlr.Token)
func (*AddContext) ToStringTree ¶
func (s *AddContext) 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) AllValue ¶
func (s *ArrayContext) AllValue() []IValueContext
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) SB_OPEN ¶
func (s *ArrayContext) SB_OPEN() 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 BaseHerdListener ¶
type BaseHerdListener struct{}
BaseHerdListener is a complete listener for a parse tree produced by HerdParser.
func (*BaseHerdListener) EnterAdd ¶
func (s *BaseHerdListener) EnterAdd(ctx *AddContext)
EnterAdd is called when production add is entered.
func (*BaseHerdListener) EnterArray ¶
func (s *BaseHerdListener) EnterArray(ctx *ArrayContext)
EnterArray is called when production array is entered.
func (*BaseHerdListener) EnterEveryRule ¶
func (s *BaseHerdListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseHerdListener) EnterFilter ¶
func (s *BaseHerdListener) EnterFilter(ctx *FilterContext)
EnterFilter is called when production filter is entered.
func (*BaseHerdListener) EnterHash ¶
func (s *BaseHerdListener) EnterHash(ctx *HashContext)
EnterHash is called when production hash is entered.
func (*BaseHerdListener) EnterLine ¶
func (s *BaseHerdListener) EnterLine(ctx *LineContext)
EnterLine is called when production line is entered.
func (*BaseHerdListener) EnterList ¶
func (s *BaseHerdListener) EnterList(ctx *ListContext)
EnterList is called when production list is entered.
func (*BaseHerdListener) EnterProg ¶
func (s *BaseHerdListener) EnterProg(ctx *ProgContext)
EnterProg is called when production prog is entered.
func (*BaseHerdListener) EnterRemove ¶
func (s *BaseHerdListener) EnterRemove(ctx *RemoveContext)
EnterRemove is called when production remove is entered.
func (*BaseHerdListener) EnterRun ¶
func (s *BaseHerdListener) EnterRun(ctx *RunContext)
EnterRun is called when production run is entered.
func (*BaseHerdListener) EnterScalar ¶
func (s *BaseHerdListener) EnterScalar(ctx *ScalarContext)
EnterScalar is called when production scalar is entered.
func (*BaseHerdListener) EnterSet ¶
func (s *BaseHerdListener) EnterSet(ctx *SetContext)
EnterSet is called when production set is entered.
func (*BaseHerdListener) EnterValue ¶
func (s *BaseHerdListener) EnterValue(ctx *ValueContext)
EnterValue is called when production value is entered.
func (*BaseHerdListener) ExitAdd ¶
func (s *BaseHerdListener) ExitAdd(ctx *AddContext)
ExitAdd is called when production add is exited.
func (*BaseHerdListener) ExitArray ¶
func (s *BaseHerdListener) ExitArray(ctx *ArrayContext)
ExitArray is called when production array is exited.
func (*BaseHerdListener) ExitEveryRule ¶
func (s *BaseHerdListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseHerdListener) ExitFilter ¶
func (s *BaseHerdListener) ExitFilter(ctx *FilterContext)
ExitFilter is called when production filter is exited.
func (*BaseHerdListener) ExitHash ¶
func (s *BaseHerdListener) ExitHash(ctx *HashContext)
ExitHash is called when production hash is exited.
func (*BaseHerdListener) ExitLine ¶
func (s *BaseHerdListener) ExitLine(ctx *LineContext)
ExitLine is called when production line is exited.
func (*BaseHerdListener) ExitList ¶
func (s *BaseHerdListener) ExitList(ctx *ListContext)
ExitList is called when production list is exited.
func (*BaseHerdListener) ExitProg ¶
func (s *BaseHerdListener) ExitProg(ctx *ProgContext)
ExitProg is called when production prog is exited.
func (*BaseHerdListener) ExitRemove ¶
func (s *BaseHerdListener) ExitRemove(ctx *RemoveContext)
ExitRemove is called when production remove is exited.
func (*BaseHerdListener) ExitRun ¶
func (s *BaseHerdListener) ExitRun(ctx *RunContext)
ExitRun is called when production run is exited.
func (*BaseHerdListener) ExitScalar ¶
func (s *BaseHerdListener) ExitScalar(ctx *ScalarContext)
ExitScalar is called when production scalar is exited.
func (*BaseHerdListener) ExitSet ¶
func (s *BaseHerdListener) ExitSet(ctx *SetContext)
ExitSet is called when production set is exited.
func (*BaseHerdListener) ExitValue ¶
func (s *BaseHerdListener) ExitValue(ctx *ValueContext)
ExitValue is called when production value is exited.
func (*BaseHerdListener) VisitErrorNode ¶
func (s *BaseHerdListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseHerdListener) VisitTerminal ¶
func (s *BaseHerdListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type FilterContext ¶
type FilterContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFilterContext ¶
func NewEmptyFilterContext() *FilterContext
func NewFilterContext ¶
func NewFilterContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FilterContext
func (*FilterContext) EQUALS ¶
func (s *FilterContext) EQUALS() antlr.TerminalNode
func (*FilterContext) EnterRule ¶
func (s *FilterContext) EnterRule(listener antlr.ParseTreeListener)
func (*FilterContext) ExitRule ¶
func (s *FilterContext) ExitRule(listener antlr.ParseTreeListener)
func (*FilterContext) GetComp ¶
func (s *FilterContext) GetComp() antlr.Token
func (*FilterContext) GetKey ¶
func (s *FilterContext) GetKey() antlr.Token
func (*FilterContext) GetParser ¶
func (s *FilterContext) GetParser() antlr.Parser
func (*FilterContext) GetRuleContext ¶
func (s *FilterContext) GetRuleContext() antlr.RuleContext
func (*FilterContext) GetRx ¶
func (s *FilterContext) GetRx() antlr.Token
func (*FilterContext) GetVal ¶
func (s *FilterContext) GetVal() IScalarContext
func (*FilterContext) IDENTIFIER ¶
func (s *FilterContext) IDENTIFIER() antlr.TerminalNode
func (*FilterContext) IsFilterContext ¶
func (*FilterContext) IsFilterContext()
func (*FilterContext) MATCHES ¶
func (s *FilterContext) MATCHES() antlr.TerminalNode
func (*FilterContext) NOT_EQUALS ¶
func (s *FilterContext) NOT_EQUALS() antlr.TerminalNode
func (*FilterContext) NOT_MATCHES ¶
func (s *FilterContext) NOT_MATCHES() antlr.TerminalNode
func (*FilterContext) REGEXP ¶
func (s *FilterContext) REGEXP() antlr.TerminalNode
func (*FilterContext) Scalar ¶
func (s *FilterContext) Scalar() IScalarContext
func (*FilterContext) SetComp ¶
func (s *FilterContext) SetComp(v antlr.Token)
func (*FilterContext) SetKey ¶
func (s *FilterContext) SetKey(v antlr.Token)
func (*FilterContext) SetRx ¶
func (s *FilterContext) SetRx(v antlr.Token)
func (*FilterContext) SetVal ¶
func (s *FilterContext) SetVal(v IScalarContext)
func (*FilterContext) ToStringTree ¶
func (s *FilterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type HashContext ¶
type HashContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyHashContext ¶
func NewEmptyHashContext() *HashContext
func NewHashContext ¶
func NewHashContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *HashContext
func (*HashContext) AllIDENTIFIER ¶
func (s *HashContext) AllIDENTIFIER() []antlr.TerminalNode
func (*HashContext) AllValue ¶
func (s *HashContext) AllValue() []IValueContext
func (*HashContext) CB_OPEN ¶
func (s *HashContext) CB_OPEN() antlr.TerminalNode
func (*HashContext) EnterRule ¶
func (s *HashContext) EnterRule(listener antlr.ParseTreeListener)
func (*HashContext) ExitRule ¶
func (s *HashContext) ExitRule(listener antlr.ParseTreeListener)
func (*HashContext) GetParser ¶
func (s *HashContext) GetParser() antlr.Parser
func (*HashContext) GetRuleContext ¶
func (s *HashContext) GetRuleContext() antlr.RuleContext
func (*HashContext) IDENTIFIER ¶
func (s *HashContext) IDENTIFIER(i int) antlr.TerminalNode
func (*HashContext) IsHashContext ¶
func (*HashContext) IsHashContext()
func (*HashContext) ToStringTree ¶
func (s *HashContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*HashContext) Value ¶
func (s *HashContext) Value(i int) IValueContext
type HerdLexer ¶
type HerdLexer struct { *antlr.BaseLexer // contains filtered or unexported fields }
func NewHerdLexer ¶
func NewHerdLexer(input antlr.CharStream) *HerdLexer
NewHerdLexer produces a new lexer instance for the optional input antlr.CharStream.
type HerdListener ¶
type HerdListener interface { antlr.ParseTreeListener // EnterProg is called when entering the prog production. EnterProg(c *ProgContext) // EnterLine is called when entering the line production. EnterLine(c *LineContext) // EnterRun is called when entering the run production. EnterRun(c *RunContext) // EnterSet is called when entering the set production. EnterSet(c *SetContext) // EnterAdd is called when entering the add production. EnterAdd(c *AddContext) // EnterRemove is called when entering the remove production. EnterRemove(c *RemoveContext) // EnterList is called when entering the list production. EnterList(c *ListContext) // EnterFilter is called when entering the filter production. EnterFilter(c *FilterContext) // EnterScalar is called when entering the scalar production. EnterScalar(c *ScalarContext) // EnterValue is called when entering the value production. EnterValue(c *ValueContext) // EnterArray is called when entering the array production. EnterArray(c *ArrayContext) // EnterHash is called when entering the hash production. EnterHash(c *HashContext) // ExitProg is called when exiting the prog production. ExitProg(c *ProgContext) // ExitLine is called when exiting the line production. ExitLine(c *LineContext) // ExitRun is called when exiting the run production. ExitRun(c *RunContext) // ExitSet is called when exiting the set production. ExitSet(c *SetContext) // ExitAdd is called when exiting the add production. ExitAdd(c *AddContext) // ExitRemove is called when exiting the remove production. ExitRemove(c *RemoveContext) // ExitList is called when exiting the list production. ExitList(c *ListContext) // ExitFilter is called when exiting the filter production. ExitFilter(c *FilterContext) // ExitScalar is called when exiting the scalar production. ExitScalar(c *ScalarContext) // ExitValue is called when exiting the value production. ExitValue(c *ValueContext) // ExitArray is called when exiting the array production. ExitArray(c *ArrayContext) // ExitHash is called when exiting the hash production. ExitHash(c *HashContext) }
HerdListener is a complete listener for a parse tree produced by HerdParser.
type HerdParser ¶
type HerdParser struct {
*antlr.BaseParser
}
func NewHerdParser ¶
func NewHerdParser(input antlr.TokenStream) *HerdParser
NewHerdParser produces a new parser instance for the optional input antlr.TokenStream.
func (*HerdParser) Add ¶
func (p *HerdParser) Add() (localctx IAddContext)
func (*HerdParser) Array ¶
func (p *HerdParser) Array() (localctx IArrayContext)
func (*HerdParser) Filter ¶
func (p *HerdParser) Filter() (localctx IFilterContext)
func (*HerdParser) Hash ¶
func (p *HerdParser) Hash() (localctx IHashContext)
func (*HerdParser) Line ¶
func (p *HerdParser) Line() (localctx ILineContext)
func (*HerdParser) List ¶
func (p *HerdParser) List() (localctx IListContext)
func (*HerdParser) Prog ¶
func (p *HerdParser) Prog() (localctx IProgContext)
func (*HerdParser) Remove ¶
func (p *HerdParser) Remove() (localctx IRemoveContext)
func (*HerdParser) Run ¶
func (p *HerdParser) Run() (localctx IRunContext)
func (*HerdParser) Scalar ¶
func (p *HerdParser) Scalar() (localctx IScalarContext)
func (*HerdParser) Set ¶
func (p *HerdParser) Set() (localctx ISetContext)
func (*HerdParser) Value ¶
func (p *HerdParser) Value() (localctx IValueContext)
type IAddContext ¶
type IAddContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetGlob returns the glob token. GetGlob() antlr.Token // SetGlob sets the glob token. SetGlob(antlr.Token) // GetFilters returns the filters rule contexts. GetFilters() IFilterContext // SetFilters sets the filters rule contexts. SetFilters(IFilterContext) // IsAddContext differentiates from other interfaces. IsAddContext() }
IAddContext 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 IFilterContext ¶
type IFilterContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetKey returns the key token. GetKey() antlr.Token // GetComp returns the comp token. GetComp() antlr.Token // GetRx returns the rx token. GetRx() antlr.Token // SetKey sets the key token. SetKey(antlr.Token) // SetComp sets the comp token. SetComp(antlr.Token) // SetRx sets the rx token. SetRx(antlr.Token) // GetVal returns the val rule contexts. GetVal() IScalarContext // SetVal sets the val rule contexts. SetVal(IScalarContext) // IsFilterContext differentiates from other interfaces. IsFilterContext() }
IFilterContext is an interface to support dynamic dispatch.
type IHashContext ¶
type IHashContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsHashContext differentiates from other interfaces. IsHashContext() }
IHashContext is an interface to support dynamic dispatch.
type ILineContext ¶
type ILineContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLineContext differentiates from other interfaces. IsLineContext() }
ILineContext is an interface to support dynamic dispatch.
type IListContext ¶
type IListContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetOpts returns the opts rule contexts. GetOpts() IHashContext // SetOpts sets the opts rule contexts. SetOpts(IHashContext) // IsListContext differentiates from other interfaces. IsListContext() }
IListContext is an interface to support dynamic dispatch.
type IProgContext ¶
type IProgContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProgContext differentiates from other interfaces. IsProgContext() }
IProgContext is an interface to support dynamic dispatch.
type IRemoveContext ¶
type IRemoveContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetGlob returns the glob token. GetGlob() antlr.Token // SetGlob sets the glob token. SetGlob(antlr.Token) // GetFilters returns the filters rule contexts. GetFilters() IFilterContext // SetFilters sets the filters rule contexts. SetFilters(IFilterContext) // IsRemoveContext differentiates from other interfaces. IsRemoveContext() }
IRemoveContext is an interface to support dynamic dispatch.
type IRunContext ¶
type IRunContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRunContext differentiates from other interfaces. IsRunContext() }
IRunContext is an interface to support dynamic dispatch.
type IScalarContext ¶
type IScalarContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsScalarContext differentiates from other interfaces. IsScalarContext() }
IScalarContext is an interface to support dynamic dispatch.
type ISetContext ¶
type ISetContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetVarname returns the varname token. GetVarname() antlr.Token // SetVarname sets the varname token. SetVarname(antlr.Token) // GetVarvalue returns the varvalue rule contexts. GetVarvalue() IScalarContext // SetVarvalue sets the varvalue rule contexts. SetVarvalue(IScalarContext) // IsSetContext differentiates from other interfaces. IsSetContext() }
ISetContext 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 LineContext ¶
type LineContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLineContext ¶
func NewEmptyLineContext() *LineContext
func NewLineContext ¶
func NewLineContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LineContext
func (*LineContext) Add ¶
func (s *LineContext) Add() IAddContext
func (*LineContext) EnterRule ¶
func (s *LineContext) EnterRule(listener antlr.ParseTreeListener)
func (*LineContext) ExitRule ¶
func (s *LineContext) ExitRule(listener antlr.ParseTreeListener)
func (*LineContext) GetParser ¶
func (s *LineContext) GetParser() antlr.Parser
func (*LineContext) GetRuleContext ¶
func (s *LineContext) GetRuleContext() antlr.RuleContext
func (*LineContext) IsLineContext ¶
func (*LineContext) IsLineContext()
func (*LineContext) List ¶
func (s *LineContext) List() IListContext
func (*LineContext) Remove ¶
func (s *LineContext) Remove() IRemoveContext
func (*LineContext) Run ¶
func (s *LineContext) Run() IRunContext
func (*LineContext) Set ¶
func (s *LineContext) Set() ISetContext
func (*LineContext) ToStringTree ¶
func (s *LineContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ListContext ¶
type ListContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyListContext ¶
func NewEmptyListContext() *ListContext
func NewListContext ¶
func NewListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ListContext
func (*ListContext) EnterRule ¶
func (s *ListContext) EnterRule(listener antlr.ParseTreeListener)
func (*ListContext) ExitRule ¶
func (s *ListContext) ExitRule(listener antlr.ParseTreeListener)
func (*ListContext) GetOpts ¶
func (s *ListContext) GetOpts() IHashContext
func (*ListContext) GetParser ¶
func (s *ListContext) GetParser() antlr.Parser
func (*ListContext) GetRuleContext ¶
func (s *ListContext) GetRuleContext() antlr.RuleContext
func (*ListContext) HOSTS ¶
func (s *ListContext) HOSTS() antlr.TerminalNode
func (*ListContext) Hash ¶
func (s *ListContext) Hash() IHashContext
func (*ListContext) IsListContext ¶
func (*ListContext) IsListContext()
func (*ListContext) LIST ¶
func (s *ListContext) LIST() antlr.TerminalNode
func (*ListContext) SetOpts ¶
func (s *ListContext) SetOpts(v IHashContext)
func (*ListContext) ToStringTree ¶
func (s *ListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ProgContext ¶
type ProgContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProgContext ¶
func NewEmptyProgContext() *ProgContext
func NewProgContext ¶
func NewProgContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProgContext
func (*ProgContext) AllLine ¶
func (s *ProgContext) AllLine() []ILineContext
func (*ProgContext) EOF ¶
func (s *ProgContext) EOF() antlr.TerminalNode
func (*ProgContext) EnterRule ¶
func (s *ProgContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProgContext) ExitRule ¶
func (s *ProgContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProgContext) GetParser ¶
func (s *ProgContext) GetParser() antlr.Parser
func (*ProgContext) GetRuleContext ¶
func (s *ProgContext) GetRuleContext() antlr.RuleContext
func (*ProgContext) IsProgContext ¶
func (*ProgContext) IsProgContext()
func (*ProgContext) Line ¶
func (s *ProgContext) Line(i int) ILineContext
func (*ProgContext) ToStringTree ¶
func (s *ProgContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RemoveContext ¶
type RemoveContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRemoveContext ¶
func NewEmptyRemoveContext() *RemoveContext
func NewRemoveContext ¶
func NewRemoveContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RemoveContext
func (*RemoveContext) AllFilter ¶
func (s *RemoveContext) AllFilter() []IFilterContext
func (*RemoveContext) EnterRule ¶
func (s *RemoveContext) EnterRule(listener antlr.ParseTreeListener)
func (*RemoveContext) ExitRule ¶
func (s *RemoveContext) ExitRule(listener antlr.ParseTreeListener)
func (*RemoveContext) Filter ¶
func (s *RemoveContext) Filter(i int) IFilterContext
func (*RemoveContext) GLOB ¶
func (s *RemoveContext) GLOB() antlr.TerminalNode
func (*RemoveContext) GetFilters ¶
func (s *RemoveContext) GetFilters() IFilterContext
func (*RemoveContext) GetGlob ¶
func (s *RemoveContext) GetGlob() antlr.Token
func (*RemoveContext) GetParser ¶
func (s *RemoveContext) GetParser() antlr.Parser
func (*RemoveContext) GetRuleContext ¶
func (s *RemoveContext) GetRuleContext() antlr.RuleContext
func (*RemoveContext) HOSTS ¶
func (s *RemoveContext) HOSTS() antlr.TerminalNode
func (*RemoveContext) IDENTIFIER ¶
func (s *RemoveContext) IDENTIFIER() antlr.TerminalNode
func (*RemoveContext) IsRemoveContext ¶
func (*RemoveContext) IsRemoveContext()
func (*RemoveContext) REMOVE ¶
func (s *RemoveContext) REMOVE() antlr.TerminalNode
func (*RemoveContext) SetFilters ¶
func (s *RemoveContext) SetFilters(v IFilterContext)
func (*RemoveContext) SetGlob ¶
func (s *RemoveContext) SetGlob(v antlr.Token)
func (*RemoveContext) ToStringTree ¶
func (s *RemoveContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RunContext ¶
type RunContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRunContext ¶
func NewEmptyRunContext() *RunContext
func NewRunContext ¶
func NewRunContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RunContext
func (*RunContext) EnterRule ¶
func (s *RunContext) EnterRule(listener antlr.ParseTreeListener)
func (*RunContext) ExitRule ¶
func (s *RunContext) ExitRule(listener antlr.ParseTreeListener)
func (*RunContext) GetParser ¶
func (s *RunContext) GetParser() antlr.Parser
func (*RunContext) GetRuleContext ¶
func (s *RunContext) GetRuleContext() antlr.RuleContext
func (*RunContext) IsRunContext ¶
func (*RunContext) IsRunContext()
func (*RunContext) RUN ¶
func (s *RunContext) RUN() antlr.TerminalNode
func (*RunContext) ToStringTree ¶
func (s *RunContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ScalarContext ¶
type ScalarContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyScalarContext ¶
func NewEmptyScalarContext() *ScalarContext
func NewScalarContext ¶
func NewScalarContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ScalarContext
func (*ScalarContext) DURATION ¶
func (s *ScalarContext) DURATION() antlr.TerminalNode
func (*ScalarContext) EnterRule ¶
func (s *ScalarContext) EnterRule(listener antlr.ParseTreeListener)
func (*ScalarContext) ExitRule ¶
func (s *ScalarContext) ExitRule(listener antlr.ParseTreeListener)
func (*ScalarContext) GetParser ¶
func (s *ScalarContext) GetParser() antlr.Parser
func (*ScalarContext) GetRuleContext ¶
func (s *ScalarContext) GetRuleContext() antlr.RuleContext
func (*ScalarContext) IDENTIFIER ¶
func (s *ScalarContext) IDENTIFIER() antlr.TerminalNode
func (*ScalarContext) IsScalarContext ¶
func (*ScalarContext) IsScalarContext()
func (*ScalarContext) NUMBER ¶
func (s *ScalarContext) NUMBER() antlr.TerminalNode
func (*ScalarContext) STRING ¶
func (s *ScalarContext) STRING() antlr.TerminalNode
func (*ScalarContext) ToStringTree ¶
func (s *ScalarContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SetContext ¶
type SetContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySetContext ¶
func NewEmptySetContext() *SetContext
func NewSetContext ¶
func NewSetContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SetContext
func (*SetContext) EnterRule ¶
func (s *SetContext) EnterRule(listener antlr.ParseTreeListener)
func (*SetContext) ExitRule ¶
func (s *SetContext) ExitRule(listener antlr.ParseTreeListener)
func (*SetContext) GetParser ¶
func (s *SetContext) GetParser() antlr.Parser
func (*SetContext) GetRuleContext ¶
func (s *SetContext) GetRuleContext() antlr.RuleContext
func (*SetContext) GetVarname ¶
func (s *SetContext) GetVarname() antlr.Token
func (*SetContext) GetVarvalue ¶
func (s *SetContext) GetVarvalue() IScalarContext
func (*SetContext) IDENTIFIER ¶
func (s *SetContext) IDENTIFIER() antlr.TerminalNode
func (*SetContext) IsSetContext ¶
func (*SetContext) IsSetContext()
func (*SetContext) SET ¶
func (s *SetContext) SET() antlr.TerminalNode
func (*SetContext) Scalar ¶
func (s *SetContext) Scalar() IScalarContext
func (*SetContext) SetVarname ¶
func (s *SetContext) SetVarname(v antlr.Token)
func (*SetContext) SetVarvalue ¶
func (s *SetContext) SetVarvalue(v IScalarContext)
func (*SetContext) ToStringTree ¶
func (s *SetContext) 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) Array ¶
func (s *ValueContext) Array() IArrayContext
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) Hash ¶
func (s *ValueContext) Hash() IHashContext
func (*ValueContext) IsValueContext ¶
func (*ValueContext) IsValueContext()
func (*ValueContext) Scalar ¶
func (s *ValueContext) Scalar() IScalarContext
func (*ValueContext) ToStringTree ¶
func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string