parser

package module
v0.0.0-...-600cbb6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Nnef_flatLexerT__0            = 1
	Nnef_flatLexerT__1            = 2
	Nnef_flatLexerT__2            = 3
	Nnef_flatLexerT__3            = 4
	Nnef_flatLexerT__4            = 5
	Nnef_flatLexerT__5            = 6
	Nnef_flatLexerT__6            = 7
	Nnef_flatLexerT__7            = 8
	Nnef_flatLexerT__8            = 9
	Nnef_flatLexerT__9            = 10
	Nnef_flatLexerT__10           = 11
	Nnef_flatLexerT__11           = 12
	Nnef_flatLexerT__12           = 13
	Nnef_flatLexerT__13           = 14
	Nnef_flatLexerTYPE_NAME       = 15
	Nnef_flatLexerIDENTIFIER      = 16
	Nnef_flatLexerFLOAT           = 17
	Nnef_flatLexerSTRING_LITERAL  = 18
	Nnef_flatLexerLOGICAL_LITERAL = 19
	Nnef_flatLexerNUMERIC_LITERAL = 20
	Nnef_flatLexerWHITESPACE      = 21
)

Nnef_flatLexer tokens.

View Source
const (
	Nnef_flatParserEOF             = antlr.TokenEOF
	Nnef_flatParserT__0            = 1
	Nnef_flatParserT__1            = 2
	Nnef_flatParserT__2            = 3
	Nnef_flatParserT__3            = 4
	Nnef_flatParserT__4            = 5
	Nnef_flatParserT__5            = 6
	Nnef_flatParserT__6            = 7
	Nnef_flatParserT__7            = 8
	Nnef_flatParserT__8            = 9
	Nnef_flatParserT__9            = 10
	Nnef_flatParserT__10           = 11
	Nnef_flatParserT__11           = 12
	Nnef_flatParserT__12           = 13
	Nnef_flatParserT__13           = 14
	Nnef_flatParserTYPE_NAME       = 15
	Nnef_flatParserIDENTIFIER      = 16
	Nnef_flatParserFLOAT           = 17
	Nnef_flatParserSTRING_LITERAL  = 18
	Nnef_flatParserLOGICAL_LITERAL = 19
	Nnef_flatParserNUMERIC_LITERAL = 20
	Nnef_flatParserWHITESPACE      = 21
)

Nnef_flatParser tokens.

View Source
const (
	Nnef_flatParserRULE_document          = 0
	Nnef_flatParserRULE_version           = 1
	Nnef_flatParserRULE_graph_definition  = 2
	Nnef_flatParserRULE_graph_declaration = 3
	Nnef_flatParserRULE_identifier_list   = 4
	Nnef_flatParserRULE_body              = 5
	Nnef_flatParserRULE_assignment        = 6
	Nnef_flatParserRULE_invocation        = 7
	Nnef_flatParserRULE_argument_list     = 8
	Nnef_flatParserRULE_argument          = 9
	Nnef_flatParserRULE_lvalue_expr       = 10
	Nnef_flatParserRULE_array_lvalue_expr = 11
	Nnef_flatParserRULE_tuple_lvalue_expr = 12
	Nnef_flatParserRULE_rvalue_expr       = 13
	Nnef_flatParserRULE_array_rvalue_expr = 14
	Nnef_flatParserRULE_tuple_rvalue_expr = 15
	Nnef_flatParserRULE_literal           = 16
)

Nnef_flatParser rules.

Variables

This section is empty.

Functions

func Nnef_flatLexerInit

func Nnef_flatLexerInit()

Nnef_flatLexerInit initializes any static state used to implement Nnef_flatLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewNnef_flatLexer(). You can call this function if you wish to initialize the static state ahead of time.

func Nnef_flatParserInit

func Nnef_flatParserInit()

Nnef_flatParserInit initializes any static state used to implement Nnef_flatParser. By default the static state used to implement the parser is lazily initialized during the first call to NewNnef_flatParser(). You can call this function if you wish to initialize the static state ahead of time.

Types

type ArgumentContext

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

func NewArgumentContext

func NewArgumentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgumentContext

func NewEmptyArgumentContext

func NewEmptyArgumentContext() *ArgumentContext

func (*ArgumentContext) EnterRule

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

func (*ArgumentContext) ExitRule

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

func (*ArgumentContext) GetParser

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

func (*ArgumentContext) GetRuleContext

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

func (*ArgumentContext) IDENTIFIER

func (s *ArgumentContext) IDENTIFIER() antlr.TerminalNode

func (*ArgumentContext) IsArgumentContext

func (*ArgumentContext) IsArgumentContext()

func (*ArgumentContext) Rvalue_expr

func (s *ArgumentContext) Rvalue_expr() IRvalue_exprContext

func (*ArgumentContext) ToStringTree

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

type Argument_listContext

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

func NewArgument_listContext

func NewArgument_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Argument_listContext

func NewEmptyArgument_listContext

func NewEmptyArgument_listContext() *Argument_listContext

func (*Argument_listContext) AllArgument

func (s *Argument_listContext) AllArgument() []IArgumentContext

func (*Argument_listContext) Argument

func (s *Argument_listContext) Argument(i int) IArgumentContext

func (*Argument_listContext) EnterRule

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

func (*Argument_listContext) ExitRule

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

func (*Argument_listContext) GetParser

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

func (*Argument_listContext) GetRuleContext

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

func (*Argument_listContext) IsArgument_listContext

func (*Argument_listContext) IsArgument_listContext()

func (*Argument_listContext) ToStringTree

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

type Array_lvalue_exprContext

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

func NewArray_lvalue_exprContext

func NewArray_lvalue_exprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Array_lvalue_exprContext

func NewEmptyArray_lvalue_exprContext

func NewEmptyArray_lvalue_exprContext() *Array_lvalue_exprContext

func (*Array_lvalue_exprContext) AllLvalue_expr

func (s *Array_lvalue_exprContext) AllLvalue_expr() []ILvalue_exprContext

func (*Array_lvalue_exprContext) EnterRule

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

func (*Array_lvalue_exprContext) ExitRule

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

func (*Array_lvalue_exprContext) GetParser

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

func (*Array_lvalue_exprContext) GetRuleContext

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

func (*Array_lvalue_exprContext) IsArray_lvalue_exprContext

func (*Array_lvalue_exprContext) IsArray_lvalue_exprContext()

func (*Array_lvalue_exprContext) Lvalue_expr

func (*Array_lvalue_exprContext) ToStringTree

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

type Array_rvalue_exprContext

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

func NewArray_rvalue_exprContext

func NewArray_rvalue_exprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Array_rvalue_exprContext

func NewEmptyArray_rvalue_exprContext

func NewEmptyArray_rvalue_exprContext() *Array_rvalue_exprContext

func (*Array_rvalue_exprContext) AllRvalue_expr

func (s *Array_rvalue_exprContext) AllRvalue_expr() []IRvalue_exprContext

func (*Array_rvalue_exprContext) EnterRule

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

func (*Array_rvalue_exprContext) ExitRule

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

func (*Array_rvalue_exprContext) GetParser

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

func (*Array_rvalue_exprContext) GetRuleContext

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

func (*Array_rvalue_exprContext) IsArray_rvalue_exprContext

func (*Array_rvalue_exprContext) IsArray_rvalue_exprContext()

func (*Array_rvalue_exprContext) Rvalue_expr

func (*Array_rvalue_exprContext) ToStringTree

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

type AssignmentContext

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

func NewAssignmentContext

func NewAssignmentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AssignmentContext

func NewEmptyAssignmentContext

func NewEmptyAssignmentContext() *AssignmentContext

func (*AssignmentContext) EnterRule

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

func (*AssignmentContext) ExitRule

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

func (*AssignmentContext) GetParser

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

func (*AssignmentContext) GetRuleContext

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

func (*AssignmentContext) Invocation

func (s *AssignmentContext) Invocation() IInvocationContext

func (*AssignmentContext) IsAssignmentContext

func (*AssignmentContext) IsAssignmentContext()

func (*AssignmentContext) Lvalue_expr

func (s *AssignmentContext) Lvalue_expr() ILvalue_exprContext

func (*AssignmentContext) ToStringTree

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

type BaseNnef_flatListener

type BaseNnef_flatListener struct{}

BaseNnef_flatListener is a complete listener for a parse tree produced by Nnef_flatParser.

func (*BaseNnef_flatListener) EnterArgument

func (s *BaseNnef_flatListener) EnterArgument(ctx *ArgumentContext)

EnterArgument is called when production argument is entered.

func (*BaseNnef_flatListener) EnterArgument_list

func (s *BaseNnef_flatListener) EnterArgument_list(ctx *Argument_listContext)

EnterArgument_list is called when production argument_list is entered.

func (*BaseNnef_flatListener) EnterArray_lvalue_expr

func (s *BaseNnef_flatListener) EnterArray_lvalue_expr(ctx *Array_lvalue_exprContext)

EnterArray_lvalue_expr is called when production array_lvalue_expr is entered.

func (*BaseNnef_flatListener) EnterArray_rvalue_expr

func (s *BaseNnef_flatListener) EnterArray_rvalue_expr(ctx *Array_rvalue_exprContext)

EnterArray_rvalue_expr is called when production array_rvalue_expr is entered.

func (*BaseNnef_flatListener) EnterAssignment

func (s *BaseNnef_flatListener) EnterAssignment(ctx *AssignmentContext)

EnterAssignment is called when production assignment is entered.

func (*BaseNnef_flatListener) EnterBody

func (s *BaseNnef_flatListener) EnterBody(ctx *BodyContext)

EnterBody is called when production body is entered.

func (*BaseNnef_flatListener) EnterDocument

func (s *BaseNnef_flatListener) EnterDocument(ctx *DocumentContext)

EnterDocument is called when production document is entered.

func (*BaseNnef_flatListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseNnef_flatListener) EnterGraph_declaration

func (s *BaseNnef_flatListener) EnterGraph_declaration(ctx *Graph_declarationContext)

EnterGraph_declaration is called when production graph_declaration is entered.

func (*BaseNnef_flatListener) EnterGraph_definition

func (s *BaseNnef_flatListener) EnterGraph_definition(ctx *Graph_definitionContext)

EnterGraph_definition is called when production graph_definition is entered.

func (*BaseNnef_flatListener) EnterIdentifier_list

func (s *BaseNnef_flatListener) EnterIdentifier_list(ctx *Identifier_listContext)

EnterIdentifier_list is called when production identifier_list is entered.

func (*BaseNnef_flatListener) EnterInvocation

func (s *BaseNnef_flatListener) EnterInvocation(ctx *InvocationContext)

EnterInvocation is called when production invocation is entered.

func (*BaseNnef_flatListener) EnterLiteral

func (s *BaseNnef_flatListener) EnterLiteral(ctx *LiteralContext)

EnterLiteral is called when production literal is entered.

func (*BaseNnef_flatListener) EnterLvalue_expr

func (s *BaseNnef_flatListener) EnterLvalue_expr(ctx *Lvalue_exprContext)

EnterLvalue_expr is called when production lvalue_expr is entered.

func (*BaseNnef_flatListener) EnterRvalue_expr

func (s *BaseNnef_flatListener) EnterRvalue_expr(ctx *Rvalue_exprContext)

EnterRvalue_expr is called when production rvalue_expr is entered.

func (*BaseNnef_flatListener) EnterTuple_lvalue_expr

func (s *BaseNnef_flatListener) EnterTuple_lvalue_expr(ctx *Tuple_lvalue_exprContext)

EnterTuple_lvalue_expr is called when production tuple_lvalue_expr is entered.

func (*BaseNnef_flatListener) EnterTuple_rvalue_expr

func (s *BaseNnef_flatListener) EnterTuple_rvalue_expr(ctx *Tuple_rvalue_exprContext)

EnterTuple_rvalue_expr is called when production tuple_rvalue_expr is entered.

func (*BaseNnef_flatListener) EnterVersion

func (s *BaseNnef_flatListener) EnterVersion(ctx *VersionContext)

EnterVersion is called when production version is entered.

func (*BaseNnef_flatListener) ExitArgument

func (s *BaseNnef_flatListener) ExitArgument(ctx *ArgumentContext)

ExitArgument is called when production argument is exited.

func (*BaseNnef_flatListener) ExitArgument_list

func (s *BaseNnef_flatListener) ExitArgument_list(ctx *Argument_listContext)

ExitArgument_list is called when production argument_list is exited.

func (*BaseNnef_flatListener) ExitArray_lvalue_expr

func (s *BaseNnef_flatListener) ExitArray_lvalue_expr(ctx *Array_lvalue_exprContext)

ExitArray_lvalue_expr is called when production array_lvalue_expr is exited.

func (*BaseNnef_flatListener) ExitArray_rvalue_expr

func (s *BaseNnef_flatListener) ExitArray_rvalue_expr(ctx *Array_rvalue_exprContext)

ExitArray_rvalue_expr is called when production array_rvalue_expr is exited.

func (*BaseNnef_flatListener) ExitAssignment

func (s *BaseNnef_flatListener) ExitAssignment(ctx *AssignmentContext)

ExitAssignment is called when production assignment is exited.

func (*BaseNnef_flatListener) ExitBody

func (s *BaseNnef_flatListener) ExitBody(ctx *BodyContext)

ExitBody is called when production body is exited.

func (*BaseNnef_flatListener) ExitDocument

func (s *BaseNnef_flatListener) ExitDocument(ctx *DocumentContext)

ExitDocument is called when production document is exited.

func (*BaseNnef_flatListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseNnef_flatListener) ExitGraph_declaration

func (s *BaseNnef_flatListener) ExitGraph_declaration(ctx *Graph_declarationContext)

ExitGraph_declaration is called when production graph_declaration is exited.

func (*BaseNnef_flatListener) ExitGraph_definition

func (s *BaseNnef_flatListener) ExitGraph_definition(ctx *Graph_definitionContext)

ExitGraph_definition is called when production graph_definition is exited.

func (*BaseNnef_flatListener) ExitIdentifier_list

func (s *BaseNnef_flatListener) ExitIdentifier_list(ctx *Identifier_listContext)

ExitIdentifier_list is called when production identifier_list is exited.

func (*BaseNnef_flatListener) ExitInvocation

func (s *BaseNnef_flatListener) ExitInvocation(ctx *InvocationContext)

ExitInvocation is called when production invocation is exited.

func (*BaseNnef_flatListener) ExitLiteral

func (s *BaseNnef_flatListener) ExitLiteral(ctx *LiteralContext)

ExitLiteral is called when production literal is exited.

func (*BaseNnef_flatListener) ExitLvalue_expr

func (s *BaseNnef_flatListener) ExitLvalue_expr(ctx *Lvalue_exprContext)

ExitLvalue_expr is called when production lvalue_expr is exited.

func (*BaseNnef_flatListener) ExitRvalue_expr

func (s *BaseNnef_flatListener) ExitRvalue_expr(ctx *Rvalue_exprContext)

ExitRvalue_expr is called when production rvalue_expr is exited.

func (*BaseNnef_flatListener) ExitTuple_lvalue_expr

func (s *BaseNnef_flatListener) ExitTuple_lvalue_expr(ctx *Tuple_lvalue_exprContext)

ExitTuple_lvalue_expr is called when production tuple_lvalue_expr is exited.

func (*BaseNnef_flatListener) ExitTuple_rvalue_expr

func (s *BaseNnef_flatListener) ExitTuple_rvalue_expr(ctx *Tuple_rvalue_exprContext)

ExitTuple_rvalue_expr is called when production tuple_rvalue_expr is exited.

func (*BaseNnef_flatListener) ExitVersion

func (s *BaseNnef_flatListener) ExitVersion(ctx *VersionContext)

ExitVersion is called when production version is exited.

func (*BaseNnef_flatListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseNnef_flatListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type BodyContext

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

func NewBodyContext

func NewBodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BodyContext

func NewEmptyBodyContext

func NewEmptyBodyContext() *BodyContext

func (*BodyContext) AllAssignment

func (s *BodyContext) AllAssignment() []IAssignmentContext

func (*BodyContext) Assignment

func (s *BodyContext) Assignment(i int) IAssignmentContext

func (*BodyContext) EnterRule

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

func (*BodyContext) ExitRule

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

func (*BodyContext) GetParser

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

func (*BodyContext) GetRuleContext

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

func (*BodyContext) IsBodyContext

func (*BodyContext) IsBodyContext()

func (*BodyContext) ToStringTree

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

type DocumentContext

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

func NewDocumentContext

func NewDocumentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DocumentContext

func NewEmptyDocumentContext

func NewEmptyDocumentContext() *DocumentContext

func (*DocumentContext) EnterRule

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

func (*DocumentContext) ExitRule

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

func (*DocumentContext) GetParser

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

func (*DocumentContext) GetRuleContext

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

func (*DocumentContext) Graph_definition

func (s *DocumentContext) Graph_definition() IGraph_definitionContext

func (*DocumentContext) IsDocumentContext

func (*DocumentContext) IsDocumentContext()

func (*DocumentContext) ToStringTree

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

func (*DocumentContext) Version

func (s *DocumentContext) Version() IVersionContext

type Graph_declarationContext

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

func NewEmptyGraph_declarationContext

func NewEmptyGraph_declarationContext() *Graph_declarationContext

func NewGraph_declarationContext

func NewGraph_declarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Graph_declarationContext

func (*Graph_declarationContext) AllIdentifier_list

func (s *Graph_declarationContext) AllIdentifier_list() []IIdentifier_listContext

func (*Graph_declarationContext) EnterRule

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

func (*Graph_declarationContext) ExitRule

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

func (*Graph_declarationContext) GetParser

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

func (*Graph_declarationContext) GetRuleContext

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

func (*Graph_declarationContext) IDENTIFIER

func (*Graph_declarationContext) Identifier_list

func (*Graph_declarationContext) IsGraph_declarationContext

func (*Graph_declarationContext) IsGraph_declarationContext()

func (*Graph_declarationContext) ToStringTree

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

type Graph_definitionContext

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

func NewEmptyGraph_definitionContext

func NewEmptyGraph_definitionContext() *Graph_definitionContext

func NewGraph_definitionContext

func NewGraph_definitionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Graph_definitionContext

func (*Graph_definitionContext) Body

func (*Graph_definitionContext) EnterRule

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

func (*Graph_definitionContext) ExitRule

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

func (*Graph_definitionContext) GetParser

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

func (*Graph_definitionContext) GetRuleContext

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

func (*Graph_definitionContext) Graph_declaration

func (s *Graph_definitionContext) Graph_declaration() IGraph_declarationContext

func (*Graph_definitionContext) IsGraph_definitionContext

func (*Graph_definitionContext) IsGraph_definitionContext()

func (*Graph_definitionContext) ToStringTree

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

type IArgumentContext

type IArgumentContext interface {
	antlr.ParserRuleContext

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

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

IArgumentContext is an interface to support dynamic dispatch.

type IArgument_listContext

type IArgument_listContext interface {
	antlr.ParserRuleContext

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

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

IArgument_listContext is an interface to support dynamic dispatch.

type IArray_lvalue_exprContext

type IArray_lvalue_exprContext interface {
	antlr.ParserRuleContext

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

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

IArray_lvalue_exprContext is an interface to support dynamic dispatch.

type IArray_rvalue_exprContext

type IArray_rvalue_exprContext interface {
	antlr.ParserRuleContext

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

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

IArray_rvalue_exprContext is an interface to support dynamic dispatch.

type IAssignmentContext

type IAssignmentContext interface {
	antlr.ParserRuleContext

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

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

IAssignmentContext is an interface to support dynamic dispatch.

type IBodyContext

type IBodyContext interface {
	antlr.ParserRuleContext

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

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

IBodyContext is an interface to support dynamic dispatch.

type IDocumentContext

type IDocumentContext interface {
	antlr.ParserRuleContext

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

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

IDocumentContext is an interface to support dynamic dispatch.

type IGraph_declarationContext

type IGraph_declarationContext interface {
	antlr.ParserRuleContext

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

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

IGraph_declarationContext is an interface to support dynamic dispatch.

type IGraph_definitionContext

type IGraph_definitionContext interface {
	antlr.ParserRuleContext

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

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

IGraph_definitionContext is an interface to support dynamic dispatch.

type IIdentifier_listContext

type IIdentifier_listContext interface {
	antlr.ParserRuleContext

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

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

IIdentifier_listContext is an interface to support dynamic dispatch.

type IInvocationContext

type IInvocationContext interface {
	antlr.ParserRuleContext

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

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

IInvocationContext is an interface to support dynamic dispatch.

type ILiteralContext

type ILiteralContext interface {
	antlr.ParserRuleContext

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

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

ILiteralContext is an interface to support dynamic dispatch.

type ILvalue_exprContext

type ILvalue_exprContext interface {
	antlr.ParserRuleContext

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

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

ILvalue_exprContext is an interface to support dynamic dispatch.

type IRvalue_exprContext

type IRvalue_exprContext interface {
	antlr.ParserRuleContext

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

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

IRvalue_exprContext is an interface to support dynamic dispatch.

type ITuple_lvalue_exprContext

type ITuple_lvalue_exprContext interface {
	antlr.ParserRuleContext

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

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

ITuple_lvalue_exprContext is an interface to support dynamic dispatch.

type ITuple_rvalue_exprContext

type ITuple_rvalue_exprContext interface {
	antlr.ParserRuleContext

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

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

ITuple_rvalue_exprContext is an interface to support dynamic dispatch.

type IVersionContext

type IVersionContext interface {
	antlr.ParserRuleContext

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

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

IVersionContext is an interface to support dynamic dispatch.

type Identifier_listContext

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

func NewEmptyIdentifier_listContext

func NewEmptyIdentifier_listContext() *Identifier_listContext

func NewIdentifier_listContext

func NewIdentifier_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Identifier_listContext

func (*Identifier_listContext) AllIDENTIFIER

func (s *Identifier_listContext) AllIDENTIFIER() []antlr.TerminalNode

func (*Identifier_listContext) EnterRule

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

func (*Identifier_listContext) ExitRule

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

func (*Identifier_listContext) GetParser

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

func (*Identifier_listContext) GetRuleContext

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

func (*Identifier_listContext) IDENTIFIER

func (s *Identifier_listContext) IDENTIFIER(i int) antlr.TerminalNode

func (*Identifier_listContext) IsIdentifier_listContext

func (*Identifier_listContext) IsIdentifier_listContext()

func (*Identifier_listContext) ToStringTree

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

type InvocationContext

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

func NewEmptyInvocationContext

func NewEmptyInvocationContext() *InvocationContext

func NewInvocationContext

func NewInvocationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *InvocationContext

func (*InvocationContext) Argument_list

func (s *InvocationContext) Argument_list() IArgument_listContext

func (*InvocationContext) EnterRule

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

func (*InvocationContext) ExitRule

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

func (*InvocationContext) GetParser

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

func (*InvocationContext) GetRuleContext

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

func (*InvocationContext) IDENTIFIER

func (s *InvocationContext) IDENTIFIER() antlr.TerminalNode

func (*InvocationContext) IsInvocationContext

func (*InvocationContext) IsInvocationContext()

func (*InvocationContext) TYPE_NAME

func (s *InvocationContext) TYPE_NAME() antlr.TerminalNode

func (*InvocationContext) ToStringTree

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

type LiteralContext

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

func NewEmptyLiteralContext

func NewEmptyLiteralContext() *LiteralContext

func NewLiteralContext

func NewLiteralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LiteralContext

func (*LiteralContext) EnterRule

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

func (*LiteralContext) ExitRule

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

func (*LiteralContext) GetParser

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

func (*LiteralContext) GetRuleContext

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

func (*LiteralContext) IsLiteralContext

func (*LiteralContext) IsLiteralContext()

func (*LiteralContext) LOGICAL_LITERAL

func (s *LiteralContext) LOGICAL_LITERAL() antlr.TerminalNode

func (*LiteralContext) NUMERIC_LITERAL

func (s *LiteralContext) NUMERIC_LITERAL() antlr.TerminalNode

func (*LiteralContext) STRING_LITERAL

func (s *LiteralContext) STRING_LITERAL() antlr.TerminalNode

func (*LiteralContext) ToStringTree

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

type Lvalue_exprContext

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

func NewEmptyLvalue_exprContext

func NewEmptyLvalue_exprContext() *Lvalue_exprContext

func NewLvalue_exprContext

func NewLvalue_exprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Lvalue_exprContext

func (*Lvalue_exprContext) Array_lvalue_expr

func (s *Lvalue_exprContext) Array_lvalue_expr() IArray_lvalue_exprContext

func (*Lvalue_exprContext) EnterRule

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

func (*Lvalue_exprContext) ExitRule

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

func (*Lvalue_exprContext) GetParser

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

func (*Lvalue_exprContext) GetRuleContext

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

func (*Lvalue_exprContext) IDENTIFIER

func (s *Lvalue_exprContext) IDENTIFIER() antlr.TerminalNode

func (*Lvalue_exprContext) IsLvalue_exprContext

func (*Lvalue_exprContext) IsLvalue_exprContext()

func (*Lvalue_exprContext) ToStringTree

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

type Nnef_flatLexer

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

func NewNnef_flatLexer

func NewNnef_flatLexer(input antlr.CharStream) *Nnef_flatLexer

NewNnef_flatLexer produces a new lexer instance for the optional input antlr.CharStream.

type Nnef_flatListener

type Nnef_flatListener interface {
	antlr.ParseTreeListener

	// EnterDocument is called when entering the document production.
	EnterDocument(c *DocumentContext)

	// EnterVersion is called when entering the version production.
	EnterVersion(c *VersionContext)

	// EnterGraph_definition is called when entering the graph_definition production.
	EnterGraph_definition(c *Graph_definitionContext)

	// EnterGraph_declaration is called when entering the graph_declaration production.
	EnterGraph_declaration(c *Graph_declarationContext)

	// EnterIdentifier_list is called when entering the identifier_list production.
	EnterIdentifier_list(c *Identifier_listContext)

	// EnterBody is called when entering the body production.
	EnterBody(c *BodyContext)

	// EnterAssignment is called when entering the assignment production.
	EnterAssignment(c *AssignmentContext)

	// EnterInvocation is called when entering the invocation production.
	EnterInvocation(c *InvocationContext)

	// EnterArgument_list is called when entering the argument_list production.
	EnterArgument_list(c *Argument_listContext)

	// EnterArgument is called when entering the argument production.
	EnterArgument(c *ArgumentContext)

	// EnterLvalue_expr is called when entering the lvalue_expr production.
	EnterLvalue_expr(c *Lvalue_exprContext)

	// EnterArray_lvalue_expr is called when entering the array_lvalue_expr production.
	EnterArray_lvalue_expr(c *Array_lvalue_exprContext)

	// EnterTuple_lvalue_expr is called when entering the tuple_lvalue_expr production.
	EnterTuple_lvalue_expr(c *Tuple_lvalue_exprContext)

	// EnterRvalue_expr is called when entering the rvalue_expr production.
	EnterRvalue_expr(c *Rvalue_exprContext)

	// EnterArray_rvalue_expr is called when entering the array_rvalue_expr production.
	EnterArray_rvalue_expr(c *Array_rvalue_exprContext)

	// EnterTuple_rvalue_expr is called when entering the tuple_rvalue_expr production.
	EnterTuple_rvalue_expr(c *Tuple_rvalue_exprContext)

	// EnterLiteral is called when entering the literal production.
	EnterLiteral(c *LiteralContext)

	// ExitDocument is called when exiting the document production.
	ExitDocument(c *DocumentContext)

	// ExitVersion is called when exiting the version production.
	ExitVersion(c *VersionContext)

	// ExitGraph_definition is called when exiting the graph_definition production.
	ExitGraph_definition(c *Graph_definitionContext)

	// ExitGraph_declaration is called when exiting the graph_declaration production.
	ExitGraph_declaration(c *Graph_declarationContext)

	// ExitIdentifier_list is called when exiting the identifier_list production.
	ExitIdentifier_list(c *Identifier_listContext)

	// ExitBody is called when exiting the body production.
	ExitBody(c *BodyContext)

	// ExitAssignment is called when exiting the assignment production.
	ExitAssignment(c *AssignmentContext)

	// ExitInvocation is called when exiting the invocation production.
	ExitInvocation(c *InvocationContext)

	// ExitArgument_list is called when exiting the argument_list production.
	ExitArgument_list(c *Argument_listContext)

	// ExitArgument is called when exiting the argument production.
	ExitArgument(c *ArgumentContext)

	// ExitLvalue_expr is called when exiting the lvalue_expr production.
	ExitLvalue_expr(c *Lvalue_exprContext)

	// ExitArray_lvalue_expr is called when exiting the array_lvalue_expr production.
	ExitArray_lvalue_expr(c *Array_lvalue_exprContext)

	// ExitTuple_lvalue_expr is called when exiting the tuple_lvalue_expr production.
	ExitTuple_lvalue_expr(c *Tuple_lvalue_exprContext)

	// ExitRvalue_expr is called when exiting the rvalue_expr production.
	ExitRvalue_expr(c *Rvalue_exprContext)

	// ExitArray_rvalue_expr is called when exiting the array_rvalue_expr production.
	ExitArray_rvalue_expr(c *Array_rvalue_exprContext)

	// ExitTuple_rvalue_expr is called when exiting the tuple_rvalue_expr production.
	ExitTuple_rvalue_expr(c *Tuple_rvalue_exprContext)

	// ExitLiteral is called when exiting the literal production.
	ExitLiteral(c *LiteralContext)
}

Nnef_flatListener is a complete listener for a parse tree produced by Nnef_flatParser.

type Nnef_flatParser

type Nnef_flatParser struct {
	*antlr.BaseParser
}

func NewNnef_flatParser

func NewNnef_flatParser(input antlr.TokenStream) *Nnef_flatParser

NewNnef_flatParser produces a new parser instance for the optional input antlr.TokenStream.

func (*Nnef_flatParser) Argument

func (p *Nnef_flatParser) Argument() (localctx IArgumentContext)

func (*Nnef_flatParser) Argument_list

func (p *Nnef_flatParser) Argument_list() (localctx IArgument_listContext)

func (*Nnef_flatParser) Array_lvalue_expr

func (p *Nnef_flatParser) Array_lvalue_expr() (localctx IArray_lvalue_exprContext)

func (*Nnef_flatParser) Array_rvalue_expr

func (p *Nnef_flatParser) Array_rvalue_expr() (localctx IArray_rvalue_exprContext)

func (*Nnef_flatParser) Assignment

func (p *Nnef_flatParser) Assignment() (localctx IAssignmentContext)

func (*Nnef_flatParser) Body

func (p *Nnef_flatParser) Body() (localctx IBodyContext)

func (*Nnef_flatParser) Document

func (p *Nnef_flatParser) Document() (localctx IDocumentContext)

func (*Nnef_flatParser) Graph_declaration

func (p *Nnef_flatParser) Graph_declaration() (localctx IGraph_declarationContext)

func (*Nnef_flatParser) Graph_definition

func (p *Nnef_flatParser) Graph_definition() (localctx IGraph_definitionContext)

func (*Nnef_flatParser) Identifier_list

func (p *Nnef_flatParser) Identifier_list() (localctx IIdentifier_listContext)

func (*Nnef_flatParser) Invocation

func (p *Nnef_flatParser) Invocation() (localctx IInvocationContext)

func (*Nnef_flatParser) Literal

func (p *Nnef_flatParser) Literal() (localctx ILiteralContext)

func (*Nnef_flatParser) Lvalue_expr

func (p *Nnef_flatParser) Lvalue_expr() (localctx ILvalue_exprContext)

func (*Nnef_flatParser) Rvalue_expr

func (p *Nnef_flatParser) Rvalue_expr() (localctx IRvalue_exprContext)

func (*Nnef_flatParser) Tuple_lvalue_expr

func (p *Nnef_flatParser) Tuple_lvalue_expr() (localctx ITuple_lvalue_exprContext)

func (*Nnef_flatParser) Tuple_rvalue_expr

func (p *Nnef_flatParser) Tuple_rvalue_expr() (localctx ITuple_rvalue_exprContext)

func (*Nnef_flatParser) Version

func (p *Nnef_flatParser) Version() (localctx IVersionContext)

type Rvalue_exprContext

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

func NewEmptyRvalue_exprContext

func NewEmptyRvalue_exprContext() *Rvalue_exprContext

func NewRvalue_exprContext

func NewRvalue_exprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Rvalue_exprContext

func (*Rvalue_exprContext) Array_rvalue_expr

func (s *Rvalue_exprContext) Array_rvalue_expr() IArray_rvalue_exprContext

func (*Rvalue_exprContext) EnterRule

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

func (*Rvalue_exprContext) ExitRule

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

func (*Rvalue_exprContext) GetParser

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

func (*Rvalue_exprContext) GetRuleContext

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

func (*Rvalue_exprContext) IDENTIFIER

func (s *Rvalue_exprContext) IDENTIFIER() antlr.TerminalNode

func (*Rvalue_exprContext) IsRvalue_exprContext

func (*Rvalue_exprContext) IsRvalue_exprContext()

func (*Rvalue_exprContext) Literal

func (s *Rvalue_exprContext) Literal() ILiteralContext

func (*Rvalue_exprContext) ToStringTree

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

func (*Rvalue_exprContext) Tuple_rvalue_expr

func (s *Rvalue_exprContext) Tuple_rvalue_expr() ITuple_rvalue_exprContext

type Tuple_lvalue_exprContext

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

func NewEmptyTuple_lvalue_exprContext

func NewEmptyTuple_lvalue_exprContext() *Tuple_lvalue_exprContext

func NewTuple_lvalue_exprContext

func NewTuple_lvalue_exprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Tuple_lvalue_exprContext

func (*Tuple_lvalue_exprContext) AllLvalue_expr

func (s *Tuple_lvalue_exprContext) AllLvalue_expr() []ILvalue_exprContext

func (*Tuple_lvalue_exprContext) EnterRule

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

func (*Tuple_lvalue_exprContext) ExitRule

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

func (*Tuple_lvalue_exprContext) GetParser

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

func (*Tuple_lvalue_exprContext) GetRuleContext

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

func (*Tuple_lvalue_exprContext) IsTuple_lvalue_exprContext

func (*Tuple_lvalue_exprContext) IsTuple_lvalue_exprContext()

func (*Tuple_lvalue_exprContext) Lvalue_expr

func (*Tuple_lvalue_exprContext) ToStringTree

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

type Tuple_rvalue_exprContext

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

func NewEmptyTuple_rvalue_exprContext

func NewEmptyTuple_rvalue_exprContext() *Tuple_rvalue_exprContext

func NewTuple_rvalue_exprContext

func NewTuple_rvalue_exprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Tuple_rvalue_exprContext

func (*Tuple_rvalue_exprContext) AllRvalue_expr

func (s *Tuple_rvalue_exprContext) AllRvalue_expr() []IRvalue_exprContext

func (*Tuple_rvalue_exprContext) EnterRule

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

func (*Tuple_rvalue_exprContext) ExitRule

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

func (*Tuple_rvalue_exprContext) GetParser

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

func (*Tuple_rvalue_exprContext) GetRuleContext

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

func (*Tuple_rvalue_exprContext) IsTuple_rvalue_exprContext

func (*Tuple_rvalue_exprContext) IsTuple_rvalue_exprContext()

func (*Tuple_rvalue_exprContext) Rvalue_expr

func (*Tuple_rvalue_exprContext) ToStringTree

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

type VersionContext

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

func NewEmptyVersionContext

func NewEmptyVersionContext() *VersionContext

func NewVersionContext

func NewVersionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *VersionContext

func (*VersionContext) EnterRule

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

func (*VersionContext) ExitRule

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

func (*VersionContext) FLOAT

func (s *VersionContext) FLOAT() antlr.TerminalNode

func (*VersionContext) GetParser

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

func (*VersionContext) GetRuleContext

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

func (*VersionContext) IsVersionContext

func (*VersionContext) IsVersionContext()

func (*VersionContext) ToStringTree

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

Jump to

Keyboard shortcuts

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