Documentation ¶
Index ¶
- func NewnmdLexer(input antlr.CharStream) *nmdLexer
- func NewnmdParser(input antlr.TokenStream) *nmdParser
- type BasenmdListener
- func (s *BasenmdListener) EnterCall_stmt(ctx *Call_stmtContext)
- func (s *BasenmdListener) EnterCast_stmt(ctx *Cast_stmtContext)
- func (s *BasenmdListener) EnterEndpoint(ctx *EndpointContext)
- func (s *BasenmdListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BasenmdListener) EnterGraph(ctx *GraphContext)
- func (s *BasenmdListener) EnterLink_stmt(ctx *Link_stmtContext)
- func (s *BasenmdListener) EnterNode_def(ctx *Node_defContext)
- func (s *BasenmdListener) EnterNode_id(ctx *Node_idContext)
- func (s *BasenmdListener) EnterNode_prop(ctx *Node_propContext)
- func (s *BasenmdListener) EnterPropFloat(ctx *PropFloatContext)
- func (s *BasenmdListener) EnterPropId(ctx *PropIdContext)
- func (s *BasenmdListener) EnterPropInt(ctx *PropIntContext)
- func (s *BasenmdListener) EnterPropQuoteString(ctx *PropQuoteStringContext)
- func (s *BasenmdListener) EnterSink_stmt(ctx *Sink_stmtContext)
- func (s *BasenmdListener) EnterStmt(ctx *StmtContext)
- func (s *BasenmdListener) EnterStmt_list(ctx *Stmt_listContext)
- func (s *BasenmdListener) ExitCall_stmt(ctx *Call_stmtContext)
- func (s *BasenmdListener) ExitCast_stmt(ctx *Cast_stmtContext)
- func (s *BasenmdListener) ExitEndpoint(ctx *EndpointContext)
- func (s *BasenmdListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BasenmdListener) ExitGraph(ctx *GraphContext)
- func (s *BasenmdListener) ExitLink_stmt(ctx *Link_stmtContext)
- func (s *BasenmdListener) ExitNode_def(ctx *Node_defContext)
- func (s *BasenmdListener) ExitNode_id(ctx *Node_idContext)
- func (s *BasenmdListener) ExitNode_prop(ctx *Node_propContext)
- func (s *BasenmdListener) ExitPropFloat(ctx *PropFloatContext)
- func (s *BasenmdListener) ExitPropId(ctx *PropIdContext)
- func (s *BasenmdListener) ExitPropInt(ctx *PropIntContext)
- func (s *BasenmdListener) ExitPropQuoteString(ctx *PropQuoteStringContext)
- func (s *BasenmdListener) ExitSink_stmt(ctx *Sink_stmtContext)
- func (s *BasenmdListener) ExitStmt(ctx *StmtContext)
- func (s *BasenmdListener) ExitStmt_list(ctx *Stmt_listContext)
- func (s *BasenmdListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BasenmdListener) VisitTerminal(node antlr.TerminalNode)
- type CallActionDefs
- type Call_stmtContext
- func (s *Call_stmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Call_stmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Call_stmtContext) GetCmd() antlr.Token
- func (s *Call_stmtContext) GetParser() antlr.Parser
- func (s *Call_stmtContext) GetRuleContext() antlr.RuleContext
- func (*Call_stmtContext) IsCall_stmtContext()
- func (s *Call_stmtContext) Node_def() INode_defContext
- func (s *Call_stmtContext) QUOTED_STRING() antlr.TerminalNode
- func (s *Call_stmtContext) SetCmd(v antlr.Token)
- func (s *Call_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CastActionDefs
- type Cast_stmtContext
- func (s *Cast_stmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Cast_stmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Cast_stmtContext) GetCmd() antlr.Token
- func (s *Cast_stmtContext) GetParser() antlr.Parser
- func (s *Cast_stmtContext) GetRuleContext() antlr.RuleContext
- func (*Cast_stmtContext) IsCast_stmtContext()
- func (s *Cast_stmtContext) Node_def() INode_defContext
- func (s *Cast_stmtContext) QUOTED_STRING() antlr.TerminalNode
- func (s *Cast_stmtContext) SetCmd(v antlr.Token)
- func (s *Cast_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type EndpointContext
- func (s *EndpointContext) AllNode_def() []INode_defContext
- func (s *EndpointContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *EndpointContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *EndpointContext) GetParser() antlr.Parser
- func (s *EndpointContext) GetRuleContext() antlr.RuleContext
- func (*EndpointContext) IsEndpointContext()
- func (s *EndpointContext) Node_def(i int) INode_defContext
- func (s *EndpointContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type EndpointDefs
- type GraphContext
- func (s *GraphContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *GraphContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *GraphContext) GetParser() antlr.Parser
- func (s *GraphContext) GetRuleContext() antlr.RuleContext
- func (*GraphContext) IsGraphContext()
- func (s *GraphContext) Stmt_list() IStmt_listContext
- func (s *GraphContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type GraphTopology
- func (gt *GraphTopology) GetCallActions() []*CallActionDefs
- func (gt *GraphTopology) GetCastActions() []*CastActionDefs
- func (gt *GraphTopology) GetSinkActions() []*SinkActionDefs
- func (gt *GraphTopology) GetSortedNodeDefs() []*NodeDef
- func (gt *GraphTopology) ParseGraph(sessionId, desc string) error
- type ICall_stmtContext
- type ICast_stmtContext
- type IEndpointContext
- type IGraphContext
- type ILink_stmtContext
- type INode_defContext
- type INode_idContext
- type INode_propContext
- type IPropertyContext
- type ISink_stmtContext
- type IStmtContext
- type IStmt_listContext
- type Link_stmtContext
- func (s *Link_stmtContext) AllEndpoint() []IEndpointContext
- func (s *Link_stmtContext) Endpoint(i int) IEndpointContext
- func (s *Link_stmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Link_stmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Link_stmtContext) GetParser() antlr.Parser
- func (s *Link_stmtContext) GetRuleContext() antlr.RuleContext
- func (*Link_stmtContext) IsLink_stmtContext()
- func (s *Link_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Listener
- func (l *Listener) EnterEndpoint(c *EndpointContext)
- func (l *Listener) EnterLink_stmt(c *Link_stmtContext)
- func (l *Listener) EnterNode_id(c *Node_idContext)
- func (l *Listener) EnterNode_prop(c *Node_propContext)
- func (l *Listener) EnterPropFloat(ctx *PropFloatContext)
- func (l *Listener) EnterPropId(ctx *PropIdContext)
- func (l *Listener) EnterPropInt(ctx *PropIntContext)
- func (l *Listener) EnterPropQuoteString(ctx *PropQuoteStringContext)
- func (l *Listener) ExitCall_stmt(ctx *Call_stmtContext)
- func (l *Listener) ExitCast_stmt(ctx *Cast_stmtContext)
- func (l *Listener) ExitEndpoint(c *EndpointContext)
- func (l *Listener) ExitGraph(c *GraphContext)
- func (l *Listener) ExitNode_def(c *Node_defContext)
- func (l *Listener) ExitNode_prop(c *Node_propContext)
- func (l *Listener) ExitSink_stmt(ctx *Sink_stmtContext)
- type NodeDef
- type NodeProp
- type Node_defContext
- func (s *Node_defContext) AllNode_prop() []INode_propContext
- func (s *Node_defContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Node_defContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Node_defContext) GetParser() antlr.Parser
- func (s *Node_defContext) GetRuleContext() antlr.RuleContext
- func (*Node_defContext) IsNode_defContext()
- func (s *Node_defContext) Node_id() INode_idContext
- func (s *Node_defContext) Node_prop(i int) INode_propContext
- func (s *Node_defContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Node_idContext
- func (s *Node_idContext) AllID() []antlr.TerminalNode
- func (s *Node_idContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Node_idContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Node_idContext) GetName() antlr.Token
- func (s *Node_idContext) GetParser() antlr.Parser
- func (s *Node_idContext) GetRuleContext() antlr.RuleContext
- func (s *Node_idContext) GetScope() antlr.Token
- func (s *Node_idContext) GetTyp() antlr.Token
- func (s *Node_idContext) ID(i int) antlr.TerminalNode
- func (*Node_idContext) IsNode_idContext()
- func (s *Node_idContext) SetName(v antlr.Token)
- func (s *Node_idContext) SetScope(v antlr.Token)
- func (s *Node_idContext) SetTyp(v antlr.Token)
- func (s *Node_idContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Node_propContext
- func (s *Node_propContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Node_propContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Node_propContext) GetKey() antlr.Token
- func (s *Node_propContext) GetParser() antlr.Parser
- func (s *Node_propContext) GetRuleContext() antlr.RuleContext
- func (s *Node_propContext) GetValue() IPropertyContext
- func (s *Node_propContext) ID() antlr.TerminalNode
- func (*Node_propContext) IsNode_propContext()
- func (s *Node_propContext) Property() IPropertyContext
- func (s *Node_propContext) SetKey(v antlr.Token)
- func (s *Node_propContext) SetValue(v IPropertyContext)
- func (s *Node_propContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type PropFloatContext
- type PropIdContext
- type PropIntContext
- type PropQuoteStringContext
- type PropertyContext
- func (s *PropertyContext) CopyFrom(ctx *PropertyContext)
- func (s *PropertyContext) GetParser() antlr.Parser
- func (s *PropertyContext) GetRuleContext() antlr.RuleContext
- func (*PropertyContext) IsPropertyContext()
- func (s *PropertyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SinkActionDefs
- type Sink_stmtContext
- func (s *Sink_stmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Sink_stmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Sink_stmtContext) GetChannel() antlr.Token
- func (s *Sink_stmtContext) GetParser() antlr.Parser
- func (s *Sink_stmtContext) GetRuleContext() antlr.RuleContext
- func (s *Sink_stmtContext) ID() antlr.TerminalNode
- func (*Sink_stmtContext) IsSink_stmtContext()
- func (s *Sink_stmtContext) SetChannel(v antlr.Token)
- func (s *Sink_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StmtContext
- func (s *StmtContext) Call_stmt() ICall_stmtContext
- func (s *StmtContext) Cast_stmt() ICast_stmtContext
- func (s *StmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StmtContext) GetParser() antlr.Parser
- func (s *StmtContext) GetRuleContext() antlr.RuleContext
- func (*StmtContext) IsStmtContext()
- func (s *StmtContext) Link_stmt() ILink_stmtContext
- func (s *StmtContext) Node_def() INode_defContext
- func (s *StmtContext) Sink_stmt() ISink_stmtContext
- func (s *StmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Stmt_listContext
- func (s *Stmt_listContext) AllStmt() []IStmtContext
- func (s *Stmt_listContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Stmt_listContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Stmt_listContext) GetParser() antlr.Parser
- func (s *Stmt_listContext) GetRuleContext() antlr.RuleContext
- func (*Stmt_listContext) IsStmt_listContext()
- func (s *Stmt_listContext) Stmt(i int) IStmtContext
- func (s *Stmt_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewnmdLexer ¶
func NewnmdLexer(input antlr.CharStream) *nmdLexer
NewnmdLexer produces a new lexer instance for the optional input antlr.CharStream.
The *nmdLexer instance produced may be reused by calling the SetInputStream method. The initial lexer configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.
func NewnmdParser ¶
func NewnmdParser(input antlr.TokenStream) *nmdParser
NewnmdParser produces a new parser instance for the optional input antlr.TokenStream.
The *nmdParser instance produced may be reused by calling the SetInputStream method. The initial parser configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.
Types ¶
type BasenmdListener ¶
type BasenmdListener struct{}
BasenmdListener is a complete listener for a parse tree produced by nmdParser.
func (*BasenmdListener) EnterCall_stmt ¶
func (s *BasenmdListener) EnterCall_stmt(ctx *Call_stmtContext)
EnterCall_stmt is called when production call_stmt is entered.
func (*BasenmdListener) EnterCast_stmt ¶
func (s *BasenmdListener) EnterCast_stmt(ctx *Cast_stmtContext)
EnterCast_stmt is called when production cast_stmt is entered.
func (*BasenmdListener) EnterEndpoint ¶
func (s *BasenmdListener) EnterEndpoint(ctx *EndpointContext)
EnterEndpoint is called when production endpoint is entered.
func (*BasenmdListener) EnterEveryRule ¶
func (s *BasenmdListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BasenmdListener) EnterGraph ¶
func (s *BasenmdListener) EnterGraph(ctx *GraphContext)
EnterGraph is called when production graph is entered.
func (*BasenmdListener) EnterLink_stmt ¶
func (s *BasenmdListener) EnterLink_stmt(ctx *Link_stmtContext)
EnterLink_stmt is called when production link_stmt is entered.
func (*BasenmdListener) EnterNode_def ¶
func (s *BasenmdListener) EnterNode_def(ctx *Node_defContext)
EnterNode_def is called when production node_def is entered.
func (*BasenmdListener) EnterNode_id ¶
func (s *BasenmdListener) EnterNode_id(ctx *Node_idContext)
EnterNode_id is called when production node_id is entered.
func (*BasenmdListener) EnterNode_prop ¶
func (s *BasenmdListener) EnterNode_prop(ctx *Node_propContext)
EnterNode_prop is called when production node_prop is entered.
func (*BasenmdListener) EnterPropFloat ¶
func (s *BasenmdListener) EnterPropFloat(ctx *PropFloatContext)
EnterPropFloat is called when production PropFloat is entered.
func (*BasenmdListener) EnterPropId ¶
func (s *BasenmdListener) EnterPropId(ctx *PropIdContext)
EnterPropId is called when production PropId is entered.
func (*BasenmdListener) EnterPropInt ¶
func (s *BasenmdListener) EnterPropInt(ctx *PropIntContext)
EnterPropInt is called when production PropInt is entered.
func (*BasenmdListener) EnterPropQuoteString ¶
func (s *BasenmdListener) EnterPropQuoteString(ctx *PropQuoteStringContext)
EnterPropQuoteString is called when production PropQuoteString is entered.
func (*BasenmdListener) EnterSink_stmt ¶
func (s *BasenmdListener) EnterSink_stmt(ctx *Sink_stmtContext)
EnterSink_stmt is called when production sink_stmt is entered.
func (*BasenmdListener) EnterStmt ¶
func (s *BasenmdListener) EnterStmt(ctx *StmtContext)
EnterStmt is called when production stmt is entered.
func (*BasenmdListener) EnterStmt_list ¶
func (s *BasenmdListener) EnterStmt_list(ctx *Stmt_listContext)
EnterStmt_list is called when production stmt_list is entered.
func (*BasenmdListener) ExitCall_stmt ¶
func (s *BasenmdListener) ExitCall_stmt(ctx *Call_stmtContext)
ExitCall_stmt is called when production call_stmt is exited.
func (*BasenmdListener) ExitCast_stmt ¶
func (s *BasenmdListener) ExitCast_stmt(ctx *Cast_stmtContext)
ExitCast_stmt is called when production cast_stmt is exited.
func (*BasenmdListener) ExitEndpoint ¶
func (s *BasenmdListener) ExitEndpoint(ctx *EndpointContext)
ExitEndpoint is called when production endpoint is exited.
func (*BasenmdListener) ExitEveryRule ¶
func (s *BasenmdListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BasenmdListener) ExitGraph ¶
func (s *BasenmdListener) ExitGraph(ctx *GraphContext)
ExitGraph is called when production graph is exited.
func (*BasenmdListener) ExitLink_stmt ¶
func (s *BasenmdListener) ExitLink_stmt(ctx *Link_stmtContext)
ExitLink_stmt is called when production link_stmt is exited.
func (*BasenmdListener) ExitNode_def ¶
func (s *BasenmdListener) ExitNode_def(ctx *Node_defContext)
ExitNode_def is called when production node_def is exited.
func (*BasenmdListener) ExitNode_id ¶
func (s *BasenmdListener) ExitNode_id(ctx *Node_idContext)
ExitNode_id is called when production node_id is exited.
func (*BasenmdListener) ExitNode_prop ¶
func (s *BasenmdListener) ExitNode_prop(ctx *Node_propContext)
ExitNode_prop is called when production node_prop is exited.
func (*BasenmdListener) ExitPropFloat ¶
func (s *BasenmdListener) ExitPropFloat(ctx *PropFloatContext)
ExitPropFloat is called when production PropFloat is exited.
func (*BasenmdListener) ExitPropId ¶
func (s *BasenmdListener) ExitPropId(ctx *PropIdContext)
ExitPropId is called when production PropId is exited.
func (*BasenmdListener) ExitPropInt ¶
func (s *BasenmdListener) ExitPropInt(ctx *PropIntContext)
ExitPropInt is called when production PropInt is exited.
func (*BasenmdListener) ExitPropQuoteString ¶
func (s *BasenmdListener) ExitPropQuoteString(ctx *PropQuoteStringContext)
ExitPropQuoteString is called when production PropQuoteString is exited.
func (*BasenmdListener) ExitSink_stmt ¶
func (s *BasenmdListener) ExitSink_stmt(ctx *Sink_stmtContext)
ExitSink_stmt is called when production sink_stmt is exited.
func (*BasenmdListener) ExitStmt ¶
func (s *BasenmdListener) ExitStmt(ctx *StmtContext)
ExitStmt is called when production stmt is exited.
func (*BasenmdListener) ExitStmt_list ¶
func (s *BasenmdListener) ExitStmt_list(ctx *Stmt_listContext)
ExitStmt_list is called when production stmt_list is exited.
func (*BasenmdListener) VisitErrorNode ¶
func (s *BasenmdListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BasenmdListener) VisitTerminal ¶
func (s *BasenmdListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type CallActionDefs ¶
type Call_stmtContext ¶
type Call_stmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCall_stmtContext ¶
func NewCall_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Call_stmtContext
func NewEmptyCall_stmtContext ¶
func NewEmptyCall_stmtContext() *Call_stmtContext
func (*Call_stmtContext) EnterRule ¶
func (s *Call_stmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*Call_stmtContext) ExitRule ¶
func (s *Call_stmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*Call_stmtContext) GetCmd ¶
func (s *Call_stmtContext) GetCmd() antlr.Token
func (*Call_stmtContext) GetParser ¶
func (s *Call_stmtContext) GetParser() antlr.Parser
func (*Call_stmtContext) GetRuleContext ¶
func (s *Call_stmtContext) GetRuleContext() antlr.RuleContext
func (*Call_stmtContext) IsCall_stmtContext ¶
func (*Call_stmtContext) IsCall_stmtContext()
func (*Call_stmtContext) Node_def ¶
func (s *Call_stmtContext) Node_def() INode_defContext
func (*Call_stmtContext) QUOTED_STRING ¶
func (s *Call_stmtContext) QUOTED_STRING() antlr.TerminalNode
func (*Call_stmtContext) SetCmd ¶
func (s *Call_stmtContext) SetCmd(v antlr.Token)
func (*Call_stmtContext) ToStringTree ¶
func (s *Call_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CastActionDefs ¶
type CastActionDefs struct {
CallActionDefs
}
type Cast_stmtContext ¶
type Cast_stmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCast_stmtContext ¶
func NewCast_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Cast_stmtContext
func NewEmptyCast_stmtContext ¶
func NewEmptyCast_stmtContext() *Cast_stmtContext
func (*Cast_stmtContext) EnterRule ¶
func (s *Cast_stmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*Cast_stmtContext) ExitRule ¶
func (s *Cast_stmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*Cast_stmtContext) GetCmd ¶
func (s *Cast_stmtContext) GetCmd() antlr.Token
func (*Cast_stmtContext) GetParser ¶
func (s *Cast_stmtContext) GetParser() antlr.Parser
func (*Cast_stmtContext) GetRuleContext ¶
func (s *Cast_stmtContext) GetRuleContext() antlr.RuleContext
func (*Cast_stmtContext) IsCast_stmtContext ¶
func (*Cast_stmtContext) IsCast_stmtContext()
func (*Cast_stmtContext) Node_def ¶
func (s *Cast_stmtContext) Node_def() INode_defContext
func (*Cast_stmtContext) QUOTED_STRING ¶
func (s *Cast_stmtContext) QUOTED_STRING() antlr.TerminalNode
func (*Cast_stmtContext) SetCmd ¶
func (s *Cast_stmtContext) SetCmd(v antlr.Token)
func (*Cast_stmtContext) ToStringTree ¶
func (s *Cast_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type EndpointContext ¶
type EndpointContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEndpointContext ¶
func NewEmptyEndpointContext() *EndpointContext
func NewEndpointContext ¶
func NewEndpointContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EndpointContext
func (*EndpointContext) AllNode_def ¶
func (s *EndpointContext) AllNode_def() []INode_defContext
func (*EndpointContext) EnterRule ¶
func (s *EndpointContext) EnterRule(listener antlr.ParseTreeListener)
func (*EndpointContext) ExitRule ¶
func (s *EndpointContext) ExitRule(listener antlr.ParseTreeListener)
func (*EndpointContext) GetParser ¶
func (s *EndpointContext) GetParser() antlr.Parser
func (*EndpointContext) GetRuleContext ¶
func (s *EndpointContext) GetRuleContext() antlr.RuleContext
func (*EndpointContext) IsEndpointContext ¶
func (*EndpointContext) IsEndpointContext()
func (*EndpointContext) Node_def ¶
func (s *EndpointContext) Node_def(i int) INode_defContext
func (*EndpointContext) ToStringTree ¶
func (s *EndpointContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type EndpointDefs ¶
type EndpointDefs struct {
Nodes []*NodeDef
}
type GraphContext ¶
type GraphContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyGraphContext ¶
func NewEmptyGraphContext() *GraphContext
func NewGraphContext ¶
func NewGraphContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GraphContext
func (*GraphContext) EnterRule ¶
func (s *GraphContext) EnterRule(listener antlr.ParseTreeListener)
func (*GraphContext) ExitRule ¶
func (s *GraphContext) ExitRule(listener antlr.ParseTreeListener)
func (*GraphContext) GetParser ¶
func (s *GraphContext) GetParser() antlr.Parser
func (*GraphContext) GetRuleContext ¶
func (s *GraphContext) GetRuleContext() antlr.RuleContext
func (*GraphContext) IsGraphContext ¶
func (*GraphContext) IsGraphContext()
func (*GraphContext) Stmt_list ¶
func (s *GraphContext) Stmt_list() IStmt_listContext
func (*GraphContext) ToStringTree ¶
func (s *GraphContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type GraphTopology ¶
type GraphTopology struct {
// contains filtered or unexported fields
}
func NewGraphTopology ¶
func NewGraphTopology() *GraphTopology
func (*GraphTopology) GetCallActions ¶
func (gt *GraphTopology) GetCallActions() []*CallActionDefs
func (*GraphTopology) GetCastActions ¶
func (gt *GraphTopology) GetCastActions() []*CastActionDefs
func (*GraphTopology) GetSinkActions ¶
func (gt *GraphTopology) GetSinkActions() []*SinkActionDefs
func (*GraphTopology) GetSortedNodeDefs ¶
func (gt *GraphTopology) GetSortedNodeDefs() []*NodeDef
func (*GraphTopology) ParseGraph ¶
func (gt *GraphTopology) ParseGraph(sessionId, desc string) error
type ICall_stmtContext ¶
type ICall_stmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetCmd returns the cmd token. GetCmd() antlr.Token // SetCmd sets the cmd token. SetCmd(antlr.Token) // IsCall_stmtContext differentiates from other interfaces. IsCall_stmtContext() }
ICall_stmtContext is an interface to support dynamic dispatch.
type ICast_stmtContext ¶
type ICast_stmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetCmd returns the cmd token. GetCmd() antlr.Token // SetCmd sets the cmd token. SetCmd(antlr.Token) // IsCast_stmtContext differentiates from other interfaces. IsCast_stmtContext() }
ICast_stmtContext is an interface to support dynamic dispatch.
type IEndpointContext ¶
type IEndpointContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsEndpointContext differentiates from other interfaces. IsEndpointContext() }
IEndpointContext is an interface to support dynamic dispatch.
type IGraphContext ¶
type IGraphContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsGraphContext differentiates from other interfaces. IsGraphContext() }
IGraphContext is an interface to support dynamic dispatch.
type ILink_stmtContext ¶
type ILink_stmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLink_stmtContext differentiates from other interfaces. IsLink_stmtContext() }
ILink_stmtContext is an interface to support dynamic dispatch.
type INode_defContext ¶
type INode_defContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsNode_defContext differentiates from other interfaces. IsNode_defContext() }
INode_defContext is an interface to support dynamic dispatch.
type INode_idContext ¶
type INode_idContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetName returns the name token. GetName() antlr.Token // GetScope returns the scope token. GetScope() antlr.Token // GetTyp returns the typ token. GetTyp() antlr.Token // SetName sets the name token. SetName(antlr.Token) // SetScope sets the scope token. SetScope(antlr.Token) // SetTyp sets the typ token. SetTyp(antlr.Token) // IsNode_idContext differentiates from other interfaces. IsNode_idContext() }
INode_idContext is an interface to support dynamic dispatch.
type INode_propContext ¶
type INode_propContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetKey returns the key token. GetKey() antlr.Token // SetKey sets the key token. SetKey(antlr.Token) // GetValue returns the value rule contexts. GetValue() IPropertyContext // SetValue sets the value rule contexts. SetValue(IPropertyContext) // IsNode_propContext differentiates from other interfaces. IsNode_propContext() }
INode_propContext is an interface to support dynamic dispatch.
type IPropertyContext ¶
type IPropertyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsPropertyContext differentiates from other interfaces. IsPropertyContext() }
IPropertyContext is an interface to support dynamic dispatch.
type ISink_stmtContext ¶
type ISink_stmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetChannel returns the channel token. GetChannel() antlr.Token // SetChannel sets the channel token. SetChannel(antlr.Token) // IsSink_stmtContext differentiates from other interfaces. IsSink_stmtContext() }
ISink_stmtContext is an interface to support dynamic dispatch.
type IStmtContext ¶
type IStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStmtContext differentiates from other interfaces. IsStmtContext() }
IStmtContext is an interface to support dynamic dispatch.
type IStmt_listContext ¶
type IStmt_listContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStmt_listContext differentiates from other interfaces. IsStmt_listContext() }
IStmt_listContext is an interface to support dynamic dispatch.
type Link_stmtContext ¶
type Link_stmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLink_stmtContext ¶
func NewEmptyLink_stmtContext() *Link_stmtContext
func NewLink_stmtContext ¶
func NewLink_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Link_stmtContext
func (*Link_stmtContext) AllEndpoint ¶
func (s *Link_stmtContext) AllEndpoint() []IEndpointContext
func (*Link_stmtContext) Endpoint ¶
func (s *Link_stmtContext) Endpoint(i int) IEndpointContext
func (*Link_stmtContext) EnterRule ¶
func (s *Link_stmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*Link_stmtContext) ExitRule ¶
func (s *Link_stmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*Link_stmtContext) GetParser ¶
func (s *Link_stmtContext) GetParser() antlr.Parser
func (*Link_stmtContext) GetRuleContext ¶
func (s *Link_stmtContext) GetRuleContext() antlr.RuleContext
func (*Link_stmtContext) IsLink_stmtContext ¶
func (*Link_stmtContext) IsLink_stmtContext()
func (*Link_stmtContext) ToStringTree ¶
func (s *Link_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Listener ¶
type Listener struct { *BasenmdListener NodeDefs []*NodeDef CallDefs []*CallActionDefs CastDefs []*CastActionDefs SinkDefs []*SinkActionDefs // contains filtered or unexported fields }
func NewListener ¶
func (*Listener) EnterEndpoint ¶
func (l *Listener) EnterEndpoint(c *EndpointContext)
func (*Listener) EnterLink_stmt ¶
func (l *Listener) EnterLink_stmt(c *Link_stmtContext)
func (*Listener) EnterNode_id ¶
func (l *Listener) EnterNode_id(c *Node_idContext)
func (*Listener) EnterNode_prop ¶
func (l *Listener) EnterNode_prop(c *Node_propContext)
func (*Listener) EnterPropFloat ¶
func (l *Listener) EnterPropFloat(ctx *PropFloatContext)
func (*Listener) EnterPropId ¶
func (l *Listener) EnterPropId(ctx *PropIdContext)
func (*Listener) EnterPropInt ¶
func (l *Listener) EnterPropInt(ctx *PropIntContext)
func (*Listener) EnterPropQuoteString ¶
func (l *Listener) EnterPropQuoteString(ctx *PropQuoteStringContext)
func (*Listener) ExitCall_stmt ¶
func (l *Listener) ExitCall_stmt(ctx *Call_stmtContext)
func (*Listener) ExitCast_stmt ¶
func (l *Listener) ExitCast_stmt(ctx *Cast_stmtContext)
func (*Listener) ExitEndpoint ¶
func (l *Listener) ExitEndpoint(c *EndpointContext)
func (*Listener) ExitGraph ¶
func (l *Listener) ExitGraph(c *GraphContext)
func (*Listener) ExitNode_def ¶
func (l *Listener) ExitNode_def(c *Node_defContext)
func (*Listener) ExitNode_prop ¶
func (l *Listener) ExitNode_prop(c *Node_propContext)
func (*Listener) ExitSink_stmt ¶
func (l *Listener) ExitSink_stmt(ctx *Sink_stmtContext)
type NodeDef ¶
type NodeProp ¶
type NodeProp struct {
Key, Type string
Value interface{}
}
func (*NodeProp) FormalizeKey ¶
func (np *NodeProp) FormalizeKey()
FormalizeKey converts key in form of foo_bar or foo__bar ... into fooBar if possible normal keys with camel case remain intact
type Node_defContext ¶
type Node_defContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNode_defContext ¶
func NewEmptyNode_defContext() *Node_defContext
func NewNode_defContext ¶
func NewNode_defContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Node_defContext
func (*Node_defContext) AllNode_prop ¶
func (s *Node_defContext) AllNode_prop() []INode_propContext
func (*Node_defContext) EnterRule ¶
func (s *Node_defContext) EnterRule(listener antlr.ParseTreeListener)
func (*Node_defContext) ExitRule ¶
func (s *Node_defContext) ExitRule(listener antlr.ParseTreeListener)
func (*Node_defContext) GetParser ¶
func (s *Node_defContext) GetParser() antlr.Parser
func (*Node_defContext) GetRuleContext ¶
func (s *Node_defContext) GetRuleContext() antlr.RuleContext
func (*Node_defContext) IsNode_defContext ¶
func (*Node_defContext) IsNode_defContext()
func (*Node_defContext) Node_id ¶
func (s *Node_defContext) Node_id() INode_idContext
func (*Node_defContext) Node_prop ¶
func (s *Node_defContext) Node_prop(i int) INode_propContext
func (*Node_defContext) ToStringTree ¶
func (s *Node_defContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Node_idContext ¶
type Node_idContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNode_idContext ¶
func NewEmptyNode_idContext() *Node_idContext
func NewNode_idContext ¶
func NewNode_idContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Node_idContext
func (*Node_idContext) AllID ¶
func (s *Node_idContext) AllID() []antlr.TerminalNode
func (*Node_idContext) EnterRule ¶
func (s *Node_idContext) EnterRule(listener antlr.ParseTreeListener)
func (*Node_idContext) ExitRule ¶
func (s *Node_idContext) ExitRule(listener antlr.ParseTreeListener)
func (*Node_idContext) GetName ¶
func (s *Node_idContext) GetName() antlr.Token
func (*Node_idContext) GetParser ¶
func (s *Node_idContext) GetParser() antlr.Parser
func (*Node_idContext) GetRuleContext ¶
func (s *Node_idContext) GetRuleContext() antlr.RuleContext
func (*Node_idContext) GetScope ¶
func (s *Node_idContext) GetScope() antlr.Token
func (*Node_idContext) GetTyp ¶
func (s *Node_idContext) GetTyp() antlr.Token
func (*Node_idContext) ID ¶
func (s *Node_idContext) ID(i int) antlr.TerminalNode
func (*Node_idContext) IsNode_idContext ¶
func (*Node_idContext) IsNode_idContext()
func (*Node_idContext) SetName ¶
func (s *Node_idContext) SetName(v antlr.Token)
func (*Node_idContext) SetScope ¶
func (s *Node_idContext) SetScope(v antlr.Token)
func (*Node_idContext) SetTyp ¶
func (s *Node_idContext) SetTyp(v antlr.Token)
func (*Node_idContext) ToStringTree ¶
func (s *Node_idContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Node_propContext ¶
type Node_propContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNode_propContext ¶
func NewEmptyNode_propContext() *Node_propContext
func NewNode_propContext ¶
func NewNode_propContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Node_propContext
func (*Node_propContext) EnterRule ¶
func (s *Node_propContext) EnterRule(listener antlr.ParseTreeListener)
func (*Node_propContext) ExitRule ¶
func (s *Node_propContext) ExitRule(listener antlr.ParseTreeListener)
func (*Node_propContext) GetKey ¶
func (s *Node_propContext) GetKey() antlr.Token
func (*Node_propContext) GetParser ¶
func (s *Node_propContext) GetParser() antlr.Parser
func (*Node_propContext) GetRuleContext ¶
func (s *Node_propContext) GetRuleContext() antlr.RuleContext
func (*Node_propContext) GetValue ¶
func (s *Node_propContext) GetValue() IPropertyContext
func (*Node_propContext) ID ¶
func (s *Node_propContext) ID() antlr.TerminalNode
func (*Node_propContext) IsNode_propContext ¶
func (*Node_propContext) IsNode_propContext()
func (*Node_propContext) Property ¶
func (s *Node_propContext) Property() IPropertyContext
func (*Node_propContext) SetKey ¶
func (s *Node_propContext) SetKey(v antlr.Token)
func (*Node_propContext) SetValue ¶
func (s *Node_propContext) SetValue(v IPropertyContext)
func (*Node_propContext) ToStringTree ¶
func (s *Node_propContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type PropFloatContext ¶
type PropFloatContext struct {
*PropertyContext
}
func NewPropFloatContext ¶
func NewPropFloatContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropFloatContext
func (*PropFloatContext) EnterRule ¶
func (s *PropFloatContext) EnterRule(listener antlr.ParseTreeListener)
func (*PropFloatContext) ExitRule ¶
func (s *PropFloatContext) ExitRule(listener antlr.ParseTreeListener)
func (*PropFloatContext) FLOAT ¶
func (s *PropFloatContext) FLOAT() antlr.TerminalNode
func (*PropFloatContext) GetRuleContext ¶
func (s *PropFloatContext) GetRuleContext() antlr.RuleContext
type PropIdContext ¶
type PropIdContext struct {
*PropertyContext
}
func NewPropIdContext ¶
func NewPropIdContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropIdContext
func (*PropIdContext) EnterRule ¶
func (s *PropIdContext) EnterRule(listener antlr.ParseTreeListener)
func (*PropIdContext) ExitRule ¶
func (s *PropIdContext) ExitRule(listener antlr.ParseTreeListener)
func (*PropIdContext) GetRuleContext ¶
func (s *PropIdContext) GetRuleContext() antlr.RuleContext
func (*PropIdContext) ID ¶
func (s *PropIdContext) ID() antlr.TerminalNode
type PropIntContext ¶
type PropIntContext struct {
*PropertyContext
}
func NewPropIntContext ¶
func NewPropIntContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropIntContext
func (*PropIntContext) EnterRule ¶
func (s *PropIntContext) EnterRule(listener antlr.ParseTreeListener)
func (*PropIntContext) ExitRule ¶
func (s *PropIntContext) ExitRule(listener antlr.ParseTreeListener)
func (*PropIntContext) GetRuleContext ¶
func (s *PropIntContext) GetRuleContext() antlr.RuleContext
func (*PropIntContext) INT ¶
func (s *PropIntContext) INT() antlr.TerminalNode
type PropQuoteStringContext ¶
type PropQuoteStringContext struct {
*PropertyContext
}
func NewPropQuoteStringContext ¶
func NewPropQuoteStringContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropQuoteStringContext
func (*PropQuoteStringContext) EnterRule ¶
func (s *PropQuoteStringContext) EnterRule(listener antlr.ParseTreeListener)
func (*PropQuoteStringContext) ExitRule ¶
func (s *PropQuoteStringContext) ExitRule(listener antlr.ParseTreeListener)
func (*PropQuoteStringContext) GetRuleContext ¶
func (s *PropQuoteStringContext) GetRuleContext() antlr.RuleContext
func (*PropQuoteStringContext) QUOTED_STRING ¶
func (s *PropQuoteStringContext) QUOTED_STRING() antlr.TerminalNode
type PropertyContext ¶
type PropertyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyPropertyContext ¶
func NewEmptyPropertyContext() *PropertyContext
func NewPropertyContext ¶
func NewPropertyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PropertyContext
func (*PropertyContext) CopyFrom ¶
func (s *PropertyContext) CopyFrom(ctx *PropertyContext)
func (*PropertyContext) GetParser ¶
func (s *PropertyContext) GetParser() antlr.Parser
func (*PropertyContext) GetRuleContext ¶
func (s *PropertyContext) GetRuleContext() antlr.RuleContext
func (*PropertyContext) IsPropertyContext ¶
func (*PropertyContext) IsPropertyContext()
func (*PropertyContext) ToStringTree ¶
func (s *PropertyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SinkActionDefs ¶
type SinkActionDefs struct {
ChannelName string
}
type Sink_stmtContext ¶
type Sink_stmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySink_stmtContext ¶
func NewEmptySink_stmtContext() *Sink_stmtContext
func NewSink_stmtContext ¶
func NewSink_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Sink_stmtContext
func (*Sink_stmtContext) EnterRule ¶
func (s *Sink_stmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*Sink_stmtContext) ExitRule ¶
func (s *Sink_stmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*Sink_stmtContext) GetChannel ¶
func (s *Sink_stmtContext) GetChannel() antlr.Token
func (*Sink_stmtContext) GetParser ¶
func (s *Sink_stmtContext) GetParser() antlr.Parser
func (*Sink_stmtContext) GetRuleContext ¶
func (s *Sink_stmtContext) GetRuleContext() antlr.RuleContext
func (*Sink_stmtContext) ID ¶
func (s *Sink_stmtContext) ID() antlr.TerminalNode
func (*Sink_stmtContext) IsSink_stmtContext ¶
func (*Sink_stmtContext) IsSink_stmtContext()
func (*Sink_stmtContext) SetChannel ¶
func (s *Sink_stmtContext) SetChannel(v antlr.Token)
func (*Sink_stmtContext) ToStringTree ¶
func (s *Sink_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StmtContext ¶
type StmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStmtContext ¶
func NewEmptyStmtContext() *StmtContext
func NewStmtContext ¶
func NewStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StmtContext
func (*StmtContext) Call_stmt ¶
func (s *StmtContext) Call_stmt() ICall_stmtContext
func (*StmtContext) Cast_stmt ¶
func (s *StmtContext) Cast_stmt() ICast_stmtContext
func (*StmtContext) EnterRule ¶
func (s *StmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*StmtContext) ExitRule ¶
func (s *StmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*StmtContext) GetParser ¶
func (s *StmtContext) GetParser() antlr.Parser
func (*StmtContext) GetRuleContext ¶
func (s *StmtContext) GetRuleContext() antlr.RuleContext
func (*StmtContext) IsStmtContext ¶
func (*StmtContext) IsStmtContext()
func (*StmtContext) Link_stmt ¶
func (s *StmtContext) Link_stmt() ILink_stmtContext
func (*StmtContext) Node_def ¶
func (s *StmtContext) Node_def() INode_defContext
func (*StmtContext) Sink_stmt ¶
func (s *StmtContext) Sink_stmt() ISink_stmtContext
func (*StmtContext) ToStringTree ¶
func (s *StmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Stmt_listContext ¶
type Stmt_listContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStmt_listContext ¶
func NewEmptyStmt_listContext() *Stmt_listContext
func NewStmt_listContext ¶
func NewStmt_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Stmt_listContext
func (*Stmt_listContext) AllStmt ¶
func (s *Stmt_listContext) AllStmt() []IStmtContext
func (*Stmt_listContext) EnterRule ¶
func (s *Stmt_listContext) EnterRule(listener antlr.ParseTreeListener)
func (*Stmt_listContext) ExitRule ¶
func (s *Stmt_listContext) ExitRule(listener antlr.ParseTreeListener)
func (*Stmt_listContext) GetParser ¶
func (s *Stmt_listContext) GetParser() antlr.Parser
func (*Stmt_listContext) GetRuleContext ¶
func (s *Stmt_listContext) GetRuleContext() antlr.RuleContext
func (*Stmt_listContext) IsStmt_listContext ¶
func (*Stmt_listContext) IsStmt_listContext()
func (*Stmt_listContext) Stmt ¶
func (s *Stmt_listContext) Stmt(i int) IStmtContext
func (*Stmt_listContext) ToStringTree ¶
func (s *Stmt_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string