parser

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PolicyLexerName        = 1
	PolicyLexerNumber      = 2
	PolicyLexerTK_EQ       = 3
	PolicyLexerTK_NEQ      = 4
	PolicyLexerTK_LT       = 5
	PolicyLexerTK_LTEQ     = 6
	PolicyLexerTK_GT       = 7
	PolicyLexerTK_GTEQ     = 8
	PolicyLexerTK_AT       = 9
	PolicyLexerTK_AND      = 10
	PolicyLexerTK_OR       = 11
	PolicyLexerTK_COMMA    = 12
	PolicyLexerTK_LBRACKET = 13
	PolicyLexerTK_RBRACKET = 14
	PolicyLexerTK_LPAREN   = 15
	PolicyLexerTK_RPAREN   = 16
	PolicyLexerTK_LFCR     = 17
	PolicyLexerTK_WS       = 18
)

PolicyLexer tokens.

View Source
const (
	PolicyEOF         = antlr.TokenEOF
	PolicyName        = 1
	PolicyNumber      = 2
	PolicyTK_EQ       = 3
	PolicyTK_NEQ      = 4
	PolicyTK_LT       = 5
	PolicyTK_LTEQ     = 6
	PolicyTK_GT       = 7
	PolicyTK_GTEQ     = 8
	PolicyTK_AT       = 9
	PolicyTK_AND      = 10
	PolicyTK_OR       = 11
	PolicyTK_COMMA    = 12
	PolicyTK_LBRACKET = 13
	PolicyTK_RBRACKET = 14
	PolicyTK_LPAREN   = 15
	PolicyTK_RPAREN   = 16
	PolicyTK_LFCR     = 17
	PolicyTK_WS       = 18
)

Policy tokens.

View Source
const (
	PolicyRULE_policy = 0
	PolicyRULE_expr   = 1
	PolicyRULE_sexpr  = 2
	PolicyRULE_attr   = 3
	PolicyRULE_value  = 4
)

Policy rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrContext

type AttrContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAttrContext

func NewAttrContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AttrContext

func NewEmptyAttrContext

func NewEmptyAttrContext() *AttrContext

func (*AttrContext) AllName

func (s *AttrContext) AllName() []antlr.TerminalNode

func (*AttrContext) EnterRule

func (s *AttrContext) EnterRule(listener antlr.ParseTreeListener)

func (*AttrContext) ExitRule

func (s *AttrContext) ExitRule(listener antlr.ParseTreeListener)

func (*AttrContext) GetParser

func (s *AttrContext) GetParser() antlr.Parser

func (*AttrContext) GetRuleContext

func (s *AttrContext) GetRuleContext() antlr.RuleContext

func (*AttrContext) IsAttrContext

func (*AttrContext) IsAttrContext()

func (*AttrContext) Name

func (s *AttrContext) Name(i int) antlr.TerminalNode

func (*AttrContext) TK_AT

func (s *AttrContext) TK_AT() antlr.TerminalNode

func (*AttrContext) ToStringTree

func (s *AttrContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BasePolicyListener

type BasePolicyListener struct{}

BasePolicyListener is a complete listener for a parse tree produced by Policy.

func (*BasePolicyListener) EnterAttr

func (s *BasePolicyListener) EnterAttr(ctx *AttrContext)

EnterAttr is called when production attr is entered.

func (*BasePolicyListener) EnterEveryRule

func (s *BasePolicyListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BasePolicyListener) EnterExpr_andor

func (s *BasePolicyListener) EnterExpr_andor(ctx *Expr_andorContext)

EnterExpr_andor is called when production expr_andor is entered.

func (*BasePolicyListener) EnterExpr_attr

func (s *BasePolicyListener) EnterExpr_attr(ctx *Expr_attrContext)

EnterExpr_attr is called when production expr_attr is entered.

func (*BasePolicyListener) EnterExpr_linear

func (s *BasePolicyListener) EnterExpr_linear(ctx *Expr_linearContext)

EnterExpr_linear is called when production expr_linear is entered.

func (*BasePolicyListener) EnterExpr_paren

func (s *BasePolicyListener) EnterExpr_paren(ctx *Expr_parenContext)

EnterExpr_paren is called when production expr_paren is entered.

func (*BasePolicyListener) EnterExpr_value

func (s *BasePolicyListener) EnterExpr_value(ctx *Expr_valueContext)

EnterExpr_value is called when production expr_value is entered.

func (*BasePolicyListener) EnterPolicy

func (s *BasePolicyListener) EnterPolicy(ctx *PolicyContext)

EnterPolicy is called when production policy is entered.

func (*BasePolicyListener) EnterSexpr_andor

func (s *BasePolicyListener) EnterSexpr_andor(ctx *Sexpr_andorContext)

EnterSexpr_andor is called when production sexpr_andor is entered.

func (*BasePolicyListener) EnterSexpr_attr

func (s *BasePolicyListener) EnterSexpr_attr(ctx *Sexpr_attrContext)

EnterSexpr_attr is called when production sexpr_attr is entered.

func (*BasePolicyListener) EnterSexpr_linear

func (s *BasePolicyListener) EnterSexpr_linear(ctx *Sexpr_linearContext)

EnterSexpr_linear is called when production sexpr_linear is entered.

func (*BasePolicyListener) EnterSexpr_value

func (s *BasePolicyListener) EnterSexpr_value(ctx *Sexpr_valueContext)

EnterSexpr_value is called when production sexpr_value is entered.

func (*BasePolicyListener) EnterValue

func (s *BasePolicyListener) EnterValue(ctx *ValueContext)

EnterValue is called when production value is entered.

func (*BasePolicyListener) ExitAttr

func (s *BasePolicyListener) ExitAttr(ctx *AttrContext)

ExitAttr is called when production attr is exited.

func (*BasePolicyListener) ExitEveryRule

func (s *BasePolicyListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BasePolicyListener) ExitExpr_andor

func (s *BasePolicyListener) ExitExpr_andor(ctx *Expr_andorContext)

ExitExpr_andor is called when production expr_andor is exited.

func (*BasePolicyListener) ExitExpr_attr

func (s *BasePolicyListener) ExitExpr_attr(ctx *Expr_attrContext)

ExitExpr_attr is called when production expr_attr is exited.

func (*BasePolicyListener) ExitExpr_linear

func (s *BasePolicyListener) ExitExpr_linear(ctx *Expr_linearContext)

ExitExpr_linear is called when production expr_linear is exited.

func (*BasePolicyListener) ExitExpr_paren

func (s *BasePolicyListener) ExitExpr_paren(ctx *Expr_parenContext)

ExitExpr_paren is called when production expr_paren is exited.

func (*BasePolicyListener) ExitExpr_value

func (s *BasePolicyListener) ExitExpr_value(ctx *Expr_valueContext)

ExitExpr_value is called when production expr_value is exited.

func (*BasePolicyListener) ExitPolicy

func (s *BasePolicyListener) ExitPolicy(ctx *PolicyContext)

ExitPolicy is called when production policy is exited.

func (*BasePolicyListener) ExitSexpr_andor

func (s *BasePolicyListener) ExitSexpr_andor(ctx *Sexpr_andorContext)

ExitSexpr_andor is called when production sexpr_andor is exited.

func (*BasePolicyListener) ExitSexpr_attr

func (s *BasePolicyListener) ExitSexpr_attr(ctx *Sexpr_attrContext)

ExitSexpr_attr is called when production sexpr_attr is exited.

func (*BasePolicyListener) ExitSexpr_linear

func (s *BasePolicyListener) ExitSexpr_linear(ctx *Sexpr_linearContext)

ExitSexpr_linear is called when production sexpr_linear is exited.

func (*BasePolicyListener) ExitSexpr_value

func (s *BasePolicyListener) ExitSexpr_value(ctx *Sexpr_valueContext)

ExitSexpr_value is called when production sexpr_value is exited.

func (*BasePolicyListener) ExitValue

func (s *BasePolicyListener) ExitValue(ctx *ValueContext)

ExitValue is called when production value is exited.

func (*BasePolicyListener) VisitErrorNode

func (s *BasePolicyListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BasePolicyListener) VisitTerminal

func (s *BasePolicyListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type ExprContext

type ExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyExprContext

func NewEmptyExprContext() *ExprContext

func NewExprContext

func NewExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExprContext

func (*ExprContext) CopyFrom

func (s *ExprContext) CopyFrom(ctx *ExprContext)

func (*ExprContext) GetParser

func (s *ExprContext) GetParser() antlr.Parser

func (*ExprContext) GetRuleContext

func (s *ExprContext) GetRuleContext() antlr.RuleContext

func (*ExprContext) IsExprContext

func (*ExprContext) IsExprContext()

func (*ExprContext) ToStringTree

func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Expr_andorContext

type Expr_andorContext struct {
	*ExprContext
	// contains filtered or unexported fields
}

func NewExpr_andorContext

func NewExpr_andorContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_andorContext

func (*Expr_andorContext) AllExpr

func (s *Expr_andorContext) AllExpr() []IExprContext

func (*Expr_andorContext) EnterRule

func (s *Expr_andorContext) EnterRule(listener antlr.ParseTreeListener)

func (*Expr_andorContext) ExitRule

func (s *Expr_andorContext) ExitRule(listener antlr.ParseTreeListener)

func (*Expr_andorContext) Expr

func (s *Expr_andorContext) Expr(i int) IExprContext

func (*Expr_andorContext) GetOp

func (s *Expr_andorContext) GetOp() antlr.Token

func (*Expr_andorContext) GetRuleContext

func (s *Expr_andorContext) GetRuleContext() antlr.RuleContext

func (*Expr_andorContext) SetOp

func (s *Expr_andorContext) SetOp(v antlr.Token)

func (*Expr_andorContext) TK_AND

func (s *Expr_andorContext) TK_AND() antlr.TerminalNode

func (*Expr_andorContext) TK_OR

type Expr_attrContext

type Expr_attrContext struct {
	*ExprContext
}

func NewExpr_attrContext

func NewExpr_attrContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_attrContext

func (*Expr_attrContext) Attr

func (s *Expr_attrContext) Attr() IAttrContext

func (*Expr_attrContext) EnterRule

func (s *Expr_attrContext) EnterRule(listener antlr.ParseTreeListener)

func (*Expr_attrContext) ExitRule

func (s *Expr_attrContext) ExitRule(listener antlr.ParseTreeListener)

func (*Expr_attrContext) GetRuleContext

func (s *Expr_attrContext) GetRuleContext() antlr.RuleContext

type Expr_linearContext

type Expr_linearContext struct {
	*ExprContext
	// contains filtered or unexported fields
}

func NewExpr_linearContext

func NewExpr_linearContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_linearContext

func (*Expr_linearContext) AllExpr

func (s *Expr_linearContext) AllExpr() []IExprContext

func (*Expr_linearContext) EnterRule

func (s *Expr_linearContext) EnterRule(listener antlr.ParseTreeListener)

func (*Expr_linearContext) ExitRule

func (s *Expr_linearContext) ExitRule(listener antlr.ParseTreeListener)

func (*Expr_linearContext) Expr

func (s *Expr_linearContext) Expr(i int) IExprContext

func (*Expr_linearContext) GetOp

func (s *Expr_linearContext) GetOp() antlr.Token

func (*Expr_linearContext) GetRuleContext

func (s *Expr_linearContext) GetRuleContext() antlr.RuleContext

func (*Expr_linearContext) SetOp

func (s *Expr_linearContext) SetOp(v antlr.Token)

func (*Expr_linearContext) TK_EQ

func (*Expr_linearContext) TK_GT

func (*Expr_linearContext) TK_GTEQ

func (s *Expr_linearContext) TK_GTEQ() antlr.TerminalNode

func (*Expr_linearContext) TK_LT

func (*Expr_linearContext) TK_LTEQ

func (s *Expr_linearContext) TK_LTEQ() antlr.TerminalNode

type Expr_parenContext

type Expr_parenContext struct {
	*ExprContext
}

func NewExpr_parenContext

func NewExpr_parenContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_parenContext

func (*Expr_parenContext) EnterRule

func (s *Expr_parenContext) EnterRule(listener antlr.ParseTreeListener)

func (*Expr_parenContext) ExitRule

func (s *Expr_parenContext) ExitRule(listener antlr.ParseTreeListener)

func (*Expr_parenContext) Expr

func (s *Expr_parenContext) Expr() IExprContext

func (*Expr_parenContext) GetRuleContext

func (s *Expr_parenContext) GetRuleContext() antlr.RuleContext

func (*Expr_parenContext) TK_LPAREN

func (s *Expr_parenContext) TK_LPAREN() antlr.TerminalNode

func (*Expr_parenContext) TK_RPAREN

func (s *Expr_parenContext) TK_RPAREN() antlr.TerminalNode

type Expr_valueContext

type Expr_valueContext struct {
	*ExprContext
}

func NewExpr_valueContext

func NewExpr_valueContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Expr_valueContext

func (*Expr_valueContext) EnterRule

func (s *Expr_valueContext) EnterRule(listener antlr.ParseTreeListener)

func (*Expr_valueContext) ExitRule

func (s *Expr_valueContext) ExitRule(listener antlr.ParseTreeListener)

func (*Expr_valueContext) GetRuleContext

func (s *Expr_valueContext) GetRuleContext() antlr.RuleContext

func (*Expr_valueContext) Value

func (s *Expr_valueContext) Value() IValueContext

type IAttrContext

type IAttrContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsAttrContext differentiates from other interfaces.
	IsAttrContext()
}

IAttrContext is an interface to support dynamic dispatch.

type IExprContext

type IExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsExprContext differentiates from other interfaces.
	IsExprContext()
}

IExprContext is an interface to support dynamic dispatch.

type IPolicyContext

type IPolicyContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsPolicyContext differentiates from other interfaces.
	IsPolicyContext()
}

IPolicyContext is an interface to support dynamic dispatch.

type ISexprContext

type ISexprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsSexprContext differentiates from other interfaces.
	IsSexprContext()
}

ISexprContext 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 Policy

type Policy struct {
	*antlr.BaseParser
}

func NewPolicy

func NewPolicy(input antlr.TokenStream) *Policy

func (*Policy) Attr

func (p *Policy) Attr() (localctx IAttrContext)

func (*Policy) Expr

func (p *Policy) Expr() (localctx IExprContext)

func (*Policy) Expr_Sempred

func (p *Policy) Expr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*Policy) Policy

func (p *Policy) Policy() (localctx IPolicyContext)

func (*Policy) Sempred

func (p *Policy) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool

func (*Policy) Sexpr

func (p *Policy) Sexpr() (localctx ISexprContext)

func (*Policy) Value

func (p *Policy) Value() (localctx IValueContext)

type PolicyContext

type PolicyContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPolicyContext

func NewEmptyPolicyContext() *PolicyContext

func NewPolicyContext

func NewPolicyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PolicyContext

func (*PolicyContext) EnterRule

func (s *PolicyContext) EnterRule(listener antlr.ParseTreeListener)

func (*PolicyContext) ExitRule

func (s *PolicyContext) ExitRule(listener antlr.ParseTreeListener)

func (*PolicyContext) Expr

func (s *PolicyContext) Expr() IExprContext

func (*PolicyContext) GetParser

func (s *PolicyContext) GetParser() antlr.Parser

func (*PolicyContext) GetRuleContext

func (s *PolicyContext) GetRuleContext() antlr.RuleContext

func (*PolicyContext) IsPolicyContext

func (*PolicyContext) IsPolicyContext()

func (*PolicyContext) Sexpr

func (s *PolicyContext) Sexpr() ISexprContext

func (*PolicyContext) ToStringTree

func (s *PolicyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type PolicyLexer

type PolicyLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewPolicyLexer

func NewPolicyLexer(input antlr.CharStream) *PolicyLexer

type PolicyListener

type PolicyListener interface {
	antlr.ParseTreeListener

	// EnterPolicy is called when entering the policy production.
	EnterPolicy(c *PolicyContext)

	// EnterExpr_value is called when entering the expr_value production.
	EnterExpr_value(c *Expr_valueContext)

	// EnterExpr_linear is called when entering the expr_linear production.
	EnterExpr_linear(c *Expr_linearContext)

	// EnterExpr_paren is called when entering the expr_paren production.
	EnterExpr_paren(c *Expr_parenContext)

	// EnterExpr_attr is called when entering the expr_attr production.
	EnterExpr_attr(c *Expr_attrContext)

	// EnterExpr_andor is called when entering the expr_andor production.
	EnterExpr_andor(c *Expr_andorContext)

	// EnterSexpr_andor is called when entering the sexpr_andor production.
	EnterSexpr_andor(c *Sexpr_andorContext)

	// EnterSexpr_linear is called when entering the sexpr_linear production.
	EnterSexpr_linear(c *Sexpr_linearContext)

	// EnterSexpr_attr is called when entering the sexpr_attr production.
	EnterSexpr_attr(c *Sexpr_attrContext)

	// EnterSexpr_value is called when entering the sexpr_value production.
	EnterSexpr_value(c *Sexpr_valueContext)

	// EnterAttr is called when entering the attr production.
	EnterAttr(c *AttrContext)

	// EnterValue is called when entering the value production.
	EnterValue(c *ValueContext)

	// ExitPolicy is called when exiting the policy production.
	ExitPolicy(c *PolicyContext)

	// ExitExpr_value is called when exiting the expr_value production.
	ExitExpr_value(c *Expr_valueContext)

	// ExitExpr_linear is called when exiting the expr_linear production.
	ExitExpr_linear(c *Expr_linearContext)

	// ExitExpr_paren is called when exiting the expr_paren production.
	ExitExpr_paren(c *Expr_parenContext)

	// ExitExpr_attr is called when exiting the expr_attr production.
	ExitExpr_attr(c *Expr_attrContext)

	// ExitExpr_andor is called when exiting the expr_andor production.
	ExitExpr_andor(c *Expr_andorContext)

	// ExitSexpr_andor is called when exiting the sexpr_andor production.
	ExitSexpr_andor(c *Sexpr_andorContext)

	// ExitSexpr_linear is called when exiting the sexpr_linear production.
	ExitSexpr_linear(c *Sexpr_linearContext)

	// ExitSexpr_attr is called when exiting the sexpr_attr production.
	ExitSexpr_attr(c *Sexpr_attrContext)

	// ExitSexpr_value is called when exiting the sexpr_value production.
	ExitSexpr_value(c *Sexpr_valueContext)

	// ExitAttr is called when exiting the attr production.
	ExitAttr(c *AttrContext)

	// ExitValue is called when exiting the value production.
	ExitValue(c *ValueContext)
}

PolicyListener is a complete listener for a parse tree produced by Policy.

type SexprContext

type SexprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySexprContext

func NewEmptySexprContext() *SexprContext

func NewSexprContext

func NewSexprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SexprContext

func (*SexprContext) CopyFrom

func (s *SexprContext) CopyFrom(ctx *SexprContext)

func (*SexprContext) GetParser

func (s *SexprContext) GetParser() antlr.Parser

func (*SexprContext) GetRuleContext

func (s *SexprContext) GetRuleContext() antlr.RuleContext

func (*SexprContext) IsSexprContext

func (*SexprContext) IsSexprContext()

func (*SexprContext) ToStringTree

func (s *SexprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Sexpr_andorContext

type Sexpr_andorContext struct {
	*SexprContext
	// contains filtered or unexported fields
}

func NewSexpr_andorContext

func NewSexpr_andorContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Sexpr_andorContext

func (*Sexpr_andorContext) AllSexpr

func (s *Sexpr_andorContext) AllSexpr() []ISexprContext

func (*Sexpr_andorContext) EnterRule

func (s *Sexpr_andorContext) EnterRule(listener antlr.ParseTreeListener)

func (*Sexpr_andorContext) ExitRule

func (s *Sexpr_andorContext) ExitRule(listener antlr.ParseTreeListener)

func (*Sexpr_andorContext) GetOp

func (s *Sexpr_andorContext) GetOp() antlr.Token

func (*Sexpr_andorContext) GetRuleContext

func (s *Sexpr_andorContext) GetRuleContext() antlr.RuleContext

func (*Sexpr_andorContext) SetOp

func (s *Sexpr_andorContext) SetOp(v antlr.Token)

func (*Sexpr_andorContext) Sexpr

func (s *Sexpr_andorContext) Sexpr(i int) ISexprContext

func (*Sexpr_andorContext) TK_AND

func (*Sexpr_andorContext) TK_LPAREN

func (s *Sexpr_andorContext) TK_LPAREN() antlr.TerminalNode

func (*Sexpr_andorContext) TK_OR

func (*Sexpr_andorContext) TK_RPAREN

func (s *Sexpr_andorContext) TK_RPAREN() antlr.TerminalNode

type Sexpr_attrContext

type Sexpr_attrContext struct {
	*SexprContext
}

func NewSexpr_attrContext

func NewSexpr_attrContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Sexpr_attrContext

func (*Sexpr_attrContext) Attr

func (s *Sexpr_attrContext) Attr() IAttrContext

func (*Sexpr_attrContext) EnterRule

func (s *Sexpr_attrContext) EnterRule(listener antlr.ParseTreeListener)

func (*Sexpr_attrContext) ExitRule

func (s *Sexpr_attrContext) ExitRule(listener antlr.ParseTreeListener)

func (*Sexpr_attrContext) GetRuleContext

func (s *Sexpr_attrContext) GetRuleContext() antlr.RuleContext

type Sexpr_linearContext

type Sexpr_linearContext struct {
	*SexprContext
	// contains filtered or unexported fields
}

func NewSexpr_linearContext

func NewSexpr_linearContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Sexpr_linearContext

func (*Sexpr_linearContext) AllExpr

func (s *Sexpr_linearContext) AllExpr() []IExprContext

func (*Sexpr_linearContext) EnterRule

func (s *Sexpr_linearContext) EnterRule(listener antlr.ParseTreeListener)

func (*Sexpr_linearContext) ExitRule

func (s *Sexpr_linearContext) ExitRule(listener antlr.ParseTreeListener)

func (*Sexpr_linearContext) Expr

func (*Sexpr_linearContext) GetOp

func (s *Sexpr_linearContext) GetOp() antlr.Token

func (*Sexpr_linearContext) GetRuleContext

func (s *Sexpr_linearContext) GetRuleContext() antlr.RuleContext

func (*Sexpr_linearContext) SetOp

func (s *Sexpr_linearContext) SetOp(v antlr.Token)

func (*Sexpr_linearContext) TK_EQ

func (*Sexpr_linearContext) TK_GT

func (*Sexpr_linearContext) TK_GTEQ

func (s *Sexpr_linearContext) TK_GTEQ() antlr.TerminalNode

func (*Sexpr_linearContext) TK_LT

func (*Sexpr_linearContext) TK_LTEQ

func (s *Sexpr_linearContext) TK_LTEQ() antlr.TerminalNode

type Sexpr_valueContext

type Sexpr_valueContext struct {
	*SexprContext
}

func NewSexpr_valueContext

func NewSexpr_valueContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Sexpr_valueContext

func (*Sexpr_valueContext) EnterRule

func (s *Sexpr_valueContext) EnterRule(listener antlr.ParseTreeListener)

func (*Sexpr_valueContext) ExitRule

func (s *Sexpr_valueContext) ExitRule(listener antlr.ParseTreeListener)

func (*Sexpr_valueContext) GetRuleContext

func (s *Sexpr_valueContext) GetRuleContext() antlr.RuleContext

func (*Sexpr_valueContext) Value

func (s *Sexpr_valueContext) Value() IValueContext

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) 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) IsValueContext

func (*ValueContext) IsValueContext()

func (*ValueContext) Number

func (s *ValueContext) Number() antlr.TerminalNode

func (*ValueContext) ToStringTree

func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL