Documentation
¶
Index ¶
- Constants
- func PNreadFromFile(fileName string) (*petrinet.Net, []petrinet.MarkInt, error)
- func PNreadFromText(text string) (*petrinet.Net, []petrinet.MarkInt)
- type ASTAssignNToken
- type ASTBinOp
- type ASTBool
- type ASTDist
- type ASTEnableCond
- type ASTEnv
- type ASTExpr
- func NewASTAssignNToken(label string, right ASTExpr) ASTExpr
- func NewASTBinOp(op string, left ASTExpr, right ASTExpr) ASTExpr
- func NewASTEnableCond(label string) ASTExpr
- func NewASTMultiOp(op string, args ...ASTExpr) ASTExpr
- func NewASTNToken(label string) ASTExpr
- func NewASTNop() ASTExpr
- func NewASTTriOp(op string, first ASTExpr, second ASTExpr, third ASTExpr) ASTExpr
- func NewASTUnaryOp(op string, elem ASTExpr) ASTExpr
- type ASTFloat
- type ASTInt
- type ASTList
- type ASTNToken
- type ASTNop
- type ASTString
- type ASTTriOp
- type ASTUnaryOp
- type ASTValue
- func (a *ASTValue) Eval(env ASTEnv) (*ASTValue, error)
- func (a *ASTValue) EvalWithMark(net *petrinet.Net, mark []petrinet.MarkInt, env ASTEnv) (*ASTValue, error)
- func (a *ASTValue) GetBool() (ASTBool, error)
- func (a *ASTValue) GetDist() (ASTDist, error)
- func (a *ASTValue) GetFloat() (ASTFloat, error)
- func (a *ASTValue) GetInt() (ASTInt, error)
- func (a *ASTValue) GetString() (ASTString, error)
- type ASTVar
- type Arc_declarationContext
- func (s *Arc_declarationContext) AllID() []antlr.TerminalNode
- func (s *Arc_declarationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Arc_declarationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Arc_declarationContext) GetArctype() antlr.Token
- func (s *Arc_declarationContext) GetDestName() antlr.Token
- func (s *Arc_declarationContext) GetParser() antlr.Parser
- func (s *Arc_declarationContext) GetRuleContext() antlr.RuleContext
- func (s *Arc_declarationContext) GetSrcName() antlr.Token
- func (s *Arc_declarationContext) ID(i int) antlr.TerminalNode
- func (*Arc_declarationContext) IsArc_declarationContext()
- func (s *Arc_declarationContext) Node_options() INode_optionsContext
- func (s *Arc_declarationContext) SetArctype(v antlr.Token)
- func (s *Arc_declarationContext) SetDestName(v antlr.Token)
- func (s *Arc_declarationContext) SetSrcName(v antlr.Token)
- func (s *Arc_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Args_listContext
- func (s *Args_listContext) AllArgs_list() []IArgs_listContext
- func (s *Args_listContext) Args_list(i int) IArgs_listContext
- func (s *Args_listContext) Args_value() IArgs_valueContext
- func (s *Args_listContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Args_listContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Args_listContext) GetParser() antlr.Parser
- func (s *Args_listContext) GetRuleContext() antlr.RuleContext
- func (*Args_listContext) IsArgs_listContext()
- func (s *Args_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Args_valueContext
- func (s *Args_valueContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Args_valueContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Args_valueContext) Expression() IExpressionContext
- func (s *Args_valueContext) GetParser() antlr.Parser
- func (s *Args_valueContext) GetRuleContext() antlr.RuleContext
- func (*Args_valueContext) IsArgs_valueContext()
- func (s *Args_valueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Assign_expressionContext
- func (s *Assign_expressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Assign_expressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Assign_expressionContext) Expression() IExpressionContext
- func (s *Assign_expressionContext) GetExprtype() int
- func (s *Assign_expressionContext) GetId() antlr.Token
- func (s *Assign_expressionContext) GetParser() antlr.Parser
- func (s *Assign_expressionContext) GetRuleContext() antlr.RuleContext
- func (s *Assign_expressionContext) ID() antlr.TerminalNode
- func (*Assign_expressionContext) IsAssign_expressionContext()
- func (s *Assign_expressionContext) Ntoken_expression() INtoken_expressionContext
- func (s *Assign_expressionContext) SetExprtype(v int)
- func (s *Assign_expressionContext) SetId(v antlr.Token)
- func (s *Assign_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BaseJSPNLListener
- func (s *BaseJSPNLListener) EnterArc_declaration(ctx *Arc_declarationContext)
- func (s *BaseJSPNLListener) EnterArgs_list(ctx *Args_listContext)
- func (s *BaseJSPNLListener) EnterArgs_value(ctx *Args_valueContext)
- func (s *BaseJSPNLListener) EnterAssign_expression(ctx *Assign_expressionContext)
- func (s *BaseJSPNLListener) EnterDeclaration(ctx *DeclarationContext)
- func (s *BaseJSPNLListener) EnterEnable_expression(ctx *Enable_expressionContext)
- func (s *BaseJSPNLListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseJSPNLListener) EnterExpression(ctx *ExpressionContext)
- func (s *BaseJSPNLListener) EnterFunction_args(ctx *Function_argsContext)
- func (s *BaseJSPNLListener) EnterFunction_expression(ctx *Function_expressionContext)
- func (s *BaseJSPNLListener) EnterGroup_declaration(ctx *Group_declarationContext)
- func (s *BaseJSPNLListener) EnterLabel_expression(ctx *Label_expressionContext)
- func (s *BaseJSPNLListener) EnterLiteral_expression(ctx *Literal_expressionContext)
- func (s *BaseJSPNLListener) EnterNode_declaration(ctx *Node_declarationContext)
- func (s *BaseJSPNLListener) EnterNode_options(ctx *Node_optionsContext)
- func (s *BaseJSPNLListener) EnterNtoken_expression(ctx *Ntoken_expressionContext)
- func (s *BaseJSPNLListener) EnterOption_list(ctx *Option_listContext)
- func (s *BaseJSPNLListener) EnterOption_value(ctx *Option_valueContext)
- func (s *BaseJSPNLListener) EnterProg(ctx *ProgContext)
- func (s *BaseJSPNLListener) EnterReward_declaration(ctx *Reward_declarationContext)
- func (s *BaseJSPNLListener) EnterSimple(ctx *SimpleContext)
- func (s *BaseJSPNLListener) EnterSimple_block(ctx *Simple_blockContext)
- func (s *BaseJSPNLListener) EnterStatement(ctx *StatementContext)
- func (s *BaseJSPNLListener) EnterUpdate_block(ctx *Update_blockContext)
- func (s *BaseJSPNLListener) ExitArc_declaration(ctx *Arc_declarationContext)
- func (s *BaseJSPNLListener) ExitArgs_list(ctx *Args_listContext)
- func (s *BaseJSPNLListener) ExitArgs_value(ctx *Args_valueContext)
- func (s *BaseJSPNLListener) ExitAssign_expression(ctx *Assign_expressionContext)
- func (s *BaseJSPNLListener) ExitDeclaration(ctx *DeclarationContext)
- func (s *BaseJSPNLListener) ExitEnable_expression(ctx *Enable_expressionContext)
- func (s *BaseJSPNLListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseJSPNLListener) ExitExpression(ctx *ExpressionContext)
- func (s *BaseJSPNLListener) ExitFunction_args(ctx *Function_argsContext)
- func (s *BaseJSPNLListener) ExitFunction_expression(ctx *Function_expressionContext)
- func (s *BaseJSPNLListener) ExitGroup_declaration(ctx *Group_declarationContext)
- func (s *BaseJSPNLListener) ExitLabel_expression(ctx *Label_expressionContext)
- func (s *BaseJSPNLListener) ExitLiteral_expression(ctx *Literal_expressionContext)
- func (s *BaseJSPNLListener) ExitNode_declaration(ctx *Node_declarationContext)
- func (s *BaseJSPNLListener) ExitNode_options(ctx *Node_optionsContext)
- func (s *BaseJSPNLListener) ExitNtoken_expression(ctx *Ntoken_expressionContext)
- func (s *BaseJSPNLListener) ExitOption_list(ctx *Option_listContext)
- func (s *BaseJSPNLListener) ExitOption_value(ctx *Option_valueContext)
- func (s *BaseJSPNLListener) ExitProg(ctx *ProgContext)
- func (s *BaseJSPNLListener) ExitReward_declaration(ctx *Reward_declarationContext)
- func (s *BaseJSPNLListener) ExitSimple(ctx *SimpleContext)
- func (s *BaseJSPNLListener) ExitSimple_block(ctx *Simple_blockContext)
- func (s *BaseJSPNLListener) ExitStatement(ctx *StatementContext)
- func (s *BaseJSPNLListener) ExitUpdate_block(ctx *Update_blockContext)
- func (s *BaseJSPNLListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseJSPNLListener) VisitTerminal(node antlr.TerminalNode)
- type DeclarationContext
- func (s *DeclarationContext) Arc_declaration() IArc_declarationContext
- func (s *DeclarationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DeclarationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DeclarationContext) GetParser() antlr.Parser
- func (s *DeclarationContext) GetRuleContext() antlr.RuleContext
- func (s *DeclarationContext) Group_declaration() IGroup_declarationContext
- func (*DeclarationContext) IsDeclarationContext()
- func (s *DeclarationContext) Node_declaration() INode_declarationContext
- func (s *DeclarationContext) Reward_declaration() IReward_declarationContext
- func (s *DeclarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Enable_expressionContext
- func (s *Enable_expressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Enable_expressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Enable_expressionContext) GetId() antlr.Token
- func (s *Enable_expressionContext) GetParser() antlr.Parser
- func (s *Enable_expressionContext) GetRuleContext() antlr.RuleContext
- func (s *Enable_expressionContext) ID() antlr.TerminalNode
- func (*Enable_expressionContext) IsEnable_expressionContext()
- func (s *Enable_expressionContext) SetId(v antlr.Token)
- func (s *Enable_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExpressionContext
- func (s *ExpressionContext) AllExpression() []IExpressionContext
- func (s *ExpressionContext) Enable_expression() IEnable_expressionContext
- func (s *ExpressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ExpressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ExpressionContext) Expression(i int) IExpressionContext
- func (s *ExpressionContext) Function_expression() IFunction_expressionContext
- func (s *ExpressionContext) GetId() antlr.Token
- func (s *ExpressionContext) GetNodetype() int
- func (s *ExpressionContext) GetOp() antlr.Token
- func (s *ExpressionContext) GetParser() antlr.Parser
- func (s *ExpressionContext) GetRuleContext() antlr.RuleContext
- func (s *ExpressionContext) ID() antlr.TerminalNode
- func (*ExpressionContext) IsExpressionContext()
- func (s *ExpressionContext) Literal_expression() ILiteral_expressionContext
- func (s *ExpressionContext) Ntoken_expression() INtoken_expressionContext
- func (s *ExpressionContext) SetId(v antlr.Token)
- func (s *ExpressionContext) SetNodetype(v int)
- func (s *ExpressionContext) SetOp(v antlr.Token)
- func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Function_argsContext
- func (s *Function_argsContext) Args_list() IArgs_listContext
- func (s *Function_argsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Function_argsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Function_argsContext) GetParser() antlr.Parser
- func (s *Function_argsContext) GetRuleContext() antlr.RuleContext
- func (*Function_argsContext) IsFunction_argsContext()
- func (s *Function_argsContext) Option_list() IOption_listContext
- func (s *Function_argsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Function_expressionContext
- func (s *Function_expressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Function_expressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Function_expressionContext) Function_args() IFunction_argsContext
- func (s *Function_expressionContext) GetId() antlr.Token
- func (s *Function_expressionContext) GetParser() antlr.Parser
- func (s *Function_expressionContext) GetRuleContext() antlr.RuleContext
- func (s *Function_expressionContext) ID() antlr.TerminalNode
- func (*Function_expressionContext) IsFunction_expressionContext()
- func (s *Function_expressionContext) SetId(v antlr.Token)
- func (s *Function_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Group_declarationContext
- func (s *Group_declarationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Group_declarationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Group_declarationContext) Expression() IExpressionContext
- func (s *Group_declarationContext) GetId() antlr.Token
- func (s *Group_declarationContext) GetParser() antlr.Parser
- func (s *Group_declarationContext) GetRuleContext() antlr.RuleContext
- func (s *Group_declarationContext) ID() antlr.TerminalNode
- func (*Group_declarationContext) IsGroup_declarationContext()
- func (s *Group_declarationContext) SetId(v antlr.Token)
- func (s *Group_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IArc_declarationContext
- type IArgs_listContext
- type IArgs_valueContext
- type IAssign_expressionContext
- type IDeclarationContext
- type IEnable_expressionContext
- type IExpressionContext
- type IFunction_argsContext
- type IFunction_expressionContext
- type IGroup_declarationContext
- type ILabel_expressionContext
- type ILiteral_expressionContext
- type INode_declarationContext
- type INode_optionsContext
- type INtoken_expressionContext
- type IOption_listContext
- type IOption_valueContext
- type IProgContext
- type IReward_declarationContext
- type ISimpleContext
- type ISimple_blockContext
- type IStatementContext
- type IUpdate_blockContext
- type JSPNLLexer
- type JSPNLListener
- type JSPNLParser
- func (p *JSPNLParser) Arc_declaration() (localctx IArc_declarationContext)
- func (p *JSPNLParser) Args_list() (localctx IArgs_listContext)
- func (p *JSPNLParser) Args_value() (localctx IArgs_valueContext)
- func (p *JSPNLParser) Assign_expression() (localctx IAssign_expressionContext)
- func (p *JSPNLParser) Declaration() (localctx IDeclarationContext)
- func (p *JSPNLParser) Enable_expression() (localctx IEnable_expressionContext)
- func (p *JSPNLParser) Expression() (localctx IExpressionContext)
- func (p *JSPNLParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *JSPNLParser) Function_args() (localctx IFunction_argsContext)
- func (p *JSPNLParser) Function_expression() (localctx IFunction_expressionContext)
- func (p *JSPNLParser) Group_declaration() (localctx IGroup_declarationContext)
- func (p *JSPNLParser) Label_expression() (localctx ILabel_expressionContext)
- func (p *JSPNLParser) Literal_expression() (localctx ILiteral_expressionContext)
- func (p *JSPNLParser) Node_declaration() (localctx INode_declarationContext)
- func (p *JSPNLParser) Node_options() (localctx INode_optionsContext)
- func (p *JSPNLParser) Ntoken_expression() (localctx INtoken_expressionContext)
- func (p *JSPNLParser) Option_list() (localctx IOption_listContext)
- func (p *JSPNLParser) Option_value() (localctx IOption_valueContext)
- func (p *JSPNLParser) Prog() (localctx IProgContext)
- func (p *JSPNLParser) Reward_declaration() (localctx IReward_declarationContext)
- func (p *JSPNLParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *JSPNLParser) Simple() (localctx ISimpleContext)
- func (p *JSPNLParser) Simple_block() (localctx ISimple_blockContext)
- func (p *JSPNLParser) Statement() (localctx IStatementContext)
- func (p *JSPNLParser) Update_block() (localctx IUpdate_blockContext)
- type Label_expressionContext
- func (s *Label_expressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Label_expressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Label_expressionContext) Expression() IExpressionContext
- func (s *Label_expressionContext) GetId() antlr.Token
- func (s *Label_expressionContext) GetParser() antlr.Parser
- func (s *Label_expressionContext) GetRuleContext() antlr.RuleContext
- func (s *Label_expressionContext) ID() antlr.TerminalNode
- func (*Label_expressionContext) IsLabel_expressionContext()
- func (s *Label_expressionContext) SetId(v antlr.Token)
- func (s *Label_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Literal_expressionContext
- func (s *Literal_expressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Literal_expressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Literal_expressionContext) FLOAT() antlr.TerminalNode
- func (s *Literal_expressionContext) GetLittype() int
- func (s *Literal_expressionContext) GetParser() antlr.Parser
- func (s *Literal_expressionContext) GetRuleContext() antlr.RuleContext
- func (s *Literal_expressionContext) GetVal() antlr.Token
- func (s *Literal_expressionContext) INT() antlr.TerminalNode
- func (*Literal_expressionContext) IsLiteral_expressionContext()
- func (s *Literal_expressionContext) LOGICAL() antlr.TerminalNode
- func (s *Literal_expressionContext) STRING() antlr.TerminalNode
- func (s *Literal_expressionContext) SetLittype(v int)
- func (s *Literal_expressionContext) SetVal(v antlr.Token)
- func (s *Literal_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type NetBuilder
- type Node_declarationContext
- func (s *Node_declarationContext) AllID() []antlr.TerminalNode
- func (s *Node_declarationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Node_declarationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Node_declarationContext) GetId() antlr.Token
- func (s *Node_declarationContext) GetNode() antlr.Token
- func (s *Node_declarationContext) GetParser() antlr.Parser
- func (s *Node_declarationContext) GetRuleContext() antlr.RuleContext
- func (s *Node_declarationContext) ID(i int) antlr.TerminalNode
- func (*Node_declarationContext) IsNode_declarationContext()
- func (s *Node_declarationContext) Node_options() INode_optionsContext
- func (s *Node_declarationContext) SetId(v antlr.Token)
- func (s *Node_declarationContext) SetNode(v antlr.Token)
- func (s *Node_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *Node_declarationContext) Update_block() IUpdate_blockContext
- type Node_optionsContext
- func (s *Node_optionsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Node_optionsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Node_optionsContext) GetParser() antlr.Parser
- func (s *Node_optionsContext) GetRuleContext() antlr.RuleContext
- func (*Node_optionsContext) IsNode_optionsContext()
- func (s *Node_optionsContext) Option_list() IOption_listContext
- func (s *Node_optionsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ntoken_expressionContext
- func (s *Ntoken_expressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Ntoken_expressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Ntoken_expressionContext) GetId() antlr.Token
- func (s *Ntoken_expressionContext) GetParser() antlr.Parser
- func (s *Ntoken_expressionContext) GetRuleContext() antlr.RuleContext
- func (s *Ntoken_expressionContext) ID() antlr.TerminalNode
- func (*Ntoken_expressionContext) IsNtoken_expressionContext()
- func (s *Ntoken_expressionContext) SetId(v antlr.Token)
- func (s *Ntoken_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Option_listContext
- func (s *Option_listContext) AllOption_list() []IOption_listContext
- func (s *Option_listContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Option_listContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Option_listContext) GetParser() antlr.Parser
- func (s *Option_listContext) GetRuleContext() antlr.RuleContext
- func (*Option_listContext) IsOption_listContext()
- func (s *Option_listContext) Option_list(i int) IOption_listContext
- func (s *Option_listContext) Option_value() IOption_valueContext
- func (s *Option_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Option_valueContext
- func (s *Option_valueContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Option_valueContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Option_valueContext) GetParser() antlr.Parser
- func (s *Option_valueContext) GetRuleContext() antlr.RuleContext
- func (*Option_valueContext) IsOption_valueContext()
- func (s *Option_valueContext) Label_expression() ILabel_expressionContext
- func (s *Option_valueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type PNListener
- func (l *PNListener) EnterDeclaration(c *DeclarationContext)
- func (l *PNListener) EnterFunction_expression(c *Function_expressionContext)
- func (l *PNListener) EnterUpdate_block(c *Update_blockContext)
- func (l *PNListener) ExitArc_declaration(c *Arc_declarationContext)
- func (l *PNListener) ExitArgs_value(c *Args_valueContext)
- func (l *PNListener) ExitAssign_expression(c *Assign_expressionContext)
- func (l *PNListener) ExitEnable_expression(c *Enable_expressionContext)
- func (l *PNListener) ExitExpression(c *ExpressionContext)
- func (l *PNListener) ExitFunction_expression(ctx *Function_expressionContext)
- func (l *PNListener) ExitGroup_declaration(c *Group_declarationContext)
- func (l *PNListener) ExitLabel_expression(c *Label_expressionContext)
- func (l *PNListener) ExitLiteral_expression(c *Literal_expressionContext)
- func (l *PNListener) ExitNode_declaration(c *Node_declarationContext)
- func (l *PNListener) ExitNtoken_expression(c *Ntoken_expressionContext)
- func (l *PNListener) ExitReward_declaration(c *Reward_declarationContext)
- func (l *PNListener) ExitUpdate_block(c *Update_blockContext)
- func (l *PNListener) VisitErrorNode(node antlr.ErrorNode)
- type PNNode
- type ProgContext
- func (s *ProgContext) AllNEWLINE() []antlr.TerminalNode
- func (s *ProgContext) AllStatement() []IStatementContext
- 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) NEWLINE(i int) antlr.TerminalNode
- func (s *ProgContext) Statement(i int) IStatementContext
- func (s *ProgContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Reward_declarationContext
- func (s *Reward_declarationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Reward_declarationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Reward_declarationContext) Expression() IExpressionContext
- func (s *Reward_declarationContext) GetId() antlr.Token
- func (s *Reward_declarationContext) GetParser() antlr.Parser
- func (s *Reward_declarationContext) GetRuleContext() antlr.RuleContext
- func (s *Reward_declarationContext) ID() antlr.TerminalNode
- func (*Reward_declarationContext) IsReward_declarationContext()
- func (s *Reward_declarationContext) SetId(v antlr.Token)
- func (s *Reward_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SimpleContext
- func (s *SimpleContext) Assign_expression() IAssign_expressionContext
- func (s *SimpleContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SimpleContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SimpleContext) Expression() IExpressionContext
- func (s *SimpleContext) GetParser() antlr.Parser
- func (s *SimpleContext) GetRuleContext() antlr.RuleContext
- func (*SimpleContext) IsSimpleContext()
- func (s *SimpleContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Simple_blockContext
- func (s *Simple_blockContext) AllNEWLINE() []antlr.TerminalNode
- func (s *Simple_blockContext) AllSimple() []ISimpleContext
- func (s *Simple_blockContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Simple_blockContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Simple_blockContext) GetParser() antlr.Parser
- func (s *Simple_blockContext) GetRuleContext() antlr.RuleContext
- func (*Simple_blockContext) IsSimple_blockContext()
- func (s *Simple_blockContext) NEWLINE(i int) antlr.TerminalNode
- func (s *Simple_blockContext) Simple(i int) ISimpleContext
- func (s *Simple_blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StatementContext
- func (s *StatementContext) Declaration() IDeclarationContext
- func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StatementContext) GetParser() antlr.Parser
- func (s *StatementContext) GetRuleContext() antlr.RuleContext
- func (*StatementContext) IsStatementContext()
- func (s *StatementContext) Simple() ISimpleContext
- func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Update_blockContext
- func (s *Update_blockContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Update_blockContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Update_blockContext) GetParser() antlr.Parser
- func (s *Update_blockContext) GetRuleContext() antlr.RuleContext
- func (*Update_blockContext) IsUpdate_blockContext()
- func (s *Update_blockContext) Simple_block() ISimple_blockContext
- func (s *Update_blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
const ( JSPNLLexerT__0 = 1 JSPNLLexerT__1 = 2 JSPNLLexerT__2 = 3 JSPNLLexerT__3 = 4 JSPNLLexerT__4 = 5 JSPNLLexerT__5 = 6 JSPNLLexerT__6 = 7 JSPNLLexerT__7 = 8 JSPNLLexerT__8 = 9 JSPNLLexerT__9 = 10 JSPNLLexerT__10 = 11 JSPNLLexerT__11 = 12 JSPNLLexerT__12 = 13 JSPNLLexerT__13 = 14 JSPNLLexerT__14 = 15 JSPNLLexerT__15 = 16 JSPNLLexerT__16 = 17 JSPNLLexerT__17 = 18 JSPNLLexerT__18 = 19 JSPNLLexerT__19 = 20 JSPNLLexerT__20 = 21 JSPNLLexerT__21 = 22 JSPNLLexerT__22 = 23 JSPNLLexerT__23 = 24 JSPNLLexerT__24 = 25 JSPNLLexerT__25 = 26 JSPNLLexerT__26 = 27 JSPNLLexerT__27 = 28 JSPNLLexerT__28 = 29 JSPNLLexerT__29 = 30 JSPNLLexerT__30 = 31 JSPNLLexerT__31 = 32 JSPNLLexerT__32 = 33 JSPNLLexerLOGICAL = 34 JSPNLLexerID = 35 JSPNLLexerINT = 36 JSPNLLexerFLOAT = 37 JSPNLLexerSTRING = 38 JSPNLLexerNEWLINE = 39 JSPNLLexerWS = 40 JSPNLLexerLINE_COMMENT = 41 JSPNLLexerBLOCK_COMMENT = 42 )
JSPNLLexer tokens.
const ( JSPNLParserEOF = antlr.TokenEOF JSPNLParserT__0 = 1 JSPNLParserT__1 = 2 JSPNLParserT__2 = 3 JSPNLParserT__3 = 4 JSPNLParserT__4 = 5 JSPNLParserT__5 = 6 JSPNLParserT__6 = 7 JSPNLParserT__7 = 8 JSPNLParserT__8 = 9 JSPNLParserT__9 = 10 JSPNLParserT__10 = 11 JSPNLParserT__11 = 12 JSPNLParserT__12 = 13 JSPNLParserT__13 = 14 JSPNLParserT__14 = 15 JSPNLParserT__15 = 16 JSPNLParserT__16 = 17 JSPNLParserT__17 = 18 JSPNLParserT__18 = 19 JSPNLParserT__19 = 20 JSPNLParserT__20 = 21 JSPNLParserT__21 = 22 JSPNLParserT__22 = 23 JSPNLParserT__23 = 24 JSPNLParserT__24 = 25 JSPNLParserT__25 = 26 JSPNLParserT__26 = 27 JSPNLParserT__27 = 28 JSPNLParserT__28 = 29 JSPNLParserT__29 = 30 JSPNLParserT__30 = 31 JSPNLParserT__31 = 32 JSPNLParserT__32 = 33 JSPNLParserLOGICAL = 34 JSPNLParserID = 35 JSPNLParserINT = 36 JSPNLParserFLOAT = 37 JSPNLParserSTRING = 38 JSPNLParserNEWLINE = 39 JSPNLParserWS = 40 JSPNLParserLINE_COMMENT = 41 JSPNLParserBLOCK_COMMENT = 42 )
JSPNLParser tokens.
const ( JSPNLParserRULE_prog = 0 JSPNLParserRULE_statement = 1 JSPNLParserRULE_declaration = 2 JSPNLParserRULE_node_declaration = 3 JSPNLParserRULE_arc_declaration = 4 JSPNLParserRULE_reward_declaration = 5 JSPNLParserRULE_group_declaration = 6 JSPNLParserRULE_node_options = 7 JSPNLParserRULE_option_list = 8 JSPNLParserRULE_option_value = 9 JSPNLParserRULE_label_expression = 10 JSPNLParserRULE_update_block = 11 JSPNLParserRULE_simple_block = 12 JSPNLParserRULE_simple = 13 JSPNLParserRULE_assign_expression = 14 JSPNLParserRULE_expression = 15 JSPNLParserRULE_function_expression = 16 JSPNLParserRULE_function_args = 17 JSPNLParserRULE_args_list = 18 JSPNLParserRULE_args_value = 19 JSPNLParserRULE_ntoken_expression = 20 JSPNLParserRULE_enable_expression = 21 JSPNLParserRULE_literal_expression = 22 )
JSPNLParser rules.
Variables ¶
This section is empty.
Functions ¶
func PNreadFromFile ¶
Types ¶
type ASTAssignNToken ¶
type ASTAssignNToken struct {
// contains filtered or unexported fields
}
func (*ASTAssignNToken) EvalWithMark ¶
type ASTBinOp ¶
type ASTBinOp struct {
// contains filtered or unexported fields
}
The structure of binary operator. operators: plus, minus, mul, idiv, div operators: and, or operators: eq, neq, lt, lte, gt, gte operators: powf, max, min TODO: mod operator should be implemented
type ASTDist ¶
type ASTDist struct {
// contains filtered or unexported fields
}
The structure of ASTDist
type ASTEnableCond ¶
type ASTEnableCond struct {
// contains filtered or unexported fields
}
func (*ASTEnableCond) EvalWithMark ¶
type ASTEnv ¶
type ASTEnv map[string]interface{}
The type for ASTEnv. This is the environment to store the assinged values.
type ASTExpr ¶
type ASTExpr interface { Eval(env ASTEnv) (*ASTValue, error) EvalWithMark(net *petrinet.Net, mark []petrinet.MarkInt, env ASTEnv) (*ASTValue, error) }
func NewASTAssignNToken ¶
func NewASTEnableCond ¶
func NewASTMultiOp ¶
The function for multi args. This is only available for plus, mul, and, or, max, min
func NewASTNToken ¶
func NewASTTriOp ¶
func NewASTUnaryOp ¶
type ASTNToken ¶
type ASTNToken struct {
// contains filtered or unexported fields
}
func (*ASTNToken) EvalWithMark ¶
type ASTTriOp ¶
type ASTTriOp struct {
// contains filtered or unexported fields
}
The structure of trinary operator operators: ite (if-then-else)
type ASTUnaryOp ¶
type ASTUnaryOp struct {
// contains filtered or unexported fields
}
The structure of unary operator. Operators: uplus, uminus, not, expf, logf, sqrtf
func (*ASTUnaryOp) EvalWithMark ¶
type ASTValue ¶
type ASTValue struct {
// contains filtered or unexported fields
}
The structure to represent the AST value. The value can take ASTInt, ASTBool, ASTFloat, ASTString.
func (*ASTValue) Eval ¶
The Eval function for ASTValue. *ASTValue is one of ASTExpr. The definition of ASTValue is in astvalue.go
func (*ASTValue) EvalWithMark ¶
type ASTVar ¶
type ASTVar struct {
// contains filtered or unexported fields
}
The variable for ASTExpr
type Arc_declarationContext ¶
type Arc_declarationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewArc_declarationContext ¶
func NewArc_declarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Arc_declarationContext
func NewEmptyArc_declarationContext ¶
func NewEmptyArc_declarationContext() *Arc_declarationContext
func (*Arc_declarationContext) AllID ¶
func (s *Arc_declarationContext) AllID() []antlr.TerminalNode
func (*Arc_declarationContext) EnterRule ¶
func (s *Arc_declarationContext) EnterRule(listener antlr.ParseTreeListener)
func (*Arc_declarationContext) ExitRule ¶
func (s *Arc_declarationContext) ExitRule(listener antlr.ParseTreeListener)
func (*Arc_declarationContext) GetArctype ¶
func (s *Arc_declarationContext) GetArctype() antlr.Token
func (*Arc_declarationContext) GetDestName ¶
func (s *Arc_declarationContext) GetDestName() antlr.Token
func (*Arc_declarationContext) GetParser ¶
func (s *Arc_declarationContext) GetParser() antlr.Parser
func (*Arc_declarationContext) GetRuleContext ¶
func (s *Arc_declarationContext) GetRuleContext() antlr.RuleContext
func (*Arc_declarationContext) GetSrcName ¶
func (s *Arc_declarationContext) GetSrcName() antlr.Token
func (*Arc_declarationContext) ID ¶
func (s *Arc_declarationContext) ID(i int) antlr.TerminalNode
func (*Arc_declarationContext) IsArc_declarationContext ¶
func (*Arc_declarationContext) IsArc_declarationContext()
func (*Arc_declarationContext) Node_options ¶
func (s *Arc_declarationContext) Node_options() INode_optionsContext
func (*Arc_declarationContext) SetArctype ¶
func (s *Arc_declarationContext) SetArctype(v antlr.Token)
func (*Arc_declarationContext) SetDestName ¶
func (s *Arc_declarationContext) SetDestName(v antlr.Token)
func (*Arc_declarationContext) SetSrcName ¶
func (s *Arc_declarationContext) SetSrcName(v antlr.Token)
func (*Arc_declarationContext) ToStringTree ¶
func (s *Arc_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Args_listContext ¶
type Args_listContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewArgs_listContext ¶
func NewArgs_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Args_listContext
func NewEmptyArgs_listContext ¶
func NewEmptyArgs_listContext() *Args_listContext
func (*Args_listContext) AllArgs_list ¶
func (s *Args_listContext) AllArgs_list() []IArgs_listContext
func (*Args_listContext) Args_list ¶
func (s *Args_listContext) Args_list(i int) IArgs_listContext
func (*Args_listContext) Args_value ¶
func (s *Args_listContext) Args_value() IArgs_valueContext
func (*Args_listContext) EnterRule ¶
func (s *Args_listContext) EnterRule(listener antlr.ParseTreeListener)
func (*Args_listContext) ExitRule ¶
func (s *Args_listContext) ExitRule(listener antlr.ParseTreeListener)
func (*Args_listContext) GetParser ¶
func (s *Args_listContext) GetParser() antlr.Parser
func (*Args_listContext) GetRuleContext ¶
func (s *Args_listContext) GetRuleContext() antlr.RuleContext
func (*Args_listContext) IsArgs_listContext ¶
func (*Args_listContext) IsArgs_listContext()
func (*Args_listContext) ToStringTree ¶
func (s *Args_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Args_valueContext ¶
type Args_valueContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewArgs_valueContext ¶
func NewArgs_valueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Args_valueContext
func NewEmptyArgs_valueContext ¶
func NewEmptyArgs_valueContext() *Args_valueContext
func (*Args_valueContext) EnterRule ¶
func (s *Args_valueContext) EnterRule(listener antlr.ParseTreeListener)
func (*Args_valueContext) ExitRule ¶
func (s *Args_valueContext) ExitRule(listener antlr.ParseTreeListener)
func (*Args_valueContext) Expression ¶
func (s *Args_valueContext) Expression() IExpressionContext
func (*Args_valueContext) GetParser ¶
func (s *Args_valueContext) GetParser() antlr.Parser
func (*Args_valueContext) GetRuleContext ¶
func (s *Args_valueContext) GetRuleContext() antlr.RuleContext
func (*Args_valueContext) IsArgs_valueContext ¶
func (*Args_valueContext) IsArgs_valueContext()
func (*Args_valueContext) ToStringTree ¶
func (s *Args_valueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Assign_expressionContext ¶
type Assign_expressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAssign_expressionContext ¶
func NewAssign_expressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Assign_expressionContext
func NewEmptyAssign_expressionContext ¶
func NewEmptyAssign_expressionContext() *Assign_expressionContext
func (*Assign_expressionContext) EnterRule ¶
func (s *Assign_expressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*Assign_expressionContext) ExitRule ¶
func (s *Assign_expressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*Assign_expressionContext) Expression ¶
func (s *Assign_expressionContext) Expression() IExpressionContext
func (*Assign_expressionContext) GetExprtype ¶
func (s *Assign_expressionContext) GetExprtype() int
func (*Assign_expressionContext) GetId ¶
func (s *Assign_expressionContext) GetId() antlr.Token
func (*Assign_expressionContext) GetParser ¶
func (s *Assign_expressionContext) GetParser() antlr.Parser
func (*Assign_expressionContext) GetRuleContext ¶
func (s *Assign_expressionContext) GetRuleContext() antlr.RuleContext
func (*Assign_expressionContext) ID ¶
func (s *Assign_expressionContext) ID() antlr.TerminalNode
func (*Assign_expressionContext) IsAssign_expressionContext ¶
func (*Assign_expressionContext) IsAssign_expressionContext()
func (*Assign_expressionContext) Ntoken_expression ¶
func (s *Assign_expressionContext) Ntoken_expression() INtoken_expressionContext
func (*Assign_expressionContext) SetExprtype ¶
func (s *Assign_expressionContext) SetExprtype(v int)
func (*Assign_expressionContext) SetId ¶
func (s *Assign_expressionContext) SetId(v antlr.Token)
func (*Assign_expressionContext) ToStringTree ¶
func (s *Assign_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BaseJSPNLListener ¶
type BaseJSPNLListener struct{}
BaseJSPNLListener is a complete listener for a parse tree produced by JSPNLParser.
func (*BaseJSPNLListener) EnterArc_declaration ¶
func (s *BaseJSPNLListener) EnterArc_declaration(ctx *Arc_declarationContext)
EnterArc_declaration is called when production arc_declaration is entered.
func (*BaseJSPNLListener) EnterArgs_list ¶
func (s *BaseJSPNLListener) EnterArgs_list(ctx *Args_listContext)
EnterArgs_list is called when production args_list is entered.
func (*BaseJSPNLListener) EnterArgs_value ¶
func (s *BaseJSPNLListener) EnterArgs_value(ctx *Args_valueContext)
EnterArgs_value is called when production args_value is entered.
func (*BaseJSPNLListener) EnterAssign_expression ¶
func (s *BaseJSPNLListener) EnterAssign_expression(ctx *Assign_expressionContext)
EnterAssign_expression is called when production assign_expression is entered.
func (*BaseJSPNLListener) EnterDeclaration ¶
func (s *BaseJSPNLListener) EnterDeclaration(ctx *DeclarationContext)
EnterDeclaration is called when production declaration is entered.
func (*BaseJSPNLListener) EnterEnable_expression ¶
func (s *BaseJSPNLListener) EnterEnable_expression(ctx *Enable_expressionContext)
EnterEnable_expression is called when production enable_expression is entered.
func (*BaseJSPNLListener) EnterEveryRule ¶
func (s *BaseJSPNLListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseJSPNLListener) EnterExpression ¶
func (s *BaseJSPNLListener) EnterExpression(ctx *ExpressionContext)
EnterExpression is called when production expression is entered.
func (*BaseJSPNLListener) EnterFunction_args ¶
func (s *BaseJSPNLListener) EnterFunction_args(ctx *Function_argsContext)
EnterFunction_args is called when production function_args is entered.
func (*BaseJSPNLListener) EnterFunction_expression ¶
func (s *BaseJSPNLListener) EnterFunction_expression(ctx *Function_expressionContext)
EnterFunction_expression is called when production function_expression is entered.
func (*BaseJSPNLListener) EnterGroup_declaration ¶ added in v0.10.0
func (s *BaseJSPNLListener) EnterGroup_declaration(ctx *Group_declarationContext)
EnterGroup_declaration is called when production group_declaration is entered.
func (*BaseJSPNLListener) EnterLabel_expression ¶
func (s *BaseJSPNLListener) EnterLabel_expression(ctx *Label_expressionContext)
EnterLabel_expression is called when production label_expression is entered.
func (*BaseJSPNLListener) EnterLiteral_expression ¶
func (s *BaseJSPNLListener) EnterLiteral_expression(ctx *Literal_expressionContext)
EnterLiteral_expression is called when production literal_expression is entered.
func (*BaseJSPNLListener) EnterNode_declaration ¶
func (s *BaseJSPNLListener) EnterNode_declaration(ctx *Node_declarationContext)
EnterNode_declaration is called when production node_declaration is entered.
func (*BaseJSPNLListener) EnterNode_options ¶
func (s *BaseJSPNLListener) EnterNode_options(ctx *Node_optionsContext)
EnterNode_options is called when production node_options is entered.
func (*BaseJSPNLListener) EnterNtoken_expression ¶
func (s *BaseJSPNLListener) EnterNtoken_expression(ctx *Ntoken_expressionContext)
EnterNtoken_expression is called when production ntoken_expression is entered.
func (*BaseJSPNLListener) EnterOption_list ¶
func (s *BaseJSPNLListener) EnterOption_list(ctx *Option_listContext)
EnterOption_list is called when production option_list is entered.
func (*BaseJSPNLListener) EnterOption_value ¶
func (s *BaseJSPNLListener) EnterOption_value(ctx *Option_valueContext)
EnterOption_value is called when production option_value is entered.
func (*BaseJSPNLListener) EnterProg ¶
func (s *BaseJSPNLListener) EnterProg(ctx *ProgContext)
EnterProg is called when production prog is entered.
func (*BaseJSPNLListener) EnterReward_declaration ¶
func (s *BaseJSPNLListener) EnterReward_declaration(ctx *Reward_declarationContext)
EnterReward_declaration is called when production reward_declaration is entered.
func (*BaseJSPNLListener) EnterSimple ¶
func (s *BaseJSPNLListener) EnterSimple(ctx *SimpleContext)
EnterSimple is called when production simple is entered.
func (*BaseJSPNLListener) EnterSimple_block ¶
func (s *BaseJSPNLListener) EnterSimple_block(ctx *Simple_blockContext)
EnterSimple_block is called when production simple_block is entered.
func (*BaseJSPNLListener) EnterStatement ¶
func (s *BaseJSPNLListener) EnterStatement(ctx *StatementContext)
EnterStatement is called when production statement is entered.
func (*BaseJSPNLListener) EnterUpdate_block ¶
func (s *BaseJSPNLListener) EnterUpdate_block(ctx *Update_blockContext)
EnterUpdate_block is called when production update_block is entered.
func (*BaseJSPNLListener) ExitArc_declaration ¶
func (s *BaseJSPNLListener) ExitArc_declaration(ctx *Arc_declarationContext)
ExitArc_declaration is called when production arc_declaration is exited.
func (*BaseJSPNLListener) ExitArgs_list ¶
func (s *BaseJSPNLListener) ExitArgs_list(ctx *Args_listContext)
ExitArgs_list is called when production args_list is exited.
func (*BaseJSPNLListener) ExitArgs_value ¶
func (s *BaseJSPNLListener) ExitArgs_value(ctx *Args_valueContext)
ExitArgs_value is called when production args_value is exited.
func (*BaseJSPNLListener) ExitAssign_expression ¶
func (s *BaseJSPNLListener) ExitAssign_expression(ctx *Assign_expressionContext)
ExitAssign_expression is called when production assign_expression is exited.
func (*BaseJSPNLListener) ExitDeclaration ¶
func (s *BaseJSPNLListener) ExitDeclaration(ctx *DeclarationContext)
ExitDeclaration is called when production declaration is exited.
func (*BaseJSPNLListener) ExitEnable_expression ¶
func (s *BaseJSPNLListener) ExitEnable_expression(ctx *Enable_expressionContext)
ExitEnable_expression is called when production enable_expression is exited.
func (*BaseJSPNLListener) ExitEveryRule ¶
func (s *BaseJSPNLListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseJSPNLListener) ExitExpression ¶
func (s *BaseJSPNLListener) ExitExpression(ctx *ExpressionContext)
ExitExpression is called when production expression is exited.
func (*BaseJSPNLListener) ExitFunction_args ¶
func (s *BaseJSPNLListener) ExitFunction_args(ctx *Function_argsContext)
ExitFunction_args is called when production function_args is exited.
func (*BaseJSPNLListener) ExitFunction_expression ¶
func (s *BaseJSPNLListener) ExitFunction_expression(ctx *Function_expressionContext)
ExitFunction_expression is called when production function_expression is exited.
func (*BaseJSPNLListener) ExitGroup_declaration ¶ added in v0.10.0
func (s *BaseJSPNLListener) ExitGroup_declaration(ctx *Group_declarationContext)
ExitGroup_declaration is called when production group_declaration is exited.
func (*BaseJSPNLListener) ExitLabel_expression ¶
func (s *BaseJSPNLListener) ExitLabel_expression(ctx *Label_expressionContext)
ExitLabel_expression is called when production label_expression is exited.
func (*BaseJSPNLListener) ExitLiteral_expression ¶
func (s *BaseJSPNLListener) ExitLiteral_expression(ctx *Literal_expressionContext)
ExitLiteral_expression is called when production literal_expression is exited.
func (*BaseJSPNLListener) ExitNode_declaration ¶
func (s *BaseJSPNLListener) ExitNode_declaration(ctx *Node_declarationContext)
ExitNode_declaration is called when production node_declaration is exited.
func (*BaseJSPNLListener) ExitNode_options ¶
func (s *BaseJSPNLListener) ExitNode_options(ctx *Node_optionsContext)
ExitNode_options is called when production node_options is exited.
func (*BaseJSPNLListener) ExitNtoken_expression ¶
func (s *BaseJSPNLListener) ExitNtoken_expression(ctx *Ntoken_expressionContext)
ExitNtoken_expression is called when production ntoken_expression is exited.
func (*BaseJSPNLListener) ExitOption_list ¶
func (s *BaseJSPNLListener) ExitOption_list(ctx *Option_listContext)
ExitOption_list is called when production option_list is exited.
func (*BaseJSPNLListener) ExitOption_value ¶
func (s *BaseJSPNLListener) ExitOption_value(ctx *Option_valueContext)
ExitOption_value is called when production option_value is exited.
func (*BaseJSPNLListener) ExitProg ¶
func (s *BaseJSPNLListener) ExitProg(ctx *ProgContext)
ExitProg is called when production prog is exited.
func (*BaseJSPNLListener) ExitReward_declaration ¶
func (s *BaseJSPNLListener) ExitReward_declaration(ctx *Reward_declarationContext)
ExitReward_declaration is called when production reward_declaration is exited.
func (*BaseJSPNLListener) ExitSimple ¶
func (s *BaseJSPNLListener) ExitSimple(ctx *SimpleContext)
ExitSimple is called when production simple is exited.
func (*BaseJSPNLListener) ExitSimple_block ¶
func (s *BaseJSPNLListener) ExitSimple_block(ctx *Simple_blockContext)
ExitSimple_block is called when production simple_block is exited.
func (*BaseJSPNLListener) ExitStatement ¶
func (s *BaseJSPNLListener) ExitStatement(ctx *StatementContext)
ExitStatement is called when production statement is exited.
func (*BaseJSPNLListener) ExitUpdate_block ¶
func (s *BaseJSPNLListener) ExitUpdate_block(ctx *Update_blockContext)
ExitUpdate_block is called when production update_block is exited.
func (*BaseJSPNLListener) VisitErrorNode ¶
func (s *BaseJSPNLListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseJSPNLListener) VisitTerminal ¶
func (s *BaseJSPNLListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type DeclarationContext ¶
type DeclarationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDeclarationContext ¶
func NewDeclarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DeclarationContext
func NewEmptyDeclarationContext ¶
func NewEmptyDeclarationContext() *DeclarationContext
func (*DeclarationContext) Arc_declaration ¶
func (s *DeclarationContext) Arc_declaration() IArc_declarationContext
func (*DeclarationContext) EnterRule ¶
func (s *DeclarationContext) EnterRule(listener antlr.ParseTreeListener)
func (*DeclarationContext) ExitRule ¶
func (s *DeclarationContext) ExitRule(listener antlr.ParseTreeListener)
func (*DeclarationContext) GetParser ¶
func (s *DeclarationContext) GetParser() antlr.Parser
func (*DeclarationContext) GetRuleContext ¶
func (s *DeclarationContext) GetRuleContext() antlr.RuleContext
func (*DeclarationContext) Group_declaration ¶ added in v0.10.0
func (s *DeclarationContext) Group_declaration() IGroup_declarationContext
func (*DeclarationContext) IsDeclarationContext ¶
func (*DeclarationContext) IsDeclarationContext()
func (*DeclarationContext) Node_declaration ¶
func (s *DeclarationContext) Node_declaration() INode_declarationContext
func (*DeclarationContext) Reward_declaration ¶
func (s *DeclarationContext) Reward_declaration() IReward_declarationContext
func (*DeclarationContext) ToStringTree ¶
func (s *DeclarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Enable_expressionContext ¶
type Enable_expressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEnable_expressionContext ¶
func NewEmptyEnable_expressionContext() *Enable_expressionContext
func NewEnable_expressionContext ¶
func NewEnable_expressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Enable_expressionContext
func (*Enable_expressionContext) EnterRule ¶
func (s *Enable_expressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*Enable_expressionContext) ExitRule ¶
func (s *Enable_expressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*Enable_expressionContext) GetId ¶
func (s *Enable_expressionContext) GetId() antlr.Token
func (*Enable_expressionContext) GetParser ¶
func (s *Enable_expressionContext) GetParser() antlr.Parser
func (*Enable_expressionContext) GetRuleContext ¶
func (s *Enable_expressionContext) GetRuleContext() antlr.RuleContext
func (*Enable_expressionContext) ID ¶
func (s *Enable_expressionContext) ID() antlr.TerminalNode
func (*Enable_expressionContext) IsEnable_expressionContext ¶
func (*Enable_expressionContext) IsEnable_expressionContext()
func (*Enable_expressionContext) SetId ¶
func (s *Enable_expressionContext) SetId(v antlr.Token)
func (*Enable_expressionContext) ToStringTree ¶
func (s *Enable_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ExpressionContext ¶
type ExpressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyExpressionContext ¶
func NewEmptyExpressionContext() *ExpressionContext
func NewExpressionContext ¶
func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext
func (*ExpressionContext) AllExpression ¶
func (s *ExpressionContext) AllExpression() []IExpressionContext
func (*ExpressionContext) Enable_expression ¶
func (s *ExpressionContext) Enable_expression() IEnable_expressionContext
func (*ExpressionContext) EnterRule ¶
func (s *ExpressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*ExpressionContext) ExitRule ¶
func (s *ExpressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*ExpressionContext) Expression ¶
func (s *ExpressionContext) Expression(i int) IExpressionContext
func (*ExpressionContext) Function_expression ¶
func (s *ExpressionContext) Function_expression() IFunction_expressionContext
func (*ExpressionContext) GetId ¶
func (s *ExpressionContext) GetId() antlr.Token
func (*ExpressionContext) GetNodetype ¶
func (s *ExpressionContext) GetNodetype() int
func (*ExpressionContext) GetOp ¶
func (s *ExpressionContext) GetOp() antlr.Token
func (*ExpressionContext) GetParser ¶
func (s *ExpressionContext) GetParser() antlr.Parser
func (*ExpressionContext) GetRuleContext ¶
func (s *ExpressionContext) GetRuleContext() antlr.RuleContext
func (*ExpressionContext) ID ¶
func (s *ExpressionContext) ID() antlr.TerminalNode
func (*ExpressionContext) IsExpressionContext ¶
func (*ExpressionContext) IsExpressionContext()
func (*ExpressionContext) Literal_expression ¶
func (s *ExpressionContext) Literal_expression() ILiteral_expressionContext
func (*ExpressionContext) Ntoken_expression ¶
func (s *ExpressionContext) Ntoken_expression() INtoken_expressionContext
func (*ExpressionContext) SetId ¶
func (s *ExpressionContext) SetId(v antlr.Token)
func (*ExpressionContext) SetNodetype ¶
func (s *ExpressionContext) SetNodetype(v int)
func (*ExpressionContext) SetOp ¶
func (s *ExpressionContext) SetOp(v antlr.Token)
func (*ExpressionContext) ToStringTree ¶
func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Function_argsContext ¶
type Function_argsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFunction_argsContext ¶
func NewEmptyFunction_argsContext() *Function_argsContext
func NewFunction_argsContext ¶
func NewFunction_argsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Function_argsContext
func (*Function_argsContext) Args_list ¶
func (s *Function_argsContext) Args_list() IArgs_listContext
func (*Function_argsContext) EnterRule ¶
func (s *Function_argsContext) EnterRule(listener antlr.ParseTreeListener)
func (*Function_argsContext) ExitRule ¶
func (s *Function_argsContext) ExitRule(listener antlr.ParseTreeListener)
func (*Function_argsContext) GetParser ¶
func (s *Function_argsContext) GetParser() antlr.Parser
func (*Function_argsContext) GetRuleContext ¶
func (s *Function_argsContext) GetRuleContext() antlr.RuleContext
func (*Function_argsContext) IsFunction_argsContext ¶
func (*Function_argsContext) IsFunction_argsContext()
func (*Function_argsContext) Option_list ¶
func (s *Function_argsContext) Option_list() IOption_listContext
func (*Function_argsContext) ToStringTree ¶
func (s *Function_argsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Function_expressionContext ¶
type Function_expressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFunction_expressionContext ¶
func NewEmptyFunction_expressionContext() *Function_expressionContext
func NewFunction_expressionContext ¶
func NewFunction_expressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Function_expressionContext
func (*Function_expressionContext) EnterRule ¶
func (s *Function_expressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*Function_expressionContext) ExitRule ¶
func (s *Function_expressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*Function_expressionContext) Function_args ¶
func (s *Function_expressionContext) Function_args() IFunction_argsContext
func (*Function_expressionContext) GetId ¶
func (s *Function_expressionContext) GetId() antlr.Token
func (*Function_expressionContext) GetParser ¶
func (s *Function_expressionContext) GetParser() antlr.Parser
func (*Function_expressionContext) GetRuleContext ¶
func (s *Function_expressionContext) GetRuleContext() antlr.RuleContext
func (*Function_expressionContext) ID ¶
func (s *Function_expressionContext) ID() antlr.TerminalNode
func (*Function_expressionContext) IsFunction_expressionContext ¶
func (*Function_expressionContext) IsFunction_expressionContext()
func (*Function_expressionContext) SetId ¶
func (s *Function_expressionContext) SetId(v antlr.Token)
func (*Function_expressionContext) ToStringTree ¶
func (s *Function_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Group_declarationContext ¶ added in v0.10.0
type Group_declarationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyGroup_declarationContext ¶ added in v0.10.0
func NewEmptyGroup_declarationContext() *Group_declarationContext
func NewGroup_declarationContext ¶ added in v0.10.0
func NewGroup_declarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Group_declarationContext
func (*Group_declarationContext) EnterRule ¶ added in v0.10.0
func (s *Group_declarationContext) EnterRule(listener antlr.ParseTreeListener)
func (*Group_declarationContext) ExitRule ¶ added in v0.10.0
func (s *Group_declarationContext) ExitRule(listener antlr.ParseTreeListener)
func (*Group_declarationContext) Expression ¶ added in v0.10.0
func (s *Group_declarationContext) Expression() IExpressionContext
func (*Group_declarationContext) GetId ¶ added in v0.10.0
func (s *Group_declarationContext) GetId() antlr.Token
func (*Group_declarationContext) GetParser ¶ added in v0.10.0
func (s *Group_declarationContext) GetParser() antlr.Parser
func (*Group_declarationContext) GetRuleContext ¶ added in v0.10.0
func (s *Group_declarationContext) GetRuleContext() antlr.RuleContext
func (*Group_declarationContext) ID ¶ added in v0.10.0
func (s *Group_declarationContext) ID() antlr.TerminalNode
func (*Group_declarationContext) IsGroup_declarationContext ¶ added in v0.10.0
func (*Group_declarationContext) IsGroup_declarationContext()
func (*Group_declarationContext) SetId ¶ added in v0.10.0
func (s *Group_declarationContext) SetId(v antlr.Token)
func (*Group_declarationContext) ToStringTree ¶ added in v0.10.0
func (s *Group_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IArc_declarationContext ¶
type IArc_declarationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetArctype returns the arctype token. GetArctype() antlr.Token // GetSrcName returns the srcName token. GetSrcName() antlr.Token // GetDestName returns the destName token. GetDestName() antlr.Token // SetArctype sets the arctype token. SetArctype(antlr.Token) // SetSrcName sets the srcName token. SetSrcName(antlr.Token) // SetDestName sets the destName token. SetDestName(antlr.Token) // IsArc_declarationContext differentiates from other interfaces. IsArc_declarationContext() }
IArc_declarationContext is an interface to support dynamic dispatch.
type IArgs_listContext ¶
type IArgs_listContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsArgs_listContext differentiates from other interfaces. IsArgs_listContext() }
IArgs_listContext is an interface to support dynamic dispatch.
type IArgs_valueContext ¶
type IArgs_valueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsArgs_valueContext differentiates from other interfaces. IsArgs_valueContext() }
IArgs_valueContext is an interface to support dynamic dispatch.
type IAssign_expressionContext ¶
type IAssign_expressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetId returns the id token. GetId() antlr.Token // SetId sets the id token. SetId(antlr.Token) // GetExprtype returns the exprtype attribute. GetExprtype() int // SetExprtype sets the exprtype attribute. SetExprtype(int) // IsAssign_expressionContext differentiates from other interfaces. IsAssign_expressionContext() }
IAssign_expressionContext is an interface to support dynamic dispatch.
type IDeclarationContext ¶
type IDeclarationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDeclarationContext differentiates from other interfaces. IsDeclarationContext() }
IDeclarationContext is an interface to support dynamic dispatch.
type IEnable_expressionContext ¶
type IEnable_expressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetId returns the id token. GetId() antlr.Token // SetId sets the id token. SetId(antlr.Token) // IsEnable_expressionContext differentiates from other interfaces. IsEnable_expressionContext() }
IEnable_expressionContext is an interface to support dynamic dispatch.
type IExpressionContext ¶
type IExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetOp returns the op token. GetOp() antlr.Token // GetId returns the id token. GetId() antlr.Token // SetOp sets the op token. SetOp(antlr.Token) // SetId sets the id token. SetId(antlr.Token) // GetNodetype returns the nodetype attribute. GetNodetype() int // SetNodetype sets the nodetype attribute. SetNodetype(int) // IsExpressionContext differentiates from other interfaces. IsExpressionContext() }
IExpressionContext is an interface to support dynamic dispatch.
type IFunction_argsContext ¶
type IFunction_argsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsFunction_argsContext differentiates from other interfaces. IsFunction_argsContext() }
IFunction_argsContext is an interface to support dynamic dispatch.
type IFunction_expressionContext ¶
type IFunction_expressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetId returns the id token. GetId() antlr.Token // SetId sets the id token. SetId(antlr.Token) // IsFunction_expressionContext differentiates from other interfaces. IsFunction_expressionContext() }
IFunction_expressionContext is an interface to support dynamic dispatch.
type IGroup_declarationContext ¶ added in v0.10.0
type IGroup_declarationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetId returns the id token. GetId() antlr.Token // SetId sets the id token. SetId(antlr.Token) // IsGroup_declarationContext differentiates from other interfaces. IsGroup_declarationContext() }
IGroup_declarationContext is an interface to support dynamic dispatch.
type ILabel_expressionContext ¶
type ILabel_expressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetId returns the id token. GetId() antlr.Token // SetId sets the id token. SetId(antlr.Token) // IsLabel_expressionContext differentiates from other interfaces. IsLabel_expressionContext() }
ILabel_expressionContext is an interface to support dynamic dispatch.
type ILiteral_expressionContext ¶
type ILiteral_expressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetVal returns the val token. GetVal() antlr.Token // SetVal sets the val token. SetVal(antlr.Token) // GetLittype returns the littype attribute. GetLittype() int // SetLittype sets the littype attribute. SetLittype(int) // IsLiteral_expressionContext differentiates from other interfaces. IsLiteral_expressionContext() }
ILiteral_expressionContext is an interface to support dynamic dispatch.
type INode_declarationContext ¶
type INode_declarationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetNode returns the node token. GetNode() antlr.Token // GetId returns the id token. GetId() antlr.Token // SetNode sets the node token. SetNode(antlr.Token) // SetId sets the id token. SetId(antlr.Token) // IsNode_declarationContext differentiates from other interfaces. IsNode_declarationContext() }
INode_declarationContext is an interface to support dynamic dispatch.
type INode_optionsContext ¶
type INode_optionsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsNode_optionsContext differentiates from other interfaces. IsNode_optionsContext() }
INode_optionsContext is an interface to support dynamic dispatch.
type INtoken_expressionContext ¶
type INtoken_expressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetId returns the id token. GetId() antlr.Token // SetId sets the id token. SetId(antlr.Token) // IsNtoken_expressionContext differentiates from other interfaces. IsNtoken_expressionContext() }
INtoken_expressionContext is an interface to support dynamic dispatch.
type IOption_listContext ¶
type IOption_listContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsOption_listContext differentiates from other interfaces. IsOption_listContext() }
IOption_listContext is an interface to support dynamic dispatch.
type IOption_valueContext ¶
type IOption_valueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsOption_valueContext differentiates from other interfaces. IsOption_valueContext() }
IOption_valueContext 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 IReward_declarationContext ¶
type IReward_declarationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetId returns the id token. GetId() antlr.Token // SetId sets the id token. SetId(antlr.Token) // IsReward_declarationContext differentiates from other interfaces. IsReward_declarationContext() }
IReward_declarationContext is an interface to support dynamic dispatch.
type ISimpleContext ¶
type ISimpleContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSimpleContext differentiates from other interfaces. IsSimpleContext() }
ISimpleContext is an interface to support dynamic dispatch.
type ISimple_blockContext ¶
type ISimple_blockContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSimple_blockContext differentiates from other interfaces. IsSimple_blockContext() }
ISimple_blockContext 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 IUpdate_blockContext ¶
type IUpdate_blockContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsUpdate_blockContext differentiates from other interfaces. IsUpdate_blockContext() }
IUpdate_blockContext is an interface to support dynamic dispatch.
type JSPNLLexer ¶
func NewJSPNLLexer ¶
func NewJSPNLLexer(input antlr.CharStream) *JSPNLLexer
type JSPNLListener ¶
type JSPNLListener interface { antlr.ParseTreeListener // EnterProg is called when entering the prog production. EnterProg(c *ProgContext) // EnterStatement is called when entering the statement production. EnterStatement(c *StatementContext) // EnterDeclaration is called when entering the declaration production. EnterDeclaration(c *DeclarationContext) // EnterNode_declaration is called when entering the node_declaration production. EnterNode_declaration(c *Node_declarationContext) // EnterArc_declaration is called when entering the arc_declaration production. EnterArc_declaration(c *Arc_declarationContext) // EnterReward_declaration is called when entering the reward_declaration production. EnterReward_declaration(c *Reward_declarationContext) // EnterGroup_declaration is called when entering the group_declaration production. EnterGroup_declaration(c *Group_declarationContext) // EnterNode_options is called when entering the node_options production. EnterNode_options(c *Node_optionsContext) // EnterOption_list is called when entering the option_list production. EnterOption_list(c *Option_listContext) // EnterOption_value is called when entering the option_value production. EnterOption_value(c *Option_valueContext) // EnterLabel_expression is called when entering the label_expression production. EnterLabel_expression(c *Label_expressionContext) // EnterUpdate_block is called when entering the update_block production. EnterUpdate_block(c *Update_blockContext) // EnterSimple_block is called when entering the simple_block production. EnterSimple_block(c *Simple_blockContext) // EnterSimple is called when entering the simple production. EnterSimple(c *SimpleContext) // EnterAssign_expression is called when entering the assign_expression production. EnterAssign_expression(c *Assign_expressionContext) // EnterExpression is called when entering the expression production. EnterExpression(c *ExpressionContext) // EnterFunction_expression is called when entering the function_expression production. EnterFunction_expression(c *Function_expressionContext) // EnterFunction_args is called when entering the function_args production. EnterFunction_args(c *Function_argsContext) // EnterArgs_list is called when entering the args_list production. EnterArgs_list(c *Args_listContext) // EnterArgs_value is called when entering the args_value production. EnterArgs_value(c *Args_valueContext) // EnterNtoken_expression is called when entering the ntoken_expression production. EnterNtoken_expression(c *Ntoken_expressionContext) // EnterEnable_expression is called when entering the enable_expression production. EnterEnable_expression(c *Enable_expressionContext) // EnterLiteral_expression is called when entering the literal_expression production. EnterLiteral_expression(c *Literal_expressionContext) // ExitProg is called when exiting the prog production. ExitProg(c *ProgContext) // ExitStatement is called when exiting the statement production. ExitStatement(c *StatementContext) // ExitDeclaration is called when exiting the declaration production. ExitDeclaration(c *DeclarationContext) // ExitNode_declaration is called when exiting the node_declaration production. ExitNode_declaration(c *Node_declarationContext) // ExitArc_declaration is called when exiting the arc_declaration production. ExitArc_declaration(c *Arc_declarationContext) // ExitReward_declaration is called when exiting the reward_declaration production. ExitReward_declaration(c *Reward_declarationContext) // ExitGroup_declaration is called when exiting the group_declaration production. ExitGroup_declaration(c *Group_declarationContext) // ExitNode_options is called when exiting the node_options production. ExitNode_options(c *Node_optionsContext) // ExitOption_list is called when exiting the option_list production. ExitOption_list(c *Option_listContext) // ExitOption_value is called when exiting the option_value production. ExitOption_value(c *Option_valueContext) // ExitLabel_expression is called when exiting the label_expression production. ExitLabel_expression(c *Label_expressionContext) // ExitUpdate_block is called when exiting the update_block production. ExitUpdate_block(c *Update_blockContext) // ExitSimple_block is called when exiting the simple_block production. ExitSimple_block(c *Simple_blockContext) // ExitSimple is called when exiting the simple production. ExitSimple(c *SimpleContext) // ExitAssign_expression is called when exiting the assign_expression production. ExitAssign_expression(c *Assign_expressionContext) // ExitExpression is called when exiting the expression production. ExitExpression(c *ExpressionContext) // ExitFunction_expression is called when exiting the function_expression production. ExitFunction_expression(c *Function_expressionContext) // ExitFunction_args is called when exiting the function_args production. ExitFunction_args(c *Function_argsContext) // ExitArgs_list is called when exiting the args_list production. ExitArgs_list(c *Args_listContext) // ExitArgs_value is called when exiting the args_value production. ExitArgs_value(c *Args_valueContext) // ExitNtoken_expression is called when exiting the ntoken_expression production. ExitNtoken_expression(c *Ntoken_expressionContext) // ExitEnable_expression is called when exiting the enable_expression production. ExitEnable_expression(c *Enable_expressionContext) // ExitLiteral_expression is called when exiting the literal_expression production. ExitLiteral_expression(c *Literal_expressionContext) }
JSPNLListener is a complete listener for a parse tree produced by JSPNLParser.
type JSPNLParser ¶
type JSPNLParser struct {
*antlr.BaseParser
}
func NewJSPNLParser ¶
func NewJSPNLParser(input antlr.TokenStream) *JSPNLParser
func (*JSPNLParser) Arc_declaration ¶
func (p *JSPNLParser) Arc_declaration() (localctx IArc_declarationContext)
func (*JSPNLParser) Args_list ¶
func (p *JSPNLParser) Args_list() (localctx IArgs_listContext)
func (*JSPNLParser) Args_value ¶
func (p *JSPNLParser) Args_value() (localctx IArgs_valueContext)
func (*JSPNLParser) Assign_expression ¶
func (p *JSPNLParser) Assign_expression() (localctx IAssign_expressionContext)
func (*JSPNLParser) Declaration ¶
func (p *JSPNLParser) Declaration() (localctx IDeclarationContext)
func (*JSPNLParser) Enable_expression ¶
func (p *JSPNLParser) Enable_expression() (localctx IEnable_expressionContext)
func (*JSPNLParser) Expression ¶
func (p *JSPNLParser) Expression() (localctx IExpressionContext)
func (*JSPNLParser) Expression_Sempred ¶
func (p *JSPNLParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*JSPNLParser) Function_args ¶
func (p *JSPNLParser) Function_args() (localctx IFunction_argsContext)
func (*JSPNLParser) Function_expression ¶
func (p *JSPNLParser) Function_expression() (localctx IFunction_expressionContext)
func (*JSPNLParser) Group_declaration ¶ added in v0.10.0
func (p *JSPNLParser) Group_declaration() (localctx IGroup_declarationContext)
func (*JSPNLParser) Label_expression ¶
func (p *JSPNLParser) Label_expression() (localctx ILabel_expressionContext)
func (*JSPNLParser) Literal_expression ¶
func (p *JSPNLParser) Literal_expression() (localctx ILiteral_expressionContext)
func (*JSPNLParser) Node_declaration ¶
func (p *JSPNLParser) Node_declaration() (localctx INode_declarationContext)
func (*JSPNLParser) Node_options ¶
func (p *JSPNLParser) Node_options() (localctx INode_optionsContext)
func (*JSPNLParser) Ntoken_expression ¶
func (p *JSPNLParser) Ntoken_expression() (localctx INtoken_expressionContext)
func (*JSPNLParser) Option_list ¶
func (p *JSPNLParser) Option_list() (localctx IOption_listContext)
func (*JSPNLParser) Option_value ¶
func (p *JSPNLParser) Option_value() (localctx IOption_valueContext)
func (*JSPNLParser) Prog ¶
func (p *JSPNLParser) Prog() (localctx IProgContext)
func (*JSPNLParser) Reward_declaration ¶
func (p *JSPNLParser) Reward_declaration() (localctx IReward_declarationContext)
func (*JSPNLParser) Sempred ¶
func (p *JSPNLParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
func (*JSPNLParser) Simple ¶
func (p *JSPNLParser) Simple() (localctx ISimpleContext)
func (*JSPNLParser) Simple_block ¶
func (p *JSPNLParser) Simple_block() (localctx ISimple_blockContext)
func (*JSPNLParser) Statement ¶
func (p *JSPNLParser) Statement() (localctx IStatementContext)
func (*JSPNLParser) Update_block ¶
func (p *JSPNLParser) Update_block() (localctx IUpdate_blockContext)
type Label_expressionContext ¶
type Label_expressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLabel_expressionContext ¶
func NewEmptyLabel_expressionContext() *Label_expressionContext
func NewLabel_expressionContext ¶
func NewLabel_expressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Label_expressionContext
func (*Label_expressionContext) EnterRule ¶
func (s *Label_expressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*Label_expressionContext) ExitRule ¶
func (s *Label_expressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*Label_expressionContext) Expression ¶
func (s *Label_expressionContext) Expression() IExpressionContext
func (*Label_expressionContext) GetId ¶
func (s *Label_expressionContext) GetId() antlr.Token
func (*Label_expressionContext) GetParser ¶
func (s *Label_expressionContext) GetParser() antlr.Parser
func (*Label_expressionContext) GetRuleContext ¶
func (s *Label_expressionContext) GetRuleContext() antlr.RuleContext
func (*Label_expressionContext) ID ¶
func (s *Label_expressionContext) ID() antlr.TerminalNode
func (*Label_expressionContext) IsLabel_expressionContext ¶
func (*Label_expressionContext) IsLabel_expressionContext()
func (*Label_expressionContext) SetId ¶
func (s *Label_expressionContext) SetId(v antlr.Token)
func (*Label_expressionContext) ToStringTree ¶
func (s *Label_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Literal_expressionContext ¶
type Literal_expressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLiteral_expressionContext ¶
func NewEmptyLiteral_expressionContext() *Literal_expressionContext
func NewLiteral_expressionContext ¶
func NewLiteral_expressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Literal_expressionContext
func (*Literal_expressionContext) EnterRule ¶
func (s *Literal_expressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*Literal_expressionContext) ExitRule ¶
func (s *Literal_expressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*Literal_expressionContext) FLOAT ¶
func (s *Literal_expressionContext) FLOAT() antlr.TerminalNode
func (*Literal_expressionContext) GetLittype ¶
func (s *Literal_expressionContext) GetLittype() int
func (*Literal_expressionContext) GetParser ¶
func (s *Literal_expressionContext) GetParser() antlr.Parser
func (*Literal_expressionContext) GetRuleContext ¶
func (s *Literal_expressionContext) GetRuleContext() antlr.RuleContext
func (*Literal_expressionContext) GetVal ¶
func (s *Literal_expressionContext) GetVal() antlr.Token
func (*Literal_expressionContext) INT ¶
func (s *Literal_expressionContext) INT() antlr.TerminalNode
func (*Literal_expressionContext) IsLiteral_expressionContext ¶
func (*Literal_expressionContext) IsLiteral_expressionContext()
func (*Literal_expressionContext) LOGICAL ¶
func (s *Literal_expressionContext) LOGICAL() antlr.TerminalNode
func (*Literal_expressionContext) STRING ¶
func (s *Literal_expressionContext) STRING() antlr.TerminalNode
func (*Literal_expressionContext) SetLittype ¶
func (s *Literal_expressionContext) SetLittype(v int)
func (*Literal_expressionContext) SetVal ¶
func (s *Literal_expressionContext) SetVal(v antlr.Token)
func (*Literal_expressionContext) ToStringTree ¶
func (s *Literal_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type NetBuilder ¶
type NetBuilder struct {
// contains filtered or unexported fields
}
type Node_declarationContext ¶
type Node_declarationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNode_declarationContext ¶
func NewEmptyNode_declarationContext() *Node_declarationContext
func NewNode_declarationContext ¶
func NewNode_declarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Node_declarationContext
func (*Node_declarationContext) AllID ¶
func (s *Node_declarationContext) AllID() []antlr.TerminalNode
func (*Node_declarationContext) EnterRule ¶
func (s *Node_declarationContext) EnterRule(listener antlr.ParseTreeListener)
func (*Node_declarationContext) ExitRule ¶
func (s *Node_declarationContext) ExitRule(listener antlr.ParseTreeListener)
func (*Node_declarationContext) GetId ¶
func (s *Node_declarationContext) GetId() antlr.Token
func (*Node_declarationContext) GetNode ¶
func (s *Node_declarationContext) GetNode() antlr.Token
func (*Node_declarationContext) GetParser ¶
func (s *Node_declarationContext) GetParser() antlr.Parser
func (*Node_declarationContext) GetRuleContext ¶
func (s *Node_declarationContext) GetRuleContext() antlr.RuleContext
func (*Node_declarationContext) ID ¶
func (s *Node_declarationContext) ID(i int) antlr.TerminalNode
func (*Node_declarationContext) IsNode_declarationContext ¶
func (*Node_declarationContext) IsNode_declarationContext()
func (*Node_declarationContext) Node_options ¶
func (s *Node_declarationContext) Node_options() INode_optionsContext
func (*Node_declarationContext) SetId ¶
func (s *Node_declarationContext) SetId(v antlr.Token)
func (*Node_declarationContext) SetNode ¶
func (s *Node_declarationContext) SetNode(v antlr.Token)
func (*Node_declarationContext) ToStringTree ¶
func (s *Node_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*Node_declarationContext) Update_block ¶
func (s *Node_declarationContext) Update_block() IUpdate_blockContext
type Node_optionsContext ¶
type Node_optionsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNode_optionsContext ¶
func NewEmptyNode_optionsContext() *Node_optionsContext
func NewNode_optionsContext ¶
func NewNode_optionsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Node_optionsContext
func (*Node_optionsContext) EnterRule ¶
func (s *Node_optionsContext) EnterRule(listener antlr.ParseTreeListener)
func (*Node_optionsContext) ExitRule ¶
func (s *Node_optionsContext) ExitRule(listener antlr.ParseTreeListener)
func (*Node_optionsContext) GetParser ¶
func (s *Node_optionsContext) GetParser() antlr.Parser
func (*Node_optionsContext) GetRuleContext ¶
func (s *Node_optionsContext) GetRuleContext() antlr.RuleContext
func (*Node_optionsContext) IsNode_optionsContext ¶
func (*Node_optionsContext) IsNode_optionsContext()
func (*Node_optionsContext) Option_list ¶
func (s *Node_optionsContext) Option_list() IOption_listContext
func (*Node_optionsContext) ToStringTree ¶
func (s *Node_optionsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ntoken_expressionContext ¶
type Ntoken_expressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNtoken_expressionContext ¶
func NewEmptyNtoken_expressionContext() *Ntoken_expressionContext
func NewNtoken_expressionContext ¶
func NewNtoken_expressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ntoken_expressionContext
func (*Ntoken_expressionContext) EnterRule ¶
func (s *Ntoken_expressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*Ntoken_expressionContext) ExitRule ¶
func (s *Ntoken_expressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*Ntoken_expressionContext) GetId ¶
func (s *Ntoken_expressionContext) GetId() antlr.Token
func (*Ntoken_expressionContext) GetParser ¶
func (s *Ntoken_expressionContext) GetParser() antlr.Parser
func (*Ntoken_expressionContext) GetRuleContext ¶
func (s *Ntoken_expressionContext) GetRuleContext() antlr.RuleContext
func (*Ntoken_expressionContext) ID ¶
func (s *Ntoken_expressionContext) ID() antlr.TerminalNode
func (*Ntoken_expressionContext) IsNtoken_expressionContext ¶
func (*Ntoken_expressionContext) IsNtoken_expressionContext()
func (*Ntoken_expressionContext) SetId ¶
func (s *Ntoken_expressionContext) SetId(v antlr.Token)
func (*Ntoken_expressionContext) ToStringTree ¶
func (s *Ntoken_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Option_listContext ¶
type Option_listContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyOption_listContext ¶
func NewEmptyOption_listContext() *Option_listContext
func NewOption_listContext ¶
func NewOption_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Option_listContext
func (*Option_listContext) AllOption_list ¶
func (s *Option_listContext) AllOption_list() []IOption_listContext
func (*Option_listContext) EnterRule ¶
func (s *Option_listContext) EnterRule(listener antlr.ParseTreeListener)
func (*Option_listContext) ExitRule ¶
func (s *Option_listContext) ExitRule(listener antlr.ParseTreeListener)
func (*Option_listContext) GetParser ¶
func (s *Option_listContext) GetParser() antlr.Parser
func (*Option_listContext) GetRuleContext ¶
func (s *Option_listContext) GetRuleContext() antlr.RuleContext
func (*Option_listContext) IsOption_listContext ¶
func (*Option_listContext) IsOption_listContext()
func (*Option_listContext) Option_list ¶
func (s *Option_listContext) Option_list(i int) IOption_listContext
func (*Option_listContext) Option_value ¶
func (s *Option_listContext) Option_value() IOption_valueContext
func (*Option_listContext) ToStringTree ¶
func (s *Option_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Option_valueContext ¶
type Option_valueContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyOption_valueContext ¶
func NewEmptyOption_valueContext() *Option_valueContext
func NewOption_valueContext ¶
func NewOption_valueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Option_valueContext
func (*Option_valueContext) EnterRule ¶
func (s *Option_valueContext) EnterRule(listener antlr.ParseTreeListener)
func (*Option_valueContext) ExitRule ¶
func (s *Option_valueContext) ExitRule(listener antlr.ParseTreeListener)
func (*Option_valueContext) GetParser ¶
func (s *Option_valueContext) GetParser() antlr.Parser
func (*Option_valueContext) GetRuleContext ¶
func (s *Option_valueContext) GetRuleContext() antlr.RuleContext
func (*Option_valueContext) IsOption_valueContext ¶
func (*Option_valueContext) IsOption_valueContext()
func (*Option_valueContext) Label_expression ¶
func (s *Option_valueContext) Label_expression() ILabel_expressionContext
func (*Option_valueContext) ToStringTree ¶
func (s *Option_valueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type PNListener ¶
type PNListener struct { *BaseJSPNLListener // contains filtered or unexported fields }
func NewPNListener ¶
func NewPNListener() *PNListener
func (*PNListener) EnterDeclaration ¶
func (l *PNListener) EnterDeclaration(c *DeclarationContext)
func (*PNListener) EnterFunction_expression ¶
func (l *PNListener) EnterFunction_expression(c *Function_expressionContext)
func (*PNListener) EnterUpdate_block ¶
func (l *PNListener) EnterUpdate_block(c *Update_blockContext)
func (*PNListener) ExitArc_declaration ¶
func (l *PNListener) ExitArc_declaration(c *Arc_declarationContext)
func (*PNListener) ExitArgs_value ¶
func (l *PNListener) ExitArgs_value(c *Args_valueContext)
func (*PNListener) ExitAssign_expression ¶
func (l *PNListener) ExitAssign_expression(c *Assign_expressionContext)
func (*PNListener) ExitEnable_expression ¶
func (l *PNListener) ExitEnable_expression(c *Enable_expressionContext)
func (*PNListener) ExitExpression ¶
func (l *PNListener) ExitExpression(c *ExpressionContext)
func (*PNListener) ExitFunction_expression ¶
func (l *PNListener) ExitFunction_expression(ctx *Function_expressionContext)
func (*PNListener) ExitGroup_declaration ¶ added in v0.10.0
func (l *PNListener) ExitGroup_declaration(c *Group_declarationContext)
func (*PNListener) ExitLabel_expression ¶
func (l *PNListener) ExitLabel_expression(c *Label_expressionContext)
func (*PNListener) ExitLiteral_expression ¶
func (l *PNListener) ExitLiteral_expression(c *Literal_expressionContext)
func (*PNListener) ExitNode_declaration ¶
func (l *PNListener) ExitNode_declaration(c *Node_declarationContext)
func (*PNListener) ExitNtoken_expression ¶
func (l *PNListener) ExitNtoken_expression(c *Ntoken_expressionContext)
func (*PNListener) ExitReward_declaration ¶
func (l *PNListener) ExitReward_declaration(c *Reward_declarationContext)
func (*PNListener) ExitUpdate_block ¶
func (l *PNListener) ExitUpdate_block(c *Update_blockContext)
func (*PNListener) VisitErrorNode ¶
func (l *PNListener) VisitErrorNode(node antlr.ErrorNode)
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) AllNEWLINE ¶
func (s *ProgContext) AllNEWLINE() []antlr.TerminalNode
func (*ProgContext) AllStatement ¶
func (s *ProgContext) AllStatement() []IStatementContext
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) NEWLINE ¶
func (s *ProgContext) NEWLINE(i int) antlr.TerminalNode
func (*ProgContext) Statement ¶
func (s *ProgContext) Statement(i int) IStatementContext
func (*ProgContext) ToStringTree ¶
func (s *ProgContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Reward_declarationContext ¶
type Reward_declarationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyReward_declarationContext ¶
func NewEmptyReward_declarationContext() *Reward_declarationContext
func NewReward_declarationContext ¶
func NewReward_declarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Reward_declarationContext
func (*Reward_declarationContext) EnterRule ¶
func (s *Reward_declarationContext) EnterRule(listener antlr.ParseTreeListener)
func (*Reward_declarationContext) ExitRule ¶
func (s *Reward_declarationContext) ExitRule(listener antlr.ParseTreeListener)
func (*Reward_declarationContext) Expression ¶
func (s *Reward_declarationContext) Expression() IExpressionContext
func (*Reward_declarationContext) GetId ¶
func (s *Reward_declarationContext) GetId() antlr.Token
func (*Reward_declarationContext) GetParser ¶
func (s *Reward_declarationContext) GetParser() antlr.Parser
func (*Reward_declarationContext) GetRuleContext ¶
func (s *Reward_declarationContext) GetRuleContext() antlr.RuleContext
func (*Reward_declarationContext) ID ¶
func (s *Reward_declarationContext) ID() antlr.TerminalNode
func (*Reward_declarationContext) IsReward_declarationContext ¶
func (*Reward_declarationContext) IsReward_declarationContext()
func (*Reward_declarationContext) SetId ¶
func (s *Reward_declarationContext) SetId(v antlr.Token)
func (*Reward_declarationContext) ToStringTree ¶
func (s *Reward_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SimpleContext ¶
type SimpleContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySimpleContext ¶
func NewEmptySimpleContext() *SimpleContext
func NewSimpleContext ¶
func NewSimpleContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SimpleContext
func (*SimpleContext) Assign_expression ¶
func (s *SimpleContext) Assign_expression() IAssign_expressionContext
func (*SimpleContext) EnterRule ¶
func (s *SimpleContext) EnterRule(listener antlr.ParseTreeListener)
func (*SimpleContext) ExitRule ¶
func (s *SimpleContext) ExitRule(listener antlr.ParseTreeListener)
func (*SimpleContext) Expression ¶
func (s *SimpleContext) Expression() IExpressionContext
func (*SimpleContext) GetParser ¶
func (s *SimpleContext) GetParser() antlr.Parser
func (*SimpleContext) GetRuleContext ¶
func (s *SimpleContext) GetRuleContext() antlr.RuleContext
func (*SimpleContext) IsSimpleContext ¶
func (*SimpleContext) IsSimpleContext()
func (*SimpleContext) ToStringTree ¶
func (s *SimpleContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Simple_blockContext ¶
type Simple_blockContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySimple_blockContext ¶
func NewEmptySimple_blockContext() *Simple_blockContext
func NewSimple_blockContext ¶
func NewSimple_blockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Simple_blockContext
func (*Simple_blockContext) AllNEWLINE ¶
func (s *Simple_blockContext) AllNEWLINE() []antlr.TerminalNode
func (*Simple_blockContext) AllSimple ¶
func (s *Simple_blockContext) AllSimple() []ISimpleContext
func (*Simple_blockContext) EnterRule ¶
func (s *Simple_blockContext) EnterRule(listener antlr.ParseTreeListener)
func (*Simple_blockContext) ExitRule ¶
func (s *Simple_blockContext) ExitRule(listener antlr.ParseTreeListener)
func (*Simple_blockContext) GetParser ¶
func (s *Simple_blockContext) GetParser() antlr.Parser
func (*Simple_blockContext) GetRuleContext ¶
func (s *Simple_blockContext) GetRuleContext() antlr.RuleContext
func (*Simple_blockContext) IsSimple_blockContext ¶
func (*Simple_blockContext) IsSimple_blockContext()
func (*Simple_blockContext) NEWLINE ¶
func (s *Simple_blockContext) NEWLINE(i int) antlr.TerminalNode
func (*Simple_blockContext) Simple ¶
func (s *Simple_blockContext) Simple(i int) ISimpleContext
func (*Simple_blockContext) ToStringTree ¶
func (s *Simple_blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
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) Declaration ¶
func (s *StatementContext) Declaration() IDeclarationContext
func (*StatementContext) EnterRule ¶
func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*StatementContext) ExitRule ¶
func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)
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) Simple ¶
func (s *StatementContext) Simple() ISimpleContext
func (*StatementContext) ToStringTree ¶
func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Update_blockContext ¶
type Update_blockContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyUpdate_blockContext ¶
func NewEmptyUpdate_blockContext() *Update_blockContext
func NewUpdate_blockContext ¶
func NewUpdate_blockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Update_blockContext
func (*Update_blockContext) EnterRule ¶
func (s *Update_blockContext) EnterRule(listener antlr.ParseTreeListener)
func (*Update_blockContext) ExitRule ¶
func (s *Update_blockContext) ExitRule(listener antlr.ParseTreeListener)
func (*Update_blockContext) GetParser ¶
func (s *Update_blockContext) GetParser() antlr.Parser
func (*Update_blockContext) GetRuleContext ¶
func (s *Update_blockContext) GetRuleContext() antlr.RuleContext
func (*Update_blockContext) IsUpdate_blockContext ¶
func (*Update_blockContext) IsUpdate_blockContext()
func (*Update_blockContext) Simple_block ¶
func (s *Update_blockContext) Simple_block() ISimple_blockContext
func (*Update_blockContext) ToStringTree ¶
func (s *Update_blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string