Versions in this module Expand all Collapse all v0 v0.0.3 Jul 12, 2022 v0.0.2 Oct 26, 2021 Changes in this version + func NewnmdLexer(input antlr.CharStream) *nmdLexer + func NewnmdParser(input antlr.TokenStream) *nmdParser + type BasenmdListener struct + 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 struct + Cmd string + Node *NodeDef + type Call_stmtContext struct + func NewCall_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Call_stmtContext + func NewEmptyCall_stmtContext() *Call_stmtContext + func (*Call_stmtContext) IsCall_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 (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 struct + type Cast_stmtContext struct + func NewCast_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Cast_stmtContext + func NewEmptyCast_stmtContext() *Cast_stmtContext + func (*Cast_stmtContext) IsCast_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 (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 struct + func NewEmptyEndpointContext() *EndpointContext + func NewEndpointContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EndpointContext + func (*EndpointContext) IsEndpointContext() + 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 (s *EndpointContext) Node_def(i int) INode_defContext + func (s *EndpointContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string + type EndpointDefs struct + Nodes []*NodeDef + type GraphContext struct + func NewEmptyGraphContext() *GraphContext + func NewGraphContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GraphContext + func (*GraphContext) IsGraphContext() + 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 (s *GraphContext) Stmt_list() IStmt_listContext + func (s *GraphContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string + type GraphTopology struct + func NewGraphTopology() *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 interface + GetCmd func() antlr.Token + GetParser func() antlr.Parser + IsCall_stmtContext func() + SetCmd func(antlr.Token) + type ICast_stmtContext interface + GetCmd func() antlr.Token + GetParser func() antlr.Parser + IsCast_stmtContext func() + SetCmd func(antlr.Token) + type IEndpointContext interface + GetParser func() antlr.Parser + IsEndpointContext func() + type IGraphContext interface + GetParser func() antlr.Parser + IsGraphContext func() + type ILink_stmtContext interface + GetParser func() antlr.Parser + IsLink_stmtContext func() + type INode_defContext interface + GetParser func() antlr.Parser + IsNode_defContext func() + type INode_idContext interface + GetName func() antlr.Token + GetParser func() antlr.Parser + GetScope func() antlr.Token + GetTyp func() antlr.Token + IsNode_idContext func() + SetName func(antlr.Token) + SetScope func(antlr.Token) + SetTyp func(antlr.Token) + type INode_propContext interface + GetKey func() antlr.Token + GetParser func() antlr.Parser + GetValue func() IPropertyContext + IsNode_propContext func() + SetKey func(antlr.Token) + SetValue func(IPropertyContext) + type IPropertyContext interface + GetParser func() antlr.Parser + IsPropertyContext func() + type ISink_stmtContext interface + GetChannel func() antlr.Token + GetParser func() antlr.Parser + IsSink_stmtContext func() + SetChannel func(antlr.Token) + type IStmtContext interface + GetParser func() antlr.Parser + IsStmtContext func() + type IStmt_listContext interface + GetParser func() antlr.Parser + IsStmt_listContext func() + type Link_stmtContext struct + func NewEmptyLink_stmtContext() *Link_stmtContext + func NewLink_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Link_stmtContext + func (*Link_stmtContext) IsLink_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 (s *Link_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string + type Listener struct + CallDefs []*CallActionDefs + CastDefs []*CastActionDefs + NodeDefs []*NodeDef + SinkDefs []*SinkActionDefs + func NewListener(sessionId string) *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 struct + Deps []*NodeDef + Index int + Name string + Props []*NodeProp + Scope string + Type string + func (nd *NodeDef) String() string + type NodeProp struct + Key string + Type string + Value interface{} + func (np *NodeProp) FormalizeKey() + type Node_defContext struct + func NewEmptyNode_defContext() *Node_defContext + func NewNode_defContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Node_defContext + func (*Node_defContext) IsNode_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 (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 struct + func NewEmptyNode_idContext() *Node_idContext + func NewNode_idContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Node_idContext + func (*Node_idContext) IsNode_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 (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 struct + func NewEmptyNode_propContext() *Node_propContext + func NewNode_propContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Node_propContext + func (*Node_propContext) IsNode_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 (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 struct + func NewPropFloatContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropFloatContext + func (s *PropFloatContext) EnterRule(listener antlr.ParseTreeListener) + func (s *PropFloatContext) ExitRule(listener antlr.ParseTreeListener) + func (s *PropFloatContext) FLOAT() antlr.TerminalNode + func (s *PropFloatContext) GetRuleContext() antlr.RuleContext + type PropIdContext struct + func NewPropIdContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropIdContext + func (s *PropIdContext) EnterRule(listener antlr.ParseTreeListener) + func (s *PropIdContext) ExitRule(listener antlr.ParseTreeListener) + func (s *PropIdContext) GetRuleContext() antlr.RuleContext + func (s *PropIdContext) ID() antlr.TerminalNode + type PropIntContext struct + func NewPropIntContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropIntContext + func (s *PropIntContext) EnterRule(listener antlr.ParseTreeListener) + func (s *PropIntContext) ExitRule(listener antlr.ParseTreeListener) + func (s *PropIntContext) GetRuleContext() antlr.RuleContext + func (s *PropIntContext) INT() antlr.TerminalNode + type PropQuoteStringContext struct + func NewPropQuoteStringContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropQuoteStringContext + func (s *PropQuoteStringContext) EnterRule(listener antlr.ParseTreeListener) + func (s *PropQuoteStringContext) ExitRule(listener antlr.ParseTreeListener) + func (s *PropQuoteStringContext) GetRuleContext() antlr.RuleContext + func (s *PropQuoteStringContext) QUOTED_STRING() antlr.TerminalNode + type PropertyContext struct + func NewEmptyPropertyContext() *PropertyContext + func NewPropertyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PropertyContext + func (*PropertyContext) IsPropertyContext() + func (s *PropertyContext) CopyFrom(ctx *PropertyContext) + func (s *PropertyContext) GetParser() antlr.Parser + func (s *PropertyContext) GetRuleContext() antlr.RuleContext + func (s *PropertyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string + type SinkActionDefs struct + ChannelName string + type Sink_stmtContext struct + func NewEmptySink_stmtContext() *Sink_stmtContext + func NewSink_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Sink_stmtContext + func (*Sink_stmtContext) IsSink_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 (s *Sink_stmtContext) SetChannel(v antlr.Token) + func (s *Sink_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string + type StmtContext struct + func NewEmptyStmtContext() *StmtContext + func NewStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StmtContext + func (*StmtContext) IsStmtContext() + 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 (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 struct + func NewEmptyStmt_listContext() *Stmt_listContext + func NewStmt_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Stmt_listContext + func (*Stmt_listContext) IsStmt_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 (s *Stmt_listContext) Stmt(i int) IStmtContext + func (s *Stmt_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string