Documentation ¶
Index ¶
- Constants
- func NginxLexerInit()
- func NginxParserInit()
- type Block
- type BlockContext
- func (s *BlockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *BlockContext) AllBlock() []IBlockContext
- func (s *BlockContext) AllIfStatement() []IIfStatementContext
- func (s *BlockContext) AllLuaBlock() []ILuaBlockContext
- func (s *BlockContext) AllNEWLINE() []antlr.TerminalNode
- func (s *BlockContext) AllStatement() []IStatementContext
- func (s *BlockContext) Block(i int) IBlockContext
- func (s *BlockContext) GenericBlockHeader() IGenericBlockHeaderContext
- func (s *BlockContext) GetParser() antlr.Parser
- func (s *BlockContext) GetRuleContext() antlr.RuleContext
- func (s *BlockContext) IfStatement(i int) IIfStatementContext
- func (*BlockContext) IsBlockContext()
- func (s *BlockContext) LocationBlockHeader() ILocationBlockHeaderContext
- func (s *BlockContext) LuaBlock(i int) ILuaBlockContext
- func (s *BlockContext) NEWLINE(i int) antlr.TerminalNode
- func (s *BlockContext) Statement(i int) IStatementContext
- func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Config
- type ConfigContext
- func (s *ConfigContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ConfigContext) AllBlock() []IBlockContext
- func (s *ConfigContext) AllLuaBlock() []ILuaBlockContext
- func (s *ConfigContext) AllStatement() []IStatementContext
- func (s *ConfigContext) Block(i int) IBlockContext
- func (s *ConfigContext) GetParser() antlr.Parser
- func (s *ConfigContext) GetRuleContext() antlr.RuleContext
- func (*ConfigContext) IsConfigContext()
- func (s *ConfigContext) LuaBlock(i int) ILuaBlockContext
- func (s *ConfigContext) Statement(i int) IStatementContext
- func (s *ConfigContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type GenericBlockHeaderContext
- func (s *GenericBlockHeaderContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *GenericBlockHeaderContext) AllRegexp() []IRegexpContext
- func (s *GenericBlockHeaderContext) AllValue() []antlr.TerminalNode
- func (s *GenericBlockHeaderContext) GetParser() antlr.Parser
- func (s *GenericBlockHeaderContext) GetRuleContext() antlr.RuleContext
- func (*GenericBlockHeaderContext) IsGenericBlockHeaderContext()
- func (s *GenericBlockHeaderContext) Regexp(i int) IRegexpContext
- func (s *GenericBlockHeaderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *GenericBlockHeaderContext) Value(i int) antlr.TerminalNode
- type GenericStatementContext
- func (s *GenericStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *GenericStatementContext) AllNEWLINE() []antlr.TerminalNode
- func (s *GenericStatementContext) AllRegexp() []IRegexpContext
- func (s *GenericStatementContext) AllValue() []antlr.TerminalNode
- func (s *GenericStatementContext) GetParser() antlr.Parser
- func (s *GenericStatementContext) GetRuleContext() antlr.RuleContext
- func (*GenericStatementContext) IsGenericStatementContext()
- func (s *GenericStatementContext) NEWLINE(i int) antlr.TerminalNode
- func (s *GenericStatementContext) Regexp(i int) IRegexpContext
- func (s *GenericStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *GenericStatementContext) Value(i int) antlr.TerminalNode
- type IBlockContext
- type IConfigContext
- type IGenericBlockHeaderContext
- type IGenericStatementContext
- type IIfBodyContext
- type IIfStatementContext
- type ILocationBlockHeaderContext
- type ILuaBlockContext
- type ILuaStatementContext
- type IRegexHeaderStatementContext
- type IRegexpContext
- type IRewriteStatementContext
- type IStatementContext
- type IfBodyContext
- func (s *IfBodyContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *IfBodyContext) AllNEWLINE() []antlr.TerminalNode
- func (s *IfBodyContext) AllValue() []antlr.TerminalNode
- func (s *IfBodyContext) GetParser() antlr.Parser
- func (s *IfBodyContext) GetRuleContext() antlr.RuleContext
- func (*IfBodyContext) IsIfBodyContext()
- func (s *IfBodyContext) NEWLINE(i int) antlr.TerminalNode
- func (s *IfBodyContext) Regexp() IRegexpContext
- func (s *IfBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *IfBodyContext) Value(i int) antlr.TerminalNode
- type IfStatement
- type IfStatementContext
- func (s *IfStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *IfStatementContext) AllNEWLINE() []antlr.TerminalNode
- func (s *IfStatementContext) AllStatement() []IStatementContext
- func (s *IfStatementContext) GetParser() antlr.Parser
- func (s *IfStatementContext) GetRuleContext() antlr.RuleContext
- func (s *IfStatementContext) IfBody() IIfBodyContext
- func (*IfStatementContext) IsIfStatementContext()
- func (s *IfStatementContext) NEWLINE(i int) antlr.TerminalNode
- func (s *IfStatementContext) Statement(i int) IStatementContext
- func (s *IfStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LocationBlockHeaderContext
- func (s *LocationBlockHeaderContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *LocationBlockHeaderContext) AllValue() []antlr.TerminalNode
- func (s *LocationBlockHeaderContext) GetParser() antlr.Parser
- func (s *LocationBlockHeaderContext) GetRuleContext() antlr.RuleContext
- func (*LocationBlockHeaderContext) IsLocationBlockHeaderContext()
- func (s *LocationBlockHeaderContext) Regexp() IRegexpContext
- func (s *LocationBlockHeaderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *LocationBlockHeaderContext) Value(i int) antlr.TerminalNode
- type LuaBlockContext
- func (s *LuaBlockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *LuaBlockContext) AllLuaStatement() []ILuaStatementContext
- func (s *LuaBlockContext) AllNEWLINE() []antlr.TerminalNode
- func (s *LuaBlockContext) GetParser() antlr.Parser
- func (s *LuaBlockContext) GetRuleContext() antlr.RuleContext
- func (*LuaBlockContext) IsLuaBlockContext()
- func (s *LuaBlockContext) LUA_HEADER() antlr.TerminalNode
- func (s *LuaBlockContext) LuaStatement(i int) ILuaStatementContext
- func (s *LuaBlockContext) NEWLINE(i int) antlr.TerminalNode
- func (s *LuaBlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LuaStatementContext
- func (s *LuaStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *LuaStatementContext) AllValue() []antlr.TerminalNode
- func (s *LuaStatementContext) GetParser() antlr.Parser
- func (s *LuaStatementContext) GetRuleContext() antlr.RuleContext
- func (*LuaStatementContext) IsLuaStatementContext()
- func (s *LuaStatementContext) NEWLINE() antlr.TerminalNode
- func (s *LuaStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *LuaStatementContext) Value(i int) antlr.TerminalNode
- type NginxLexer
- type NginxParser
- func (p *NginxParser) Block() (localctx IBlockContext)
- func (p *NginxParser) Config() (localctx IConfigContext)
- func (p *NginxParser) GenericBlockHeader() (localctx IGenericBlockHeaderContext)
- func (p *NginxParser) GenericStatement() (localctx IGenericStatementContext)
- func (p *NginxParser) IfBody() (localctx IIfBodyContext)
- func (p *NginxParser) IfStatement() (localctx IIfStatementContext)
- func (p *NginxParser) LocationBlockHeader() (localctx ILocationBlockHeaderContext)
- func (p *NginxParser) LuaBlock() (localctx ILuaBlockContext)
- func (p *NginxParser) LuaStatement() (localctx ILuaStatementContext)
- func (p *NginxParser) RegexHeaderStatement() (localctx IRegexHeaderStatementContext)
- func (p *NginxParser) Regexp() (localctx IRegexpContext)
- func (p *NginxParser) RewriteStatement() (localctx IRewriteStatementContext)
- func (p *NginxParser) Statement() (localctx IStatementContext)
- type NginxVisitor
- type RegexHeaderStatementContext
- func (s *RegexHeaderStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *RegexHeaderStatementContext) GetParser() antlr.Parser
- func (s *RegexHeaderStatementContext) GetRuleContext() antlr.RuleContext
- func (*RegexHeaderStatementContext) IsRegexHeaderStatementContext()
- func (s *RegexHeaderStatementContext) REGEXP_PREFIXED() antlr.TerminalNode
- func (s *RegexHeaderStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *RegexHeaderStatementContext) Value() antlr.TerminalNode
- type RegexpContext
- func (s *RegexpContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *RegexpContext) AllRegexp() []IRegexpContext
- func (s *RegexpContext) AllValue() []antlr.TerminalNode
- func (s *RegexpContext) GetParser() antlr.Parser
- func (s *RegexpContext) GetRuleContext() antlr.RuleContext
- func (*RegexpContext) IsRegexpContext()
- func (s *RegexpContext) Regexp(i int) IRegexpContext
- func (s *RegexpContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *RegexpContext) Value(i int) antlr.TerminalNode
- type RewriteStatementContext
- func (s *RewriteStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *RewriteStatementContext) AllValue() []antlr.TerminalNode
- func (s *RewriteStatementContext) GetParser() antlr.Parser
- func (s *RewriteStatementContext) GetRuleContext() antlr.RuleContext
- func (*RewriteStatementContext) IsRewriteStatementContext()
- func (s *RewriteStatementContext) Regexp() IRegexpContext
- func (s *RewriteStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *RewriteStatementContext) Value(i int) antlr.TerminalNode
- type Statement
- type StatementContext
- func (s *StatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *StatementContext) AllNEWLINE() []antlr.TerminalNode
- func (s *StatementContext) GenericStatement() IGenericStatementContext
- func (s *StatementContext) GetParser() antlr.Parser
- func (s *StatementContext) GetRuleContext() antlr.RuleContext
- func (*StatementContext) IsStatementContext()
- func (s *StatementContext) NEWLINE(i int) antlr.TerminalNode
- func (s *StatementContext) RegexHeaderStatement() IRegexHeaderStatementContext
- func (s *StatementContext) RewriteStatement() IRewriteStatementContext
- func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
const ( Server = "server" HTTP = "http" Upstream = "upstream" Events = "events" Location = "location" Lua = "lua" )
const ( NginxLexerT__0 = 1 NginxLexerT__1 = 2 NginxLexerT__2 = 3 NginxLexerT__3 = 4 NginxLexerT__4 = 5 NginxLexerT__5 = 6 NginxLexerT__6 = 7 NginxLexerT__7 = 8 NginxLexerT__8 = 9 NginxLexerT__9 = 10 NginxLexerT__10 = 11 NginxLexerT__11 = 12 NginxLexerT__12 = 13 NginxLexerT__13 = 14 NginxLexerLUA_HEADER = 15 NginxLexerValue = 16 NginxLexerSTR_EXT = 17 NginxLexerLINE_COMMENT = 18 NginxLexerREGEXP_PREFIXED = 19 NginxLexerQUOTED_STRING = 20 NginxLexerSINGLE_QUOTED = 21 NginxLexerWS = 22 NginxLexerNEWLINE = 23 )
NginxLexer tokens.
const ( NginxParserEOF = antlr.TokenEOF NginxParserT__0 = 1 NginxParserT__1 = 2 NginxParserT__2 = 3 NginxParserT__3 = 4 NginxParserT__4 = 5 NginxParserT__5 = 6 NginxParserT__6 = 7 NginxParserT__7 = 8 NginxParserT__8 = 9 NginxParserT__9 = 10 NginxParserT__10 = 11 NginxParserT__11 = 12 NginxParserT__12 = 13 NginxParserT__13 = 14 NginxParserLUA_HEADER = 15 NginxParserValue = 16 NginxParserSTR_EXT = 17 NginxParserLINE_COMMENT = 18 NginxParserREGEXP_PREFIXED = 19 NginxParserQUOTED_STRING = 20 NginxParserSINGLE_QUOTED = 21 NginxParserWS = 22 NginxParserNEWLINE = 23 )
NginxParser tokens.
const ( NginxParserRULE_config = 0 NginxParserRULE_statement = 1 NginxParserRULE_genericStatement = 2 NginxParserRULE_regexHeaderStatement = 3 NginxParserRULE_luaBlock = 4 NginxParserRULE_luaStatement = 5 NginxParserRULE_block = 6 NginxParserRULE_genericBlockHeader = 7 NginxParserRULE_ifStatement = 8 NginxParserRULE_ifBody = 9 NginxParserRULE_regexp = 10 NginxParserRULE_locationBlockHeader = 11 NginxParserRULE_rewriteStatement = 12 )
NginxParser rules.
Variables ¶
This section is empty.
Functions ¶
func NginxLexerInit ¶
func NginxLexerInit()
NginxLexerInit initializes any static state used to implement NginxLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewNginxLexer(). You can call this function if you wish to initialize the static state ahead of time.
func NginxParserInit ¶
func NginxParserInit()
NginxParserInit initializes any static state used to implement NginxParser. By default the static state used to implement the parser is lazily initialized during the first call to NewNginxParser(). You can call this function if you wish to initialize the static state ahead of time.
Types ¶
type Block ¶
type Block struct { Header string //contains Type Type string //location, server, etc. Blocks []Block Statements []Statement IfStatements []IfStatement }
type BlockContext ¶
type BlockContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBlockContext ¶
func NewBlockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BlockContext
func NewEmptyBlockContext ¶
func NewEmptyBlockContext() *BlockContext
func (*BlockContext) Accept ¶
func (s *BlockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*BlockContext) AllBlock ¶
func (s *BlockContext) AllBlock() []IBlockContext
func (*BlockContext) AllIfStatement ¶
func (s *BlockContext) AllIfStatement() []IIfStatementContext
func (*BlockContext) AllLuaBlock ¶
func (s *BlockContext) AllLuaBlock() []ILuaBlockContext
func (*BlockContext) AllNEWLINE ¶
func (s *BlockContext) AllNEWLINE() []antlr.TerminalNode
func (*BlockContext) AllStatement ¶
func (s *BlockContext) AllStatement() []IStatementContext
func (*BlockContext) Block ¶
func (s *BlockContext) Block(i int) IBlockContext
func (*BlockContext) GenericBlockHeader ¶
func (s *BlockContext) GenericBlockHeader() IGenericBlockHeaderContext
func (*BlockContext) GetParser ¶
func (s *BlockContext) GetParser() antlr.Parser
func (*BlockContext) GetRuleContext ¶
func (s *BlockContext) GetRuleContext() antlr.RuleContext
func (*BlockContext) IfStatement ¶
func (s *BlockContext) IfStatement(i int) IIfStatementContext
func (*BlockContext) IsBlockContext ¶
func (*BlockContext) IsBlockContext()
func (*BlockContext) LocationBlockHeader ¶
func (s *BlockContext) LocationBlockHeader() ILocationBlockHeaderContext
func (*BlockContext) LuaBlock ¶
func (s *BlockContext) LuaBlock(i int) ILuaBlockContext
func (*BlockContext) NEWLINE ¶
func (s *BlockContext) NEWLINE(i int) antlr.TerminalNode
func (*BlockContext) Statement ¶
func (s *BlockContext) Statement(i int) IStatementContext
func (*BlockContext) ToStringTree ¶
func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Config ¶
Config The whole nginx.conf file.
func (*Config) DumpToFile ¶
DumpToFile Generate new nginx.conf.
func (*Config) EasyDumpToFile ¶
EasyDumpToFile Generate new nginx.conf.
type ConfigContext ¶
type ConfigContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewConfigContext ¶
func NewConfigContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConfigContext
func NewEmptyConfigContext ¶
func NewEmptyConfigContext() *ConfigContext
func (*ConfigContext) Accept ¶
func (s *ConfigContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ConfigContext) AllBlock ¶
func (s *ConfigContext) AllBlock() []IBlockContext
func (*ConfigContext) AllLuaBlock ¶
func (s *ConfigContext) AllLuaBlock() []ILuaBlockContext
func (*ConfigContext) AllStatement ¶
func (s *ConfigContext) AllStatement() []IStatementContext
func (*ConfigContext) Block ¶
func (s *ConfigContext) Block(i int) IBlockContext
func (*ConfigContext) GetParser ¶
func (s *ConfigContext) GetParser() antlr.Parser
func (*ConfigContext) GetRuleContext ¶
func (s *ConfigContext) GetRuleContext() antlr.RuleContext
func (*ConfigContext) IsConfigContext ¶
func (*ConfigContext) IsConfigContext()
func (*ConfigContext) LuaBlock ¶
func (s *ConfigContext) LuaBlock(i int) ILuaBlockContext
func (*ConfigContext) Statement ¶
func (s *ConfigContext) Statement(i int) IStatementContext
func (*ConfigContext) ToStringTree ¶
func (s *ConfigContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type GenericBlockHeaderContext ¶
type GenericBlockHeaderContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyGenericBlockHeaderContext ¶
func NewEmptyGenericBlockHeaderContext() *GenericBlockHeaderContext
func NewGenericBlockHeaderContext ¶
func NewGenericBlockHeaderContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GenericBlockHeaderContext
func (*GenericBlockHeaderContext) Accept ¶
func (s *GenericBlockHeaderContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*GenericBlockHeaderContext) AllRegexp ¶
func (s *GenericBlockHeaderContext) AllRegexp() []IRegexpContext
func (*GenericBlockHeaderContext) AllValue ¶
func (s *GenericBlockHeaderContext) AllValue() []antlr.TerminalNode
func (*GenericBlockHeaderContext) GetParser ¶
func (s *GenericBlockHeaderContext) GetParser() antlr.Parser
func (*GenericBlockHeaderContext) GetRuleContext ¶
func (s *GenericBlockHeaderContext) GetRuleContext() antlr.RuleContext
func (*GenericBlockHeaderContext) IsGenericBlockHeaderContext ¶
func (*GenericBlockHeaderContext) IsGenericBlockHeaderContext()
func (*GenericBlockHeaderContext) Regexp ¶
func (s *GenericBlockHeaderContext) Regexp(i int) IRegexpContext
func (*GenericBlockHeaderContext) ToStringTree ¶
func (s *GenericBlockHeaderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*GenericBlockHeaderContext) Value ¶
func (s *GenericBlockHeaderContext) Value(i int) antlr.TerminalNode
type GenericStatementContext ¶
type GenericStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyGenericStatementContext ¶
func NewEmptyGenericStatementContext() *GenericStatementContext
func NewGenericStatementContext ¶
func NewGenericStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GenericStatementContext
func (*GenericStatementContext) Accept ¶
func (s *GenericStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*GenericStatementContext) AllNEWLINE ¶
func (s *GenericStatementContext) AllNEWLINE() []antlr.TerminalNode
func (*GenericStatementContext) AllRegexp ¶
func (s *GenericStatementContext) AllRegexp() []IRegexpContext
func (*GenericStatementContext) AllValue ¶
func (s *GenericStatementContext) AllValue() []antlr.TerminalNode
func (*GenericStatementContext) GetParser ¶
func (s *GenericStatementContext) GetParser() antlr.Parser
func (*GenericStatementContext) GetRuleContext ¶
func (s *GenericStatementContext) GetRuleContext() antlr.RuleContext
func (*GenericStatementContext) IsGenericStatementContext ¶
func (*GenericStatementContext) IsGenericStatementContext()
func (*GenericStatementContext) NEWLINE ¶
func (s *GenericStatementContext) NEWLINE(i int) antlr.TerminalNode
func (*GenericStatementContext) Regexp ¶
func (s *GenericStatementContext) Regexp(i int) IRegexpContext
func (*GenericStatementContext) ToStringTree ¶
func (s *GenericStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*GenericStatementContext) Value ¶
func (s *GenericStatementContext) Value(i int) antlr.TerminalNode
type IBlockContext ¶
type IBlockContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBlockContext differentiates from other interfaces. IsBlockContext() }
IBlockContext is an interface to support dynamic dispatch.
type IConfigContext ¶
type IConfigContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsConfigContext differentiates from other interfaces. IsConfigContext() }
IConfigContext is an interface to support dynamic dispatch.
type IGenericBlockHeaderContext ¶
type IGenericBlockHeaderContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsGenericBlockHeaderContext differentiates from other interfaces. IsGenericBlockHeaderContext() }
IGenericBlockHeaderContext is an interface to support dynamic dispatch.
type IGenericStatementContext ¶
type IGenericStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsGenericStatementContext differentiates from other interfaces. IsGenericStatementContext() }
IGenericStatementContext is an interface to support dynamic dispatch.
type IIfBodyContext ¶
type IIfBodyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIfBodyContext differentiates from other interfaces. IsIfBodyContext() }
IIfBodyContext is an interface to support dynamic dispatch.
type IIfStatementContext ¶
type IIfStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIfStatementContext differentiates from other interfaces. IsIfStatementContext() }
IIfStatementContext is an interface to support dynamic dispatch.
type ILocationBlockHeaderContext ¶
type ILocationBlockHeaderContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLocationBlockHeaderContext differentiates from other interfaces. IsLocationBlockHeaderContext() }
ILocationBlockHeaderContext is an interface to support dynamic dispatch.
type ILuaBlockContext ¶
type ILuaBlockContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLuaBlockContext differentiates from other interfaces. IsLuaBlockContext() }
ILuaBlockContext is an interface to support dynamic dispatch.
type ILuaStatementContext ¶
type ILuaStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLuaStatementContext differentiates from other interfaces. IsLuaStatementContext() }
ILuaStatementContext is an interface to support dynamic dispatch.
type IRegexHeaderStatementContext ¶
type IRegexHeaderStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRegexHeaderStatementContext differentiates from other interfaces. IsRegexHeaderStatementContext() }
IRegexHeaderStatementContext is an interface to support dynamic dispatch.
type IRegexpContext ¶
type IRegexpContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRegexpContext differentiates from other interfaces. IsRegexpContext() }
IRegexpContext is an interface to support dynamic dispatch.
type IRewriteStatementContext ¶
type IRewriteStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRewriteStatementContext differentiates from other interfaces. IsRewriteStatementContext() }
IRewriteStatementContext is an interface to support dynamic dispatch.
type IStatementContext ¶
type IStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStatementContext differentiates from other interfaces. IsStatementContext() }
IStatementContext is an interface to support dynamic dispatch.
type IfBodyContext ¶
type IfBodyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIfBodyContext ¶
func NewEmptyIfBodyContext() *IfBodyContext
func NewIfBodyContext ¶
func NewIfBodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IfBodyContext
func (*IfBodyContext) Accept ¶
func (s *IfBodyContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*IfBodyContext) AllNEWLINE ¶
func (s *IfBodyContext) AllNEWLINE() []antlr.TerminalNode
func (*IfBodyContext) AllValue ¶
func (s *IfBodyContext) AllValue() []antlr.TerminalNode
func (*IfBodyContext) GetParser ¶
func (s *IfBodyContext) GetParser() antlr.Parser
func (*IfBodyContext) GetRuleContext ¶
func (s *IfBodyContext) GetRuleContext() antlr.RuleContext
func (*IfBodyContext) IsIfBodyContext ¶
func (*IfBodyContext) IsIfBodyContext()
func (*IfBodyContext) NEWLINE ¶
func (s *IfBodyContext) NEWLINE(i int) antlr.TerminalNode
func (*IfBodyContext) Regexp ¶
func (s *IfBodyContext) Regexp() IRegexpContext
func (*IfBodyContext) ToStringTree ¶
func (s *IfBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*IfBodyContext) Value ¶
func (s *IfBodyContext) Value(i int) antlr.TerminalNode
type IfStatement ¶
type IfStatementContext ¶
type IfStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIfStatementContext ¶
func NewEmptyIfStatementContext() *IfStatementContext
func NewIfStatementContext ¶
func NewIfStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IfStatementContext
func (*IfStatementContext) Accept ¶
func (s *IfStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*IfStatementContext) AllNEWLINE ¶
func (s *IfStatementContext) AllNEWLINE() []antlr.TerminalNode
func (*IfStatementContext) AllStatement ¶
func (s *IfStatementContext) AllStatement() []IStatementContext
func (*IfStatementContext) GetParser ¶
func (s *IfStatementContext) GetParser() antlr.Parser
func (*IfStatementContext) GetRuleContext ¶
func (s *IfStatementContext) GetRuleContext() antlr.RuleContext
func (*IfStatementContext) IfBody ¶
func (s *IfStatementContext) IfBody() IIfBodyContext
func (*IfStatementContext) IsIfStatementContext ¶
func (*IfStatementContext) IsIfStatementContext()
func (*IfStatementContext) NEWLINE ¶
func (s *IfStatementContext) NEWLINE(i int) antlr.TerminalNode
func (*IfStatementContext) Statement ¶
func (s *IfStatementContext) Statement(i int) IStatementContext
func (*IfStatementContext) ToStringTree ¶
func (s *IfStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LocationBlockHeaderContext ¶
type LocationBlockHeaderContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLocationBlockHeaderContext ¶
func NewEmptyLocationBlockHeaderContext() *LocationBlockHeaderContext
func NewLocationBlockHeaderContext ¶
func NewLocationBlockHeaderContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LocationBlockHeaderContext
func (*LocationBlockHeaderContext) Accept ¶
func (s *LocationBlockHeaderContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*LocationBlockHeaderContext) AllValue ¶
func (s *LocationBlockHeaderContext) AllValue() []antlr.TerminalNode
func (*LocationBlockHeaderContext) GetParser ¶
func (s *LocationBlockHeaderContext) GetParser() antlr.Parser
func (*LocationBlockHeaderContext) GetRuleContext ¶
func (s *LocationBlockHeaderContext) GetRuleContext() antlr.RuleContext
func (*LocationBlockHeaderContext) IsLocationBlockHeaderContext ¶
func (*LocationBlockHeaderContext) IsLocationBlockHeaderContext()
func (*LocationBlockHeaderContext) Regexp ¶
func (s *LocationBlockHeaderContext) Regexp() IRegexpContext
func (*LocationBlockHeaderContext) ToStringTree ¶
func (s *LocationBlockHeaderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*LocationBlockHeaderContext) Value ¶
func (s *LocationBlockHeaderContext) Value(i int) antlr.TerminalNode
type LuaBlockContext ¶
type LuaBlockContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLuaBlockContext ¶
func NewEmptyLuaBlockContext() *LuaBlockContext
func NewLuaBlockContext ¶
func NewLuaBlockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LuaBlockContext
func (*LuaBlockContext) Accept ¶
func (s *LuaBlockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*LuaBlockContext) AllLuaStatement ¶
func (s *LuaBlockContext) AllLuaStatement() []ILuaStatementContext
func (*LuaBlockContext) AllNEWLINE ¶
func (s *LuaBlockContext) AllNEWLINE() []antlr.TerminalNode
func (*LuaBlockContext) GetParser ¶
func (s *LuaBlockContext) GetParser() antlr.Parser
func (*LuaBlockContext) GetRuleContext ¶
func (s *LuaBlockContext) GetRuleContext() antlr.RuleContext
func (*LuaBlockContext) IsLuaBlockContext ¶
func (*LuaBlockContext) IsLuaBlockContext()
func (*LuaBlockContext) LUA_HEADER ¶
func (s *LuaBlockContext) LUA_HEADER() antlr.TerminalNode
func (*LuaBlockContext) LuaStatement ¶
func (s *LuaBlockContext) LuaStatement(i int) ILuaStatementContext
func (*LuaBlockContext) NEWLINE ¶
func (s *LuaBlockContext) NEWLINE(i int) antlr.TerminalNode
func (*LuaBlockContext) ToStringTree ¶
func (s *LuaBlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LuaStatementContext ¶
type LuaStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLuaStatementContext ¶
func NewEmptyLuaStatementContext() *LuaStatementContext
func NewLuaStatementContext ¶
func NewLuaStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LuaStatementContext
func (*LuaStatementContext) Accept ¶
func (s *LuaStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*LuaStatementContext) AllValue ¶
func (s *LuaStatementContext) AllValue() []antlr.TerminalNode
func (*LuaStatementContext) GetParser ¶
func (s *LuaStatementContext) GetParser() antlr.Parser
func (*LuaStatementContext) GetRuleContext ¶
func (s *LuaStatementContext) GetRuleContext() antlr.RuleContext
func (*LuaStatementContext) IsLuaStatementContext ¶
func (*LuaStatementContext) IsLuaStatementContext()
func (*LuaStatementContext) NEWLINE ¶
func (s *LuaStatementContext) NEWLINE() antlr.TerminalNode
func (*LuaStatementContext) ToStringTree ¶
func (s *LuaStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*LuaStatementContext) Value ¶
func (s *LuaStatementContext) Value(i int) antlr.TerminalNode
type NginxLexer ¶
func NewNginxLexer ¶
func NewNginxLexer(input antlr.CharStream) *NginxLexer
NewNginxLexer produces a new lexer instance for the optional input antlr.CharStream.
type NginxParser ¶
type NginxParser struct {
*antlr.BaseParser
}
func NewNginxParser ¶
func NewNginxParser(input antlr.TokenStream) *NginxParser
NewNginxParser produces a new parser instance for the optional input antlr.TokenStream.
func (*NginxParser) Block ¶
func (p *NginxParser) Block() (localctx IBlockContext)
func (*NginxParser) Config ¶
func (p *NginxParser) Config() (localctx IConfigContext)
func (*NginxParser) GenericBlockHeader ¶
func (p *NginxParser) GenericBlockHeader() (localctx IGenericBlockHeaderContext)
func (*NginxParser) GenericStatement ¶
func (p *NginxParser) GenericStatement() (localctx IGenericStatementContext)
func (*NginxParser) IfBody ¶
func (p *NginxParser) IfBody() (localctx IIfBodyContext)
func (*NginxParser) IfStatement ¶
func (p *NginxParser) IfStatement() (localctx IIfStatementContext)
func (*NginxParser) LocationBlockHeader ¶
func (p *NginxParser) LocationBlockHeader() (localctx ILocationBlockHeaderContext)
func (*NginxParser) LuaBlock ¶
func (p *NginxParser) LuaBlock() (localctx ILuaBlockContext)
func (*NginxParser) LuaStatement ¶
func (p *NginxParser) LuaStatement() (localctx ILuaStatementContext)
func (*NginxParser) RegexHeaderStatement ¶
func (p *NginxParser) RegexHeaderStatement() (localctx IRegexHeaderStatementContext)
func (*NginxParser) Regexp ¶
func (p *NginxParser) Regexp() (localctx IRegexpContext)
func (*NginxParser) RewriteStatement ¶
func (p *NginxParser) RewriteStatement() (localctx IRewriteStatementContext)
func (*NginxParser) Statement ¶
func (p *NginxParser) Statement() (localctx IStatementContext)
type NginxVisitor ¶
type NginxVisitor interface { antlr.ParseTreeVisitor // Visit a parse tree produced by NginxParser#config. VisitConfig(ctx *ConfigContext) interface{} // Visit a parse tree produced by NginxParser#statement. VisitStatement(ctx *StatementContext) interface{} // Visit a parse tree produced by NginxParser#genericStatement. VisitGenericStatement(ctx *GenericStatementContext) interface{} // Visit a parse tree produced by NginxParser#regexHeaderStatement. VisitRegexHeaderStatement(ctx *RegexHeaderStatementContext) interface{} // Visit a parse tree produced by NginxParser#luaBlock. VisitLuaBlock(ctx *LuaBlockContext) interface{} // Visit a parse tree produced by NginxParser#luaStatement. VisitLuaStatement(ctx *LuaStatementContext) interface{} // Visit a parse tree produced by NginxParser#block. VisitBlock(ctx *BlockContext) interface{} // Visit a parse tree produced by NginxParser#genericBlockHeader. VisitGenericBlockHeader(ctx *GenericBlockHeaderContext) interface{} // Visit a parse tree produced by NginxParser#ifStatement. VisitIfStatement(ctx *IfStatementContext) interface{} // Visit a parse tree produced by NginxParser#ifBody. VisitIfBody(ctx *IfBodyContext) interface{} // Visit a parse tree produced by NginxParser#regexp. VisitRegexp(ctx *RegexpContext) interface{} // Visit a parse tree produced by NginxParser#locationBlockHeader. VisitLocationBlockHeader(ctx *LocationBlockHeaderContext) interface{} // Visit a parse tree produced by NginxParser#rewriteStatement. VisitRewriteStatement(ctx *RewriteStatementContext) interface{} }
A complete Visitor for a parse tree produced by NginxParser.
type RegexHeaderStatementContext ¶
type RegexHeaderStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRegexHeaderStatementContext ¶
func NewEmptyRegexHeaderStatementContext() *RegexHeaderStatementContext
func NewRegexHeaderStatementContext ¶
func NewRegexHeaderStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RegexHeaderStatementContext
func (*RegexHeaderStatementContext) Accept ¶
func (s *RegexHeaderStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*RegexHeaderStatementContext) GetParser ¶
func (s *RegexHeaderStatementContext) GetParser() antlr.Parser
func (*RegexHeaderStatementContext) GetRuleContext ¶
func (s *RegexHeaderStatementContext) GetRuleContext() antlr.RuleContext
func (*RegexHeaderStatementContext) IsRegexHeaderStatementContext ¶
func (*RegexHeaderStatementContext) IsRegexHeaderStatementContext()
func (*RegexHeaderStatementContext) REGEXP_PREFIXED ¶
func (s *RegexHeaderStatementContext) REGEXP_PREFIXED() antlr.TerminalNode
func (*RegexHeaderStatementContext) ToStringTree ¶
func (s *RegexHeaderStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*RegexHeaderStatementContext) Value ¶
func (s *RegexHeaderStatementContext) Value() antlr.TerminalNode
type RegexpContext ¶
type RegexpContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRegexpContext ¶
func NewEmptyRegexpContext() *RegexpContext
func NewRegexpContext ¶
func NewRegexpContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RegexpContext
func (*RegexpContext) Accept ¶
func (s *RegexpContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*RegexpContext) AllRegexp ¶
func (s *RegexpContext) AllRegexp() []IRegexpContext
func (*RegexpContext) AllValue ¶
func (s *RegexpContext) AllValue() []antlr.TerminalNode
func (*RegexpContext) GetParser ¶
func (s *RegexpContext) GetParser() antlr.Parser
func (*RegexpContext) GetRuleContext ¶
func (s *RegexpContext) GetRuleContext() antlr.RuleContext
func (*RegexpContext) IsRegexpContext ¶
func (*RegexpContext) IsRegexpContext()
func (*RegexpContext) Regexp ¶
func (s *RegexpContext) Regexp(i int) IRegexpContext
func (*RegexpContext) ToStringTree ¶
func (s *RegexpContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*RegexpContext) Value ¶
func (s *RegexpContext) Value(i int) antlr.TerminalNode
type RewriteStatementContext ¶
type RewriteStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRewriteStatementContext ¶
func NewEmptyRewriteStatementContext() *RewriteStatementContext
func NewRewriteStatementContext ¶
func NewRewriteStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RewriteStatementContext
func (*RewriteStatementContext) Accept ¶
func (s *RewriteStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*RewriteStatementContext) AllValue ¶
func (s *RewriteStatementContext) AllValue() []antlr.TerminalNode
func (*RewriteStatementContext) GetParser ¶
func (s *RewriteStatementContext) GetParser() antlr.Parser
func (*RewriteStatementContext) GetRuleContext ¶
func (s *RewriteStatementContext) GetRuleContext() antlr.RuleContext
func (*RewriteStatementContext) IsRewriteStatementContext ¶
func (*RewriteStatementContext) IsRewriteStatementContext()
func (*RewriteStatementContext) Regexp ¶
func (s *RewriteStatementContext) Regexp() IRegexpContext
func (*RewriteStatementContext) ToStringTree ¶
func (s *RewriteStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*RewriteStatementContext) Value ¶
func (s *RewriteStatementContext) Value(i int) antlr.TerminalNode
type StatementContext ¶
type StatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStatementContext ¶
func NewEmptyStatementContext() *StatementContext
func NewStatementContext ¶
func NewStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StatementContext
func (*StatementContext) Accept ¶
func (s *StatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*StatementContext) AllNEWLINE ¶
func (s *StatementContext) AllNEWLINE() []antlr.TerminalNode
func (*StatementContext) GenericStatement ¶
func (s *StatementContext) GenericStatement() IGenericStatementContext
func (*StatementContext) GetParser ¶
func (s *StatementContext) GetParser() antlr.Parser
func (*StatementContext) GetRuleContext ¶
func (s *StatementContext) GetRuleContext() antlr.RuleContext
func (*StatementContext) IsStatementContext ¶
func (*StatementContext) IsStatementContext()
func (*StatementContext) NEWLINE ¶
func (s *StatementContext) NEWLINE(i int) antlr.TerminalNode
func (*StatementContext) RegexHeaderStatement ¶
func (s *StatementContext) RegexHeaderStatement() IRegexHeaderStatementContext
func (*StatementContext) RewriteStatement ¶
func (s *StatementContext) RewriteStatement() IRewriteStatementContext
func (*StatementContext) ToStringTree ¶
func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string