parser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SugaredAbuLexerAND           = 1
	SugaredAbuLexerOR            = 2
	SugaredAbuLexerNOT           = 3
	SugaredAbuLexerABSINT        = 4
	SugaredAbuLexerABSDEC        = 5
	SugaredAbuLexerDOT           = 6
	SugaredAbuLexerPLUS          = 7
	SugaredAbuLexerMINUS         = 8
	SugaredAbuLexerDIV           = 9
	SugaredAbuLexerMUL           = 10
	SugaredAbuLexerMOD           = 11
	SugaredAbuLexerEQUALS        = 12
	SugaredAbuLexerGT            = 13
	SugaredAbuLexerLT            = 14
	SugaredAbuLexerGTE           = 15
	SugaredAbuLexerLTE           = 16
	SugaredAbuLexerNOTEQUALS     = 17
	SugaredAbuLexerDOUBLECOLON   = 18
	SugaredAbuLexerCOLON         = 19
	SugaredAbuLexerSEMICOLON     = 20
	SugaredAbuLexerCOLONEQUAL    = 21
	SugaredAbuLexerEQUALSIGN     = 22
	SugaredAbuLexerCOMMA         = 23
	SugaredAbuLexerRL_BRACKET    = 24
	SugaredAbuLexerRR_BRACKET    = 25
	SugaredAbuLexerSL_BRACKET    = 26
	SugaredAbuLexerSR_BRACKET    = 27
	SugaredAbuLexerCL_BRACKET    = 28
	SugaredAbuLexerCR_BRACKET    = 29
	SugaredAbuLexerHAS           = 30
	SugaredAbuLexerWHERE         = 31
	SugaredAbuLexerPHYSICAL      = 32
	SugaredAbuLexerLOGICAL       = 33
	SugaredAbuLexerINPUT         = 34
	SugaredAbuLexerOUTPUT        = 35
	SugaredAbuLexerRULE          = 36
	SugaredAbuLexerTHIS          = 37
	SugaredAbuLexerEXT           = 38
	SugaredAbuLexerON            = 39
	SugaredAbuLexerLET           = 40
	SugaredAbuLexerIN            = 41
	SugaredAbuLexerDEFAULT       = 42
	SugaredAbuLexerFOR           = 43
	SugaredAbuLexerALL           = 44
	SugaredAbuLexerDO            = 45
	SugaredAbuLexerOWISE         = 46
	SugaredAbuLexerDEFINE        = 47
	SugaredAbuLexerAS            = 48
	SugaredAbuLexerBOOLEAN       = 49
	SugaredAbuLexerINTEGER       = 50
	SugaredAbuLexerDECIMAL       = 51
	SugaredAbuLexerSTRING        = 52
	SugaredAbuLexerTRUE          = 53
	SugaredAbuLexerFALSE         = 54
	SugaredAbuLexerID            = 55
	SugaredAbuLexerQUOTED_STRING = 56
	SugaredAbuLexerDEC_LITERAL   = 57
	SugaredAbuLexerINT_LITERAL   = 58
	SugaredAbuLexerWS            = 59
	SugaredAbuLexerCOMMENT       = 60
	SugaredAbuLexerLINE_COMMENT  = 61
)

SugaredAbuLexer tokens.

View Source
const (
	SugaredAbuParserEOF           = antlr.TokenEOF
	SugaredAbuParserAND           = 1
	SugaredAbuParserOR            = 2
	SugaredAbuParserNOT           = 3
	SugaredAbuParserABSINT        = 4
	SugaredAbuParserABSDEC        = 5
	SugaredAbuParserDOT           = 6
	SugaredAbuParserPLUS          = 7
	SugaredAbuParserMINUS         = 8
	SugaredAbuParserDIV           = 9
	SugaredAbuParserMUL           = 10
	SugaredAbuParserMOD           = 11
	SugaredAbuParserEQUALS        = 12
	SugaredAbuParserGT            = 13
	SugaredAbuParserLT            = 14
	SugaredAbuParserGTE           = 15
	SugaredAbuParserLTE           = 16
	SugaredAbuParserNOTEQUALS     = 17
	SugaredAbuParserDOUBLECOLON   = 18
	SugaredAbuParserCOLON         = 19
	SugaredAbuParserSEMICOLON     = 20
	SugaredAbuParserCOLONEQUAL    = 21
	SugaredAbuParserEQUALSIGN     = 22
	SugaredAbuParserCOMMA         = 23
	SugaredAbuParserRL_BRACKET    = 24
	SugaredAbuParserRR_BRACKET    = 25
	SugaredAbuParserSL_BRACKET    = 26
	SugaredAbuParserSR_BRACKET    = 27
	SugaredAbuParserCL_BRACKET    = 28
	SugaredAbuParserCR_BRACKET    = 29
	SugaredAbuParserHAS           = 30
	SugaredAbuParserWHERE         = 31
	SugaredAbuParserPHYSICAL      = 32
	SugaredAbuParserLOGICAL       = 33
	SugaredAbuParserINPUT         = 34
	SugaredAbuParserOUTPUT        = 35
	SugaredAbuParserRULE          = 36
	SugaredAbuParserTHIS          = 37
	SugaredAbuParserEXT           = 38
	SugaredAbuParserON            = 39
	SugaredAbuParserLET           = 40
	SugaredAbuParserIN            = 41
	SugaredAbuParserDEFAULT       = 42
	SugaredAbuParserFOR           = 43
	SugaredAbuParserALL           = 44
	SugaredAbuParserDO            = 45
	SugaredAbuParserOWISE         = 46
	SugaredAbuParserDEFINE        = 47
	SugaredAbuParserAS            = 48
	SugaredAbuParserBOOLEAN       = 49
	SugaredAbuParserINTEGER       = 50
	SugaredAbuParserDECIMAL       = 51
	SugaredAbuParserSTRING        = 52
	SugaredAbuParserTRUE          = 53
	SugaredAbuParserFALSE         = 54
	SugaredAbuParserID            = 55
	SugaredAbuParserQUOTED_STRING = 56
	SugaredAbuParserDEC_LITERAL   = 57
	SugaredAbuParserINT_LITERAL   = 58
	SugaredAbuParserWS            = 59
	SugaredAbuParserCOMMENT       = 60
	SugaredAbuParserLINE_COMMENT  = 61
)

SugaredAbuParser tokens.

View Source
const (
	SugaredAbuParserRULE_program            = 0
	SugaredAbuParserRULE_typeDecl           = 1
	SugaredAbuParserRULE_resField           = 2
	SugaredAbuParserRULE_device             = 3
	SugaredAbuParserRULE_resList            = 4
	SugaredAbuParserRULE_resDecl            = 5
	SugaredAbuParserRULE_compResDecl        = 6
	SugaredAbuParserRULE_type               = 7
	SugaredAbuParserRULE_ecarule            = 8
	SugaredAbuParserRULE_letDecl            = 9
	SugaredAbuParserRULE_task               = 10
	SugaredAbuParserRULE_actions            = 11
	SugaredAbuParserRULE_assignment         = 12
	SugaredAbuParserRULE_expression         = 13
	SugaredAbuParserRULE_mulDivModOperator  = 14
	SugaredAbuParserRULE_plusMinusOperator  = 15
	SugaredAbuParserRULE_comparisonOperator = 16
	SugaredAbuParserRULE_term               = 17
	SugaredAbuParserRULE_value              = 18
	SugaredAbuParserRULE_resource           = 19
	SugaredAbuParserRULE_simpleResource     = 20
	SugaredAbuParserRULE_nestedResource     = 21
	SugaredAbuParserRULE_decimalLiteral     = 22
	SugaredAbuParserRULE_integerLiteral     = 23
	SugaredAbuParserRULE_stringLiteral      = 24
	SugaredAbuParserRULE_booleanLiteral     = 25
)

SugaredAbuParser rules.

Variables

View Source
var SugaredAbuLexerLexerStaticData struct {
	ChannelNames           []string
	ModeNames              []string
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}
View Source
var SugaredAbuParserParserStaticData struct {
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}

Functions

func InitEmptyActionsContext

func InitEmptyActionsContext(p *ActionsContext)

func InitEmptyAssignmentContext

func InitEmptyAssignmentContext(p *AssignmentContext)

func InitEmptyBooleanLiteralContext

func InitEmptyBooleanLiteralContext(p *BooleanLiteralContext)

func InitEmptyCompResDeclContext

func InitEmptyCompResDeclContext(p *CompResDeclContext)

func InitEmptyComparisonOperatorContext

func InitEmptyComparisonOperatorContext(p *ComparisonOperatorContext)

func InitEmptyDecimalLiteralContext

func InitEmptyDecimalLiteralContext(p *DecimalLiteralContext)

func InitEmptyDeviceContext

func InitEmptyDeviceContext(p *DeviceContext)

func InitEmptyEcaruleContext

func InitEmptyEcaruleContext(p *EcaruleContext)

func InitEmptyExpressionContext

func InitEmptyExpressionContext(p *ExpressionContext)

func InitEmptyIntegerLiteralContext

func InitEmptyIntegerLiteralContext(p *IntegerLiteralContext)

func InitEmptyLetDeclContext

func InitEmptyLetDeclContext(p *LetDeclContext)

func InitEmptyMulDivModOperatorContext

func InitEmptyMulDivModOperatorContext(p *MulDivModOperatorContext)

func InitEmptyNestedResourceContext

func InitEmptyNestedResourceContext(p *NestedResourceContext)

func InitEmptyPlusMinusOperatorContext

func InitEmptyPlusMinusOperatorContext(p *PlusMinusOperatorContext)

func InitEmptyProgramContext

func InitEmptyProgramContext(p *ProgramContext)

func InitEmptyResDeclContext

func InitEmptyResDeclContext(p *ResDeclContext)

func InitEmptyResFieldContext

func InitEmptyResFieldContext(p *ResFieldContext)

func InitEmptyResListContext

func InitEmptyResListContext(p *ResListContext)

func InitEmptyResourceContext

func InitEmptyResourceContext(p *ResourceContext)

func InitEmptySimpleResourceContext

func InitEmptySimpleResourceContext(p *SimpleResourceContext)

func InitEmptyStringLiteralContext

func InitEmptyStringLiteralContext(p *StringLiteralContext)

func InitEmptyTaskContext

func InitEmptyTaskContext(p *TaskContext)

func InitEmptyTermContext

func InitEmptyTermContext(p *TermContext)

func InitEmptyTypeContext

func InitEmptyTypeContext(p *TypeContext)

func InitEmptyTypeDeclContext

func InitEmptyTypeDeclContext(p *TypeDeclContext)

func InitEmptyValueContext

func InitEmptyValueContext(p *ValueContext)

func SugaredAbuLexerInit

func SugaredAbuLexerInit()

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

func SugaredAbuParserInit

func SugaredAbuParserInit()

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

Types

type ActionsContext

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

func NewActionsContext

func NewActionsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ActionsContext

func NewEmptyActionsContext

func NewEmptyActionsContext() *ActionsContext

func (*ActionsContext) AllAssignment

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

func (*ActionsContext) AllCOMMA

func (s *ActionsContext) AllCOMMA() []antlr.TerminalNode

func (*ActionsContext) Assignment

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

func (*ActionsContext) COMMA

func (s *ActionsContext) COMMA(i int) antlr.TerminalNode

func (*ActionsContext) EnterRule

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

func (*ActionsContext) ExitRule

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

func (*ActionsContext) GetParser

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

func (*ActionsContext) GetRuleContext

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

func (*ActionsContext) IsActionsContext

func (*ActionsContext) IsActionsContext()

func (*ActionsContext) ToStringTree

func (s *ActionsContext) 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) EQUALSIGN

func (s *AssignmentContext) EQUALSIGN() antlr.TerminalNode

func (*AssignmentContext) EnterRule

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

func (*AssignmentContext) ExitRule

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

func (*AssignmentContext) Expression

func (s *AssignmentContext) Expression() IExpressionContext

func (*AssignmentContext) GetParser

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

func (*AssignmentContext) GetRuleContext

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

func (*AssignmentContext) IsAssignmentContext

func (*AssignmentContext) IsAssignmentContext()

func (*AssignmentContext) Resource

func (s *AssignmentContext) Resource() IResourceContext

func (*AssignmentContext) ToStringTree

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

type BaseSugaredAbuParserListener

type BaseSugaredAbuParserListener struct{}

BaseSugaredAbuParserListener is a complete listener for a parse tree produced by SugaredAbuParser.

func (*BaseSugaredAbuParserListener) EnterActions

func (s *BaseSugaredAbuParserListener) EnterActions(ctx *ActionsContext)

EnterActions is called when production actions is entered.

func (*BaseSugaredAbuParserListener) EnterAssignment

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

EnterAssignment is called when production assignment is entered.

func (*BaseSugaredAbuParserListener) EnterBooleanLiteral

func (s *BaseSugaredAbuParserListener) EnterBooleanLiteral(ctx *BooleanLiteralContext)

EnterBooleanLiteral is called when production booleanLiteral is entered.

func (*BaseSugaredAbuParserListener) EnterCompResDecl

func (s *BaseSugaredAbuParserListener) EnterCompResDecl(ctx *CompResDeclContext)

EnterCompResDecl is called when production compResDecl is entered.

func (*BaseSugaredAbuParserListener) EnterComparisonOperator

func (s *BaseSugaredAbuParserListener) EnterComparisonOperator(ctx *ComparisonOperatorContext)

EnterComparisonOperator is called when production comparisonOperator is entered.

func (*BaseSugaredAbuParserListener) EnterDecimalLiteral

func (s *BaseSugaredAbuParserListener) EnterDecimalLiteral(ctx *DecimalLiteralContext)

EnterDecimalLiteral is called when production decimalLiteral is entered.

func (*BaseSugaredAbuParserListener) EnterDevice

func (s *BaseSugaredAbuParserListener) EnterDevice(ctx *DeviceContext)

EnterDevice is called when production device is entered.

func (*BaseSugaredAbuParserListener) EnterEcarule

func (s *BaseSugaredAbuParserListener) EnterEcarule(ctx *EcaruleContext)

EnterEcarule is called when production ecarule is entered.

func (*BaseSugaredAbuParserListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseSugaredAbuParserListener) EnterExpression

func (s *BaseSugaredAbuParserListener) EnterExpression(ctx *ExpressionContext)

EnterExpression is called when production expression is entered.

func (*BaseSugaredAbuParserListener) EnterIntegerLiteral

func (s *BaseSugaredAbuParserListener) EnterIntegerLiteral(ctx *IntegerLiteralContext)

EnterIntegerLiteral is called when production integerLiteral is entered.

func (*BaseSugaredAbuParserListener) EnterLetDecl

func (s *BaseSugaredAbuParserListener) EnterLetDecl(ctx *LetDeclContext)

EnterLetDecl is called when production letDecl is entered.

func (*BaseSugaredAbuParserListener) EnterMulDivModOperator

func (s *BaseSugaredAbuParserListener) EnterMulDivModOperator(ctx *MulDivModOperatorContext)

EnterMulDivModOperator is called when production mulDivModOperator is entered.

func (*BaseSugaredAbuParserListener) EnterNestedResource

func (s *BaseSugaredAbuParserListener) EnterNestedResource(ctx *NestedResourceContext)

EnterNestedResource is called when production nestedResource is entered.

func (*BaseSugaredAbuParserListener) EnterPlusMinusOperator

func (s *BaseSugaredAbuParserListener) EnterPlusMinusOperator(ctx *PlusMinusOperatorContext)

EnterPlusMinusOperator is called when production plusMinusOperator is entered.

func (*BaseSugaredAbuParserListener) EnterProgram

func (s *BaseSugaredAbuParserListener) EnterProgram(ctx *ProgramContext)

EnterProgram is called when production program is entered.

func (*BaseSugaredAbuParserListener) EnterResDecl

func (s *BaseSugaredAbuParserListener) EnterResDecl(ctx *ResDeclContext)

EnterResDecl is called when production resDecl is entered.

func (*BaseSugaredAbuParserListener) EnterResField

func (s *BaseSugaredAbuParserListener) EnterResField(ctx *ResFieldContext)

EnterResField is called when production resField is entered.

func (*BaseSugaredAbuParserListener) EnterResList

func (s *BaseSugaredAbuParserListener) EnterResList(ctx *ResListContext)

EnterResList is called when production resList is entered.

func (*BaseSugaredAbuParserListener) EnterResource

func (s *BaseSugaredAbuParserListener) EnterResource(ctx *ResourceContext)

EnterResource is called when production resource is entered.

func (*BaseSugaredAbuParserListener) EnterSimpleResource

func (s *BaseSugaredAbuParserListener) EnterSimpleResource(ctx *SimpleResourceContext)

EnterSimpleResource is called when production simpleResource is entered.

func (*BaseSugaredAbuParserListener) EnterStringLiteral

func (s *BaseSugaredAbuParserListener) EnterStringLiteral(ctx *StringLiteralContext)

EnterStringLiteral is called when production stringLiteral is entered.

func (*BaseSugaredAbuParserListener) EnterTask

func (s *BaseSugaredAbuParserListener) EnterTask(ctx *TaskContext)

EnterTask is called when production task is entered.

func (*BaseSugaredAbuParserListener) EnterTerm

func (s *BaseSugaredAbuParserListener) EnterTerm(ctx *TermContext)

EnterTerm is called when production term is entered.

func (*BaseSugaredAbuParserListener) EnterType

func (s *BaseSugaredAbuParserListener) EnterType(ctx *TypeContext)

EnterType is called when production type is entered.

func (*BaseSugaredAbuParserListener) EnterTypeDecl

func (s *BaseSugaredAbuParserListener) EnterTypeDecl(ctx *TypeDeclContext)

EnterTypeDecl is called when production typeDecl is entered.

func (*BaseSugaredAbuParserListener) EnterValue

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

EnterValue is called when production value is entered.

func (*BaseSugaredAbuParserListener) ExitActions

func (s *BaseSugaredAbuParserListener) ExitActions(ctx *ActionsContext)

ExitActions is called when production actions is exited.

func (*BaseSugaredAbuParserListener) ExitAssignment

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

ExitAssignment is called when production assignment is exited.

func (*BaseSugaredAbuParserListener) ExitBooleanLiteral

func (s *BaseSugaredAbuParserListener) ExitBooleanLiteral(ctx *BooleanLiteralContext)

ExitBooleanLiteral is called when production booleanLiteral is exited.

func (*BaseSugaredAbuParserListener) ExitCompResDecl

func (s *BaseSugaredAbuParserListener) ExitCompResDecl(ctx *CompResDeclContext)

ExitCompResDecl is called when production compResDecl is exited.

func (*BaseSugaredAbuParserListener) ExitComparisonOperator

func (s *BaseSugaredAbuParserListener) ExitComparisonOperator(ctx *ComparisonOperatorContext)

ExitComparisonOperator is called when production comparisonOperator is exited.

func (*BaseSugaredAbuParserListener) ExitDecimalLiteral

func (s *BaseSugaredAbuParserListener) ExitDecimalLiteral(ctx *DecimalLiteralContext)

ExitDecimalLiteral is called when production decimalLiteral is exited.

func (*BaseSugaredAbuParserListener) ExitDevice

func (s *BaseSugaredAbuParserListener) ExitDevice(ctx *DeviceContext)

ExitDevice is called when production device is exited.

func (*BaseSugaredAbuParserListener) ExitEcarule

func (s *BaseSugaredAbuParserListener) ExitEcarule(ctx *EcaruleContext)

ExitEcarule is called when production ecarule is exited.

func (*BaseSugaredAbuParserListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseSugaredAbuParserListener) ExitExpression

func (s *BaseSugaredAbuParserListener) ExitExpression(ctx *ExpressionContext)

ExitExpression is called when production expression is exited.

func (*BaseSugaredAbuParserListener) ExitIntegerLiteral

func (s *BaseSugaredAbuParserListener) ExitIntegerLiteral(ctx *IntegerLiteralContext)

ExitIntegerLiteral is called when production integerLiteral is exited.

func (*BaseSugaredAbuParserListener) ExitLetDecl

func (s *BaseSugaredAbuParserListener) ExitLetDecl(ctx *LetDeclContext)

ExitLetDecl is called when production letDecl is exited.

func (*BaseSugaredAbuParserListener) ExitMulDivModOperator

func (s *BaseSugaredAbuParserListener) ExitMulDivModOperator(ctx *MulDivModOperatorContext)

ExitMulDivModOperator is called when production mulDivModOperator is exited.

func (*BaseSugaredAbuParserListener) ExitNestedResource

func (s *BaseSugaredAbuParserListener) ExitNestedResource(ctx *NestedResourceContext)

ExitNestedResource is called when production nestedResource is exited.

func (*BaseSugaredAbuParserListener) ExitPlusMinusOperator

func (s *BaseSugaredAbuParserListener) ExitPlusMinusOperator(ctx *PlusMinusOperatorContext)

ExitPlusMinusOperator is called when production plusMinusOperator is exited.

func (*BaseSugaredAbuParserListener) ExitProgram

func (s *BaseSugaredAbuParserListener) ExitProgram(ctx *ProgramContext)

ExitProgram is called when production program is exited.

func (*BaseSugaredAbuParserListener) ExitResDecl

func (s *BaseSugaredAbuParserListener) ExitResDecl(ctx *ResDeclContext)

ExitResDecl is called when production resDecl is exited.

func (*BaseSugaredAbuParserListener) ExitResField

func (s *BaseSugaredAbuParserListener) ExitResField(ctx *ResFieldContext)

ExitResField is called when production resField is exited.

func (*BaseSugaredAbuParserListener) ExitResList

func (s *BaseSugaredAbuParserListener) ExitResList(ctx *ResListContext)

ExitResList is called when production resList is exited.

func (*BaseSugaredAbuParserListener) ExitResource

func (s *BaseSugaredAbuParserListener) ExitResource(ctx *ResourceContext)

ExitResource is called when production resource is exited.

func (*BaseSugaredAbuParserListener) ExitSimpleResource

func (s *BaseSugaredAbuParserListener) ExitSimpleResource(ctx *SimpleResourceContext)

ExitSimpleResource is called when production simpleResource is exited.

func (*BaseSugaredAbuParserListener) ExitStringLiteral

func (s *BaseSugaredAbuParserListener) ExitStringLiteral(ctx *StringLiteralContext)

ExitStringLiteral is called when production stringLiteral is exited.

func (*BaseSugaredAbuParserListener) ExitTask

func (s *BaseSugaredAbuParserListener) ExitTask(ctx *TaskContext)

ExitTask is called when production task is exited.

func (*BaseSugaredAbuParserListener) ExitTerm

func (s *BaseSugaredAbuParserListener) ExitTerm(ctx *TermContext)

ExitTerm is called when production term is exited.

func (*BaseSugaredAbuParserListener) ExitType

func (s *BaseSugaredAbuParserListener) ExitType(ctx *TypeContext)

ExitType is called when production type is exited.

func (*BaseSugaredAbuParserListener) ExitTypeDecl

func (s *BaseSugaredAbuParserListener) ExitTypeDecl(ctx *TypeDeclContext)

ExitTypeDecl is called when production typeDecl is exited.

func (*BaseSugaredAbuParserListener) ExitValue

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

ExitValue is called when production value is exited.

func (*BaseSugaredAbuParserListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseSugaredAbuParserListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type BooleanLiteralContext

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

func NewBooleanLiteralContext

func NewBooleanLiteralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BooleanLiteralContext

func NewEmptyBooleanLiteralContext

func NewEmptyBooleanLiteralContext() *BooleanLiteralContext

func (*BooleanLiteralContext) EnterRule

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

func (*BooleanLiteralContext) ExitRule

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

func (*BooleanLiteralContext) FALSE

func (s *BooleanLiteralContext) FALSE() antlr.TerminalNode

func (*BooleanLiteralContext) GetParser

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

func (*BooleanLiteralContext) GetRuleContext

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

func (*BooleanLiteralContext) IsBooleanLiteralContext

func (*BooleanLiteralContext) IsBooleanLiteralContext()

func (*BooleanLiteralContext) TRUE

func (s *BooleanLiteralContext) TRUE() antlr.TerminalNode

func (*BooleanLiteralContext) ToStringTree

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

type CompResDeclContext

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

func NewCompResDeclContext

func NewCompResDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CompResDeclContext

func NewEmptyCompResDeclContext

func NewEmptyCompResDeclContext() *CompResDeclContext

func (*CompResDeclContext) AllCOMMA

func (s *CompResDeclContext) AllCOMMA() []antlr.TerminalNode

func (*CompResDeclContext) AllEQUALSIGN

func (s *CompResDeclContext) AllEQUALSIGN() []antlr.TerminalNode

func (*CompResDeclContext) AllExpression

func (s *CompResDeclContext) AllExpression() []IExpressionContext

func (*CompResDeclContext) AllID

func (s *CompResDeclContext) AllID() []antlr.TerminalNode

func (*CompResDeclContext) COMMA

func (s *CompResDeclContext) COMMA(i int) antlr.TerminalNode

func (*CompResDeclContext) EQUALSIGN

func (s *CompResDeclContext) EQUALSIGN(i int) antlr.TerminalNode

func (*CompResDeclContext) EnterRule

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

func (*CompResDeclContext) ExitRule

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

func (*CompResDeclContext) Expression

func (s *CompResDeclContext) Expression(i int) IExpressionContext

func (*CompResDeclContext) GetParser

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

func (*CompResDeclContext) GetRuleContext

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

func (*CompResDeclContext) ID

func (s *CompResDeclContext) ID(i int) antlr.TerminalNode

func (*CompResDeclContext) IsCompResDeclContext

func (*CompResDeclContext) IsCompResDeclContext()

func (*CompResDeclContext) RL_BRACKET

func (s *CompResDeclContext) RL_BRACKET() antlr.TerminalNode

func (*CompResDeclContext) RR_BRACKET

func (s *CompResDeclContext) RR_BRACKET() antlr.TerminalNode

func (*CompResDeclContext) ToStringTree

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

type ComparisonOperatorContext

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

func NewComparisonOperatorContext

func NewComparisonOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ComparisonOperatorContext

func NewEmptyComparisonOperatorContext

func NewEmptyComparisonOperatorContext() *ComparisonOperatorContext

func (*ComparisonOperatorContext) EQUALS

func (s *ComparisonOperatorContext) EQUALS() antlr.TerminalNode

func (*ComparisonOperatorContext) EnterRule

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

func (*ComparisonOperatorContext) ExitRule

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

func (*ComparisonOperatorContext) GT

func (s *ComparisonOperatorContext) GT() antlr.TerminalNode

func (*ComparisonOperatorContext) GTE

func (s *ComparisonOperatorContext) GTE() antlr.TerminalNode

func (*ComparisonOperatorContext) GetParser

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

func (*ComparisonOperatorContext) GetRuleContext

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

func (*ComparisonOperatorContext) IsComparisonOperatorContext

func (*ComparisonOperatorContext) IsComparisonOperatorContext()

func (*ComparisonOperatorContext) LT

func (s *ComparisonOperatorContext) LT() antlr.TerminalNode

func (*ComparisonOperatorContext) LTE

func (s *ComparisonOperatorContext) LTE() antlr.TerminalNode

func (*ComparisonOperatorContext) NOTEQUALS

func (s *ComparisonOperatorContext) NOTEQUALS() antlr.TerminalNode

func (*ComparisonOperatorContext) ToStringTree

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

type DecimalLiteralContext

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

func NewDecimalLiteralContext

func NewDecimalLiteralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DecimalLiteralContext

func NewEmptyDecimalLiteralContext

func NewEmptyDecimalLiteralContext() *DecimalLiteralContext

func (*DecimalLiteralContext) DEC_LITERAL

func (s *DecimalLiteralContext) DEC_LITERAL() antlr.TerminalNode

func (*DecimalLiteralContext) EnterRule

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

func (*DecimalLiteralContext) ExitRule

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

func (*DecimalLiteralContext) GetParser

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

func (*DecimalLiteralContext) GetRuleContext

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

func (*DecimalLiteralContext) IsDecimalLiteralContext

func (*DecimalLiteralContext) IsDecimalLiteralContext()

func (*DecimalLiteralContext) MINUS

func (s *DecimalLiteralContext) MINUS() antlr.TerminalNode

func (*DecimalLiteralContext) ToStringTree

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

type DeviceContext

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

func NewDeviceContext

func NewDeviceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DeviceContext

func NewEmptyDeviceContext

func NewEmptyDeviceContext() *DeviceContext

func (*DeviceContext) AllID

func (s *DeviceContext) AllID() []antlr.TerminalNode

func (*DeviceContext) CL_BRACKET

func (s *DeviceContext) CL_BRACKET() antlr.TerminalNode

func (*DeviceContext) COLON

func (s *DeviceContext) COLON() antlr.TerminalNode

func (*DeviceContext) CR_BRACKET

func (s *DeviceContext) CR_BRACKET() antlr.TerminalNode

func (*DeviceContext) EnterRule

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

func (*DeviceContext) ExitRule

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

func (*DeviceContext) Expression

func (s *DeviceContext) Expression() IExpressionContext

func (*DeviceContext) GetParser

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

func (*DeviceContext) GetRuleContext

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

func (*DeviceContext) HAS

func (s *DeviceContext) HAS() antlr.TerminalNode

func (*DeviceContext) ID

func (s *DeviceContext) ID(i int) antlr.TerminalNode

func (*DeviceContext) IsDeviceContext

func (*DeviceContext) IsDeviceContext()

func (*DeviceContext) ResList

func (s *DeviceContext) ResList() IResListContext

func (*DeviceContext) StringLiteral

func (s *DeviceContext) StringLiteral() IStringLiteralContext

func (*DeviceContext) ToStringTree

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

func (*DeviceContext) WHERE

func (s *DeviceContext) WHERE() antlr.TerminalNode

type EcaruleContext

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

func NewEcaruleContext

func NewEcaruleContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EcaruleContext

func NewEmptyEcaruleContext

func NewEmptyEcaruleContext() *EcaruleContext

func (*EcaruleContext) Actions

func (s *EcaruleContext) Actions() IActionsContext

func (*EcaruleContext) AllResource

func (s *EcaruleContext) AllResource() []IResourceContext

func (*EcaruleContext) AllTask

func (s *EcaruleContext) AllTask() []ITaskContext

func (*EcaruleContext) DEFAULT

func (s *EcaruleContext) DEFAULT() antlr.TerminalNode

func (*EcaruleContext) EnterRule

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

func (*EcaruleContext) ExitRule

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

func (*EcaruleContext) GetParser

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

func (*EcaruleContext) GetRuleContext

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

func (*EcaruleContext) ID

func (s *EcaruleContext) ID() antlr.TerminalNode

func (*EcaruleContext) IN

func (s *EcaruleContext) IN() antlr.TerminalNode

func (*EcaruleContext) IsEcaruleContext

func (*EcaruleContext) IsEcaruleContext()

func (*EcaruleContext) LET

func (s *EcaruleContext) LET() antlr.TerminalNode

func (*EcaruleContext) LetDecl

func (s *EcaruleContext) LetDecl() ILetDeclContext

func (*EcaruleContext) ON

func (s *EcaruleContext) ON() antlr.TerminalNode

func (*EcaruleContext) RULE

func (s *EcaruleContext) RULE() antlr.TerminalNode

func (*EcaruleContext) Resource

func (s *EcaruleContext) Resource(i int) IResourceContext

func (*EcaruleContext) Task

func (s *EcaruleContext) Task(i int) ITaskContext

func (*EcaruleContext) ToStringTree

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

type ExpressionContext

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

func NewEmptyExpressionContext

func NewEmptyExpressionContext() *ExpressionContext

func NewExpressionContext

func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext

func (*ExpressionContext) ABSDEC

func (s *ExpressionContext) ABSDEC() antlr.TerminalNode

func (*ExpressionContext) ABSINT

func (s *ExpressionContext) ABSINT() antlr.TerminalNode

func (*ExpressionContext) AND

func (s *ExpressionContext) AND() antlr.TerminalNode

func (*ExpressionContext) AllExpression

func (s *ExpressionContext) AllExpression() []IExpressionContext

func (*ExpressionContext) ComparisonOperator

func (s *ExpressionContext) ComparisonOperator() IComparisonOperatorContext

func (*ExpressionContext) DOUBLECOLON

func (s *ExpressionContext) DOUBLECOLON() antlr.TerminalNode

func (*ExpressionContext) EnterRule

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

func (*ExpressionContext) ExitRule

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

func (*ExpressionContext) Expression

func (s *ExpressionContext) Expression(i int) IExpressionContext

func (*ExpressionContext) GetParser

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

func (*ExpressionContext) GetRuleContext

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

func (*ExpressionContext) IsExpressionContext

func (*ExpressionContext) IsExpressionContext()

func (*ExpressionContext) MulDivModOperator

func (s *ExpressionContext) MulDivModOperator() IMulDivModOperatorContext

func (*ExpressionContext) NOT

func (s *ExpressionContext) NOT() antlr.TerminalNode

func (*ExpressionContext) OR

func (s *ExpressionContext) OR() antlr.TerminalNode

func (*ExpressionContext) PlusMinusOperator

func (s *ExpressionContext) PlusMinusOperator() IPlusMinusOperatorContext

func (*ExpressionContext) RL_BRACKET

func (s *ExpressionContext) RL_BRACKET() antlr.TerminalNode

func (*ExpressionContext) RR_BRACKET

func (s *ExpressionContext) RR_BRACKET() antlr.TerminalNode

func (*ExpressionContext) Term

func (s *ExpressionContext) Term() ITermContext

func (*ExpressionContext) ToStringTree

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

type IActionsContext

type IActionsContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllAssignment() []IAssignmentContext
	Assignment(i int) IAssignmentContext
	AllCOMMA() []antlr.TerminalNode
	COMMA(i int) antlr.TerminalNode

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

IActionsContext is an interface to support dynamic dispatch.

type IAssignmentContext

type IAssignmentContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	Resource() IResourceContext
	EQUALSIGN() antlr.TerminalNode
	Expression() IExpressionContext

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

IAssignmentContext is an interface to support dynamic dispatch.

type IBooleanLiteralContext

type IBooleanLiteralContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	TRUE() antlr.TerminalNode
	FALSE() antlr.TerminalNode

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

IBooleanLiteralContext is an interface to support dynamic dispatch.

type ICompResDeclContext

type ICompResDeclContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllID() []antlr.TerminalNode
	ID(i int) antlr.TerminalNode
	AllEQUALSIGN() []antlr.TerminalNode
	EQUALSIGN(i int) antlr.TerminalNode
	RL_BRACKET() antlr.TerminalNode
	AllExpression() []IExpressionContext
	Expression(i int) IExpressionContext
	RR_BRACKET() antlr.TerminalNode
	AllCOMMA() []antlr.TerminalNode
	COMMA(i int) antlr.TerminalNode

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

ICompResDeclContext is an interface to support dynamic dispatch.

type IComparisonOperatorContext

type IComparisonOperatorContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	EQUALS() antlr.TerminalNode
	NOTEQUALS() antlr.TerminalNode
	LT() antlr.TerminalNode
	LTE() antlr.TerminalNode
	GT() antlr.TerminalNode
	GTE() antlr.TerminalNode

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

IComparisonOperatorContext is an interface to support dynamic dispatch.

type IDecimalLiteralContext

type IDecimalLiteralContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	DEC_LITERAL() antlr.TerminalNode
	MINUS() antlr.TerminalNode

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

IDecimalLiteralContext is an interface to support dynamic dispatch.

type IDeviceContext

type IDeviceContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllID() []antlr.TerminalNode
	ID(i int) antlr.TerminalNode
	COLON() antlr.TerminalNode
	StringLiteral() IStringLiteralContext
	CL_BRACKET() antlr.TerminalNode
	ResList() IResListContext
	CR_BRACKET() antlr.TerminalNode
	WHERE() antlr.TerminalNode
	Expression() IExpressionContext
	HAS() antlr.TerminalNode

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

IDeviceContext is an interface to support dynamic dispatch.

type IEcaruleContext

type IEcaruleContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	RULE() antlr.TerminalNode
	ID() antlr.TerminalNode
	ON() antlr.TerminalNode
	AllResource() []IResourceContext
	Resource(i int) IResourceContext
	LET() antlr.TerminalNode
	LetDecl() ILetDeclContext
	IN() antlr.TerminalNode
	AllTask() []ITaskContext
	Task(i int) ITaskContext
	DEFAULT() antlr.TerminalNode
	Actions() IActionsContext

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

IEcaruleContext is an interface to support dynamic dispatch.

type IExpressionContext

type IExpressionContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	ABSINT() antlr.TerminalNode
	AllExpression() []IExpressionContext
	Expression(i int) IExpressionContext
	ABSDEC() antlr.TerminalNode
	NOT() antlr.TerminalNode
	RL_BRACKET() antlr.TerminalNode
	RR_BRACKET() antlr.TerminalNode
	Term() ITermContext
	MulDivModOperator() IMulDivModOperatorContext
	PlusMinusOperator() IPlusMinusOperatorContext
	ComparisonOperator() IComparisonOperatorContext
	DOUBLECOLON() antlr.TerminalNode
	AND() antlr.TerminalNode
	OR() antlr.TerminalNode

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

IExpressionContext is an interface to support dynamic dispatch.

type IIntegerLiteralContext

type IIntegerLiteralContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	INT_LITERAL() antlr.TerminalNode
	MINUS() antlr.TerminalNode

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

IIntegerLiteralContext is an interface to support dynamic dispatch.

type ILetDeclContext

type ILetDeclContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllID() []antlr.TerminalNode
	ID(i int) antlr.TerminalNode
	AllCOLONEQUAL() []antlr.TerminalNode
	COLONEQUAL(i int) antlr.TerminalNode
	AllExpression() []IExpressionContext
	Expression(i int) IExpressionContext
	AllSEMICOLON() []antlr.TerminalNode
	SEMICOLON(i int) antlr.TerminalNode

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

ILetDeclContext is an interface to support dynamic dispatch.

type IMulDivModOperatorContext

type IMulDivModOperatorContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	MUL() antlr.TerminalNode
	DIV() antlr.TerminalNode
	MOD() antlr.TerminalNode

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

IMulDivModOperatorContext is an interface to support dynamic dispatch.

type INestedResourceContext

type INestedResourceContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllID() []antlr.TerminalNode
	ID(i int) antlr.TerminalNode
	SL_BRACKET() antlr.TerminalNode
	SR_BRACKET() antlr.TerminalNode
	THIS() antlr.TerminalNode
	EXT() antlr.TerminalNode

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

INestedResourceContext is an interface to support dynamic dispatch.

type IPlusMinusOperatorContext

type IPlusMinusOperatorContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	PLUS() antlr.TerminalNode
	MINUS() antlr.TerminalNode

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

IPlusMinusOperatorContext is an interface to support dynamic dispatch.

type IProgramContext

type IProgramContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllTypeDecl() []ITypeDeclContext
	TypeDecl(i int) ITypeDeclContext
	AllDevice() []IDeviceContext
	Device(i int) IDeviceContext
	AllEcarule() []IEcaruleContext
	Ecarule(i int) IEcaruleContext

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

IProgramContext is an interface to support dynamic dispatch.

type IResDeclContext

type IResDeclContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	PHYSICAL() antlr.TerminalNode
	OUTPUT() antlr.TerminalNode
	Type_() ITypeContext
	ID() antlr.TerminalNode
	EQUALSIGN() antlr.TerminalNode
	Expression() IExpressionContext
	INPUT() antlr.TerminalNode
	LOGICAL() antlr.TerminalNode
	CompResDecl() ICompResDeclContext

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

IResDeclContext is an interface to support dynamic dispatch.

type IResFieldContext

type IResFieldContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	ID() antlr.TerminalNode
	COLON() antlr.TerminalNode
	PHYSICAL() antlr.TerminalNode
	OUTPUT() antlr.TerminalNode
	Type_() ITypeContext
	INPUT() antlr.TerminalNode
	LOGICAL() antlr.TerminalNode

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

IResFieldContext is an interface to support dynamic dispatch.

type IResListContext

type IResListContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllResDecl() []IResDeclContext
	ResDecl(i int) IResDeclContext

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

IResListContext is an interface to support dynamic dispatch.

type IResourceContext

type IResourceContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	SimpleResource() ISimpleResourceContext
	NestedResource() INestedResourceContext

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

IResourceContext is an interface to support dynamic dispatch.

type ISimpleResourceContext

type ISimpleResourceContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	ID() antlr.TerminalNode
	THIS() antlr.TerminalNode
	EXT() antlr.TerminalNode

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

ISimpleResourceContext is an interface to support dynamic dispatch.

type IStringLiteralContext

type IStringLiteralContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	QUOTED_STRING() antlr.TerminalNode

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

IStringLiteralContext is an interface to support dynamic dispatch.

type ITaskContext

type ITaskContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	FOR() antlr.TerminalNode
	Expression() IExpressionContext
	DO() antlr.TerminalNode
	AllActions() []IActionsContext
	Actions(i int) IActionsContext
	ALL() antlr.TerminalNode
	OWISE() antlr.TerminalNode

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

ITaskContext is an interface to support dynamic dispatch.

type ITermContext

type ITermContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	Value() IValueContext
	Resource() IResourceContext

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

ITermContext is an interface to support dynamic dispatch.

type ITypeContext

type ITypeContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	BOOLEAN() antlr.TerminalNode
	INTEGER() antlr.TerminalNode
	DECIMAL() antlr.TerminalNode
	STRING() antlr.TerminalNode

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

ITypeContext is an interface to support dynamic dispatch.

type ITypeDeclContext

type ITypeDeclContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	DEFINE() antlr.TerminalNode
	ID() antlr.TerminalNode
	AS() antlr.TerminalNode
	CL_BRACKET() antlr.TerminalNode
	CR_BRACKET() antlr.TerminalNode
	AllResField() []IResFieldContext
	ResField(i int) IResFieldContext

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

ITypeDeclContext is an interface to support dynamic dispatch.

type IValueContext

type IValueContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	StringLiteral() IStringLiteralContext
	IntegerLiteral() IIntegerLiteralContext
	DecimalLiteral() IDecimalLiteralContext
	BooleanLiteral() IBooleanLiteralContext

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

IValueContext is an interface to support dynamic dispatch.

type IntegerLiteralContext

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

func NewEmptyIntegerLiteralContext

func NewEmptyIntegerLiteralContext() *IntegerLiteralContext

func NewIntegerLiteralContext

func NewIntegerLiteralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IntegerLiteralContext

func (*IntegerLiteralContext) EnterRule

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

func (*IntegerLiteralContext) ExitRule

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

func (*IntegerLiteralContext) GetParser

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

func (*IntegerLiteralContext) GetRuleContext

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

func (*IntegerLiteralContext) INT_LITERAL

func (s *IntegerLiteralContext) INT_LITERAL() antlr.TerminalNode

func (*IntegerLiteralContext) IsIntegerLiteralContext

func (*IntegerLiteralContext) IsIntegerLiteralContext()

func (*IntegerLiteralContext) MINUS

func (s *IntegerLiteralContext) MINUS() antlr.TerminalNode

func (*IntegerLiteralContext) ToStringTree

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

type LetDeclContext

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

func NewEmptyLetDeclContext

func NewEmptyLetDeclContext() *LetDeclContext

func NewLetDeclContext

func NewLetDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LetDeclContext

func (*LetDeclContext) AllCOLONEQUAL

func (s *LetDeclContext) AllCOLONEQUAL() []antlr.TerminalNode

func (*LetDeclContext) AllExpression

func (s *LetDeclContext) AllExpression() []IExpressionContext

func (*LetDeclContext) AllID

func (s *LetDeclContext) AllID() []antlr.TerminalNode

func (*LetDeclContext) AllSEMICOLON

func (s *LetDeclContext) AllSEMICOLON() []antlr.TerminalNode

func (*LetDeclContext) COLONEQUAL

func (s *LetDeclContext) COLONEQUAL(i int) antlr.TerminalNode

func (*LetDeclContext) EnterRule

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

func (*LetDeclContext) ExitRule

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

func (*LetDeclContext) Expression

func (s *LetDeclContext) Expression(i int) IExpressionContext

func (*LetDeclContext) GetParser

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

func (*LetDeclContext) GetRuleContext

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

func (*LetDeclContext) ID

func (s *LetDeclContext) ID(i int) antlr.TerminalNode

func (*LetDeclContext) IsLetDeclContext

func (*LetDeclContext) IsLetDeclContext()

func (*LetDeclContext) SEMICOLON

func (s *LetDeclContext) SEMICOLON(i int) antlr.TerminalNode

func (*LetDeclContext) ToStringTree

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

type MulDivModOperatorContext

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

func NewEmptyMulDivModOperatorContext

func NewEmptyMulDivModOperatorContext() *MulDivModOperatorContext

func NewMulDivModOperatorContext

func NewMulDivModOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MulDivModOperatorContext

func (*MulDivModOperatorContext) DIV

func (s *MulDivModOperatorContext) DIV() antlr.TerminalNode

func (*MulDivModOperatorContext) EnterRule

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

func (*MulDivModOperatorContext) ExitRule

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

func (*MulDivModOperatorContext) GetParser

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

func (*MulDivModOperatorContext) GetRuleContext

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

func (*MulDivModOperatorContext) IsMulDivModOperatorContext

func (*MulDivModOperatorContext) IsMulDivModOperatorContext()

func (*MulDivModOperatorContext) MOD

func (s *MulDivModOperatorContext) MOD() antlr.TerminalNode

func (*MulDivModOperatorContext) MUL

func (s *MulDivModOperatorContext) MUL() antlr.TerminalNode

func (*MulDivModOperatorContext) ToStringTree

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

type NestedResourceContext

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

func NewEmptyNestedResourceContext

func NewEmptyNestedResourceContext() *NestedResourceContext

func NewNestedResourceContext

func NewNestedResourceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NestedResourceContext

func (*NestedResourceContext) AllID

func (s *NestedResourceContext) AllID() []antlr.TerminalNode

func (*NestedResourceContext) EXT

func (s *NestedResourceContext) EXT() antlr.TerminalNode

func (*NestedResourceContext) EnterRule

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

func (*NestedResourceContext) ExitRule

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

func (*NestedResourceContext) GetParser

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

func (*NestedResourceContext) GetRuleContext

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

func (*NestedResourceContext) ID

func (s *NestedResourceContext) ID(i int) antlr.TerminalNode

func (*NestedResourceContext) IsNestedResourceContext

func (*NestedResourceContext) IsNestedResourceContext()

func (*NestedResourceContext) SL_BRACKET

func (s *NestedResourceContext) SL_BRACKET() antlr.TerminalNode

func (*NestedResourceContext) SR_BRACKET

func (s *NestedResourceContext) SR_BRACKET() antlr.TerminalNode

func (*NestedResourceContext) THIS

func (s *NestedResourceContext) THIS() antlr.TerminalNode

func (*NestedResourceContext) ToStringTree

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

type PlusMinusOperatorContext

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

func NewEmptyPlusMinusOperatorContext

func NewEmptyPlusMinusOperatorContext() *PlusMinusOperatorContext

func NewPlusMinusOperatorContext

func NewPlusMinusOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PlusMinusOperatorContext

func (*PlusMinusOperatorContext) EnterRule

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

func (*PlusMinusOperatorContext) ExitRule

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

func (*PlusMinusOperatorContext) GetParser

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

func (*PlusMinusOperatorContext) GetRuleContext

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

func (*PlusMinusOperatorContext) IsPlusMinusOperatorContext

func (*PlusMinusOperatorContext) IsPlusMinusOperatorContext()

func (*PlusMinusOperatorContext) MINUS

func (s *PlusMinusOperatorContext) MINUS() antlr.TerminalNode

func (*PlusMinusOperatorContext) PLUS

func (s *PlusMinusOperatorContext) PLUS() antlr.TerminalNode

func (*PlusMinusOperatorContext) ToStringTree

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

type ProgramContext

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

func NewEmptyProgramContext

func NewEmptyProgramContext() *ProgramContext

func NewProgramContext

func NewProgramContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProgramContext

func (*ProgramContext) AllDevice

func (s *ProgramContext) AllDevice() []IDeviceContext

func (*ProgramContext) AllEcarule

func (s *ProgramContext) AllEcarule() []IEcaruleContext

func (*ProgramContext) AllTypeDecl

func (s *ProgramContext) AllTypeDecl() []ITypeDeclContext

func (*ProgramContext) Device

func (s *ProgramContext) Device(i int) IDeviceContext

func (*ProgramContext) Ecarule

func (s *ProgramContext) Ecarule(i int) IEcaruleContext

func (*ProgramContext) EnterRule

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

func (*ProgramContext) ExitRule

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

func (*ProgramContext) GetParser

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

func (*ProgramContext) GetRuleContext

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

func (*ProgramContext) IsProgramContext

func (*ProgramContext) IsProgramContext()

func (*ProgramContext) ToStringTree

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

func (*ProgramContext) TypeDecl

func (s *ProgramContext) TypeDecl(i int) ITypeDeclContext

type ResDeclContext

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

func NewEmptyResDeclContext

func NewEmptyResDeclContext() *ResDeclContext

func NewResDeclContext

func NewResDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ResDeclContext

func (*ResDeclContext) CompResDecl

func (s *ResDeclContext) CompResDecl() ICompResDeclContext

func (*ResDeclContext) EQUALSIGN

func (s *ResDeclContext) EQUALSIGN() antlr.TerminalNode

func (*ResDeclContext) EnterRule

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

func (*ResDeclContext) ExitRule

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

func (*ResDeclContext) Expression

func (s *ResDeclContext) Expression() IExpressionContext

func (*ResDeclContext) GetParser

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

func (*ResDeclContext) GetRuleContext

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

func (*ResDeclContext) ID

func (s *ResDeclContext) ID() antlr.TerminalNode

func (*ResDeclContext) INPUT

func (s *ResDeclContext) INPUT() antlr.TerminalNode

func (*ResDeclContext) IsResDeclContext

func (*ResDeclContext) IsResDeclContext()

func (*ResDeclContext) LOGICAL

func (s *ResDeclContext) LOGICAL() antlr.TerminalNode

func (*ResDeclContext) OUTPUT

func (s *ResDeclContext) OUTPUT() antlr.TerminalNode

func (*ResDeclContext) PHYSICAL

func (s *ResDeclContext) PHYSICAL() antlr.TerminalNode

func (*ResDeclContext) ToStringTree

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

func (*ResDeclContext) Type_

func (s *ResDeclContext) Type_() ITypeContext

type ResFieldContext

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

func NewEmptyResFieldContext

func NewEmptyResFieldContext() *ResFieldContext

func NewResFieldContext

func NewResFieldContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ResFieldContext

func (*ResFieldContext) COLON

func (s *ResFieldContext) COLON() antlr.TerminalNode

func (*ResFieldContext) EnterRule

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

func (*ResFieldContext) ExitRule

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

func (*ResFieldContext) GetParser

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

func (*ResFieldContext) GetRuleContext

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

func (*ResFieldContext) ID

func (s *ResFieldContext) ID() antlr.TerminalNode

func (*ResFieldContext) INPUT

func (s *ResFieldContext) INPUT() antlr.TerminalNode

func (*ResFieldContext) IsResFieldContext

func (*ResFieldContext) IsResFieldContext()

func (*ResFieldContext) LOGICAL

func (s *ResFieldContext) LOGICAL() antlr.TerminalNode

func (*ResFieldContext) OUTPUT

func (s *ResFieldContext) OUTPUT() antlr.TerminalNode

func (*ResFieldContext) PHYSICAL

func (s *ResFieldContext) PHYSICAL() antlr.TerminalNode

func (*ResFieldContext) ToStringTree

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

func (*ResFieldContext) Type_

func (s *ResFieldContext) Type_() ITypeContext

type ResListContext

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

func NewEmptyResListContext

func NewEmptyResListContext() *ResListContext

func NewResListContext

func NewResListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ResListContext

func (*ResListContext) AllResDecl

func (s *ResListContext) AllResDecl() []IResDeclContext

func (*ResListContext) EnterRule

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

func (*ResListContext) ExitRule

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

func (*ResListContext) GetParser

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

func (*ResListContext) GetRuleContext

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

func (*ResListContext) IsResListContext

func (*ResListContext) IsResListContext()

func (*ResListContext) ResDecl

func (s *ResListContext) ResDecl(i int) IResDeclContext

func (*ResListContext) ToStringTree

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

type ResourceContext

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

func NewEmptyResourceContext

func NewEmptyResourceContext() *ResourceContext

func NewResourceContext

func NewResourceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ResourceContext

func (*ResourceContext) EnterRule

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

func (*ResourceContext) ExitRule

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

func (*ResourceContext) GetParser

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

func (*ResourceContext) GetRuleContext

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

func (*ResourceContext) IsResourceContext

func (*ResourceContext) IsResourceContext()

func (*ResourceContext) NestedResource

func (s *ResourceContext) NestedResource() INestedResourceContext

func (*ResourceContext) SimpleResource

func (s *ResourceContext) SimpleResource() ISimpleResourceContext

func (*ResourceContext) ToStringTree

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

type SimpleResourceContext

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

func NewEmptySimpleResourceContext

func NewEmptySimpleResourceContext() *SimpleResourceContext

func NewSimpleResourceContext

func NewSimpleResourceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SimpleResourceContext

func (*SimpleResourceContext) EXT

func (s *SimpleResourceContext) EXT() antlr.TerminalNode

func (*SimpleResourceContext) EnterRule

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

func (*SimpleResourceContext) ExitRule

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

func (*SimpleResourceContext) GetParser

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

func (*SimpleResourceContext) GetRuleContext

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

func (*SimpleResourceContext) ID

func (s *SimpleResourceContext) ID() antlr.TerminalNode

func (*SimpleResourceContext) IsSimpleResourceContext

func (*SimpleResourceContext) IsSimpleResourceContext()

func (*SimpleResourceContext) THIS

func (s *SimpleResourceContext) THIS() antlr.TerminalNode

func (*SimpleResourceContext) ToStringTree

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

type StringLiteralContext

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

func NewEmptyStringLiteralContext

func NewEmptyStringLiteralContext() *StringLiteralContext

func NewStringLiteralContext

func NewStringLiteralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StringLiteralContext

func (*StringLiteralContext) EnterRule

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

func (*StringLiteralContext) ExitRule

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

func (*StringLiteralContext) GetParser

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

func (*StringLiteralContext) GetRuleContext

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

func (*StringLiteralContext) IsStringLiteralContext

func (*StringLiteralContext) IsStringLiteralContext()

func (*StringLiteralContext) QUOTED_STRING

func (s *StringLiteralContext) QUOTED_STRING() antlr.TerminalNode

func (*StringLiteralContext) ToStringTree

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

type SugaredAbuLexer

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

func NewSugaredAbuLexer

func NewSugaredAbuLexer(input antlr.CharStream) *SugaredAbuLexer

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

type SugaredAbuParser

type SugaredAbuParser struct {
	*antlr.BaseParser
}

func NewSugaredAbuParser

func NewSugaredAbuParser(input antlr.TokenStream) *SugaredAbuParser

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

func (*SugaredAbuParser) Actions

func (p *SugaredAbuParser) Actions() (localctx IActionsContext)

func (*SugaredAbuParser) Assignment

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

func (*SugaredAbuParser) BooleanLiteral

func (p *SugaredAbuParser) BooleanLiteral() (localctx IBooleanLiteralContext)

func (*SugaredAbuParser) CompResDecl

func (p *SugaredAbuParser) CompResDecl() (localctx ICompResDeclContext)

func (*SugaredAbuParser) ComparisonOperator

func (p *SugaredAbuParser) ComparisonOperator() (localctx IComparisonOperatorContext)

func (*SugaredAbuParser) DecimalLiteral

func (p *SugaredAbuParser) DecimalLiteral() (localctx IDecimalLiteralContext)

func (*SugaredAbuParser) Device

func (p *SugaredAbuParser) Device() (localctx IDeviceContext)

func (*SugaredAbuParser) Ecarule

func (p *SugaredAbuParser) Ecarule() (localctx IEcaruleContext)

func (*SugaredAbuParser) Expression

func (p *SugaredAbuParser) Expression() (localctx IExpressionContext)

func (*SugaredAbuParser) Expression_Sempred

func (p *SugaredAbuParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*SugaredAbuParser) IntegerLiteral

func (p *SugaredAbuParser) IntegerLiteral() (localctx IIntegerLiteralContext)

func (*SugaredAbuParser) LetDecl

func (p *SugaredAbuParser) LetDecl() (localctx ILetDeclContext)

func (*SugaredAbuParser) MulDivModOperator

func (p *SugaredAbuParser) MulDivModOperator() (localctx IMulDivModOperatorContext)

func (*SugaredAbuParser) NestedResource

func (p *SugaredAbuParser) NestedResource() (localctx INestedResourceContext)

func (*SugaredAbuParser) PlusMinusOperator

func (p *SugaredAbuParser) PlusMinusOperator() (localctx IPlusMinusOperatorContext)

func (*SugaredAbuParser) Program

func (p *SugaredAbuParser) Program() (localctx IProgramContext)

func (*SugaredAbuParser) ResDecl

func (p *SugaredAbuParser) ResDecl() (localctx IResDeclContext)

func (*SugaredAbuParser) ResField

func (p *SugaredAbuParser) ResField() (localctx IResFieldContext)

func (*SugaredAbuParser) ResList

func (p *SugaredAbuParser) ResList() (localctx IResListContext)

func (*SugaredAbuParser) Resource

func (p *SugaredAbuParser) Resource() (localctx IResourceContext)

func (*SugaredAbuParser) Sempred

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

func (*SugaredAbuParser) SimpleResource

func (p *SugaredAbuParser) SimpleResource() (localctx ISimpleResourceContext)

func (*SugaredAbuParser) StringLiteral

func (p *SugaredAbuParser) StringLiteral() (localctx IStringLiteralContext)

func (*SugaredAbuParser) Task

func (p *SugaredAbuParser) Task() (localctx ITaskContext)

func (*SugaredAbuParser) Term

func (p *SugaredAbuParser) Term() (localctx ITermContext)

func (*SugaredAbuParser) TypeDecl

func (p *SugaredAbuParser) TypeDecl() (localctx ITypeDeclContext)

func (*SugaredAbuParser) Type_

func (p *SugaredAbuParser) Type_() (localctx ITypeContext)

func (*SugaredAbuParser) Value

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

type SugaredAbuParserListener

type SugaredAbuParserListener interface {
	antlr.ParseTreeListener

	// EnterProgram is called when entering the program production.
	EnterProgram(c *ProgramContext)

	// EnterTypeDecl is called when entering the typeDecl production.
	EnterTypeDecl(c *TypeDeclContext)

	// EnterResField is called when entering the resField production.
	EnterResField(c *ResFieldContext)

	// EnterDevice is called when entering the device production.
	EnterDevice(c *DeviceContext)

	// EnterResList is called when entering the resList production.
	EnterResList(c *ResListContext)

	// EnterResDecl is called when entering the resDecl production.
	EnterResDecl(c *ResDeclContext)

	// EnterCompResDecl is called when entering the compResDecl production.
	EnterCompResDecl(c *CompResDeclContext)

	// EnterType is called when entering the type production.
	EnterType(c *TypeContext)

	// EnterEcarule is called when entering the ecarule production.
	EnterEcarule(c *EcaruleContext)

	// EnterLetDecl is called when entering the letDecl production.
	EnterLetDecl(c *LetDeclContext)

	// EnterTask is called when entering the task production.
	EnterTask(c *TaskContext)

	// EnterActions is called when entering the actions production.
	EnterActions(c *ActionsContext)

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

	// EnterExpression is called when entering the expression production.
	EnterExpression(c *ExpressionContext)

	// EnterMulDivModOperator is called when entering the mulDivModOperator production.
	EnterMulDivModOperator(c *MulDivModOperatorContext)

	// EnterPlusMinusOperator is called when entering the plusMinusOperator production.
	EnterPlusMinusOperator(c *PlusMinusOperatorContext)

	// EnterComparisonOperator is called when entering the comparisonOperator production.
	EnterComparisonOperator(c *ComparisonOperatorContext)

	// EnterTerm is called when entering the term production.
	EnterTerm(c *TermContext)

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

	// EnterResource is called when entering the resource production.
	EnterResource(c *ResourceContext)

	// EnterSimpleResource is called when entering the simpleResource production.
	EnterSimpleResource(c *SimpleResourceContext)

	// EnterNestedResource is called when entering the nestedResource production.
	EnterNestedResource(c *NestedResourceContext)

	// EnterDecimalLiteral is called when entering the decimalLiteral production.
	EnterDecimalLiteral(c *DecimalLiteralContext)

	// EnterIntegerLiteral is called when entering the integerLiteral production.
	EnterIntegerLiteral(c *IntegerLiteralContext)

	// EnterStringLiteral is called when entering the stringLiteral production.
	EnterStringLiteral(c *StringLiteralContext)

	// EnterBooleanLiteral is called when entering the booleanLiteral production.
	EnterBooleanLiteral(c *BooleanLiteralContext)

	// ExitProgram is called when exiting the program production.
	ExitProgram(c *ProgramContext)

	// ExitTypeDecl is called when exiting the typeDecl production.
	ExitTypeDecl(c *TypeDeclContext)

	// ExitResField is called when exiting the resField production.
	ExitResField(c *ResFieldContext)

	// ExitDevice is called when exiting the device production.
	ExitDevice(c *DeviceContext)

	// ExitResList is called when exiting the resList production.
	ExitResList(c *ResListContext)

	// ExitResDecl is called when exiting the resDecl production.
	ExitResDecl(c *ResDeclContext)

	// ExitCompResDecl is called when exiting the compResDecl production.
	ExitCompResDecl(c *CompResDeclContext)

	// ExitType is called when exiting the type production.
	ExitType(c *TypeContext)

	// ExitEcarule is called when exiting the ecarule production.
	ExitEcarule(c *EcaruleContext)

	// ExitLetDecl is called when exiting the letDecl production.
	ExitLetDecl(c *LetDeclContext)

	// ExitTask is called when exiting the task production.
	ExitTask(c *TaskContext)

	// ExitActions is called when exiting the actions production.
	ExitActions(c *ActionsContext)

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

	// ExitExpression is called when exiting the expression production.
	ExitExpression(c *ExpressionContext)

	// ExitMulDivModOperator is called when exiting the mulDivModOperator production.
	ExitMulDivModOperator(c *MulDivModOperatorContext)

	// ExitPlusMinusOperator is called when exiting the plusMinusOperator production.
	ExitPlusMinusOperator(c *PlusMinusOperatorContext)

	// ExitComparisonOperator is called when exiting the comparisonOperator production.
	ExitComparisonOperator(c *ComparisonOperatorContext)

	// ExitTerm is called when exiting the term production.
	ExitTerm(c *TermContext)

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

	// ExitResource is called when exiting the resource production.
	ExitResource(c *ResourceContext)

	// ExitSimpleResource is called when exiting the simpleResource production.
	ExitSimpleResource(c *SimpleResourceContext)

	// ExitNestedResource is called when exiting the nestedResource production.
	ExitNestedResource(c *NestedResourceContext)

	// ExitDecimalLiteral is called when exiting the decimalLiteral production.
	ExitDecimalLiteral(c *DecimalLiteralContext)

	// ExitIntegerLiteral is called when exiting the integerLiteral production.
	ExitIntegerLiteral(c *IntegerLiteralContext)

	// ExitStringLiteral is called when exiting the stringLiteral production.
	ExitStringLiteral(c *StringLiteralContext)

	// ExitBooleanLiteral is called when exiting the booleanLiteral production.
	ExitBooleanLiteral(c *BooleanLiteralContext)
}

SugaredAbuParserListener is a complete listener for a parse tree produced by SugaredAbuParser.

type TaskContext

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

func NewEmptyTaskContext

func NewEmptyTaskContext() *TaskContext

func NewTaskContext

func NewTaskContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TaskContext

func (*TaskContext) ALL

func (s *TaskContext) ALL() antlr.TerminalNode

func (*TaskContext) Actions

func (s *TaskContext) Actions(i int) IActionsContext

func (*TaskContext) AllActions

func (s *TaskContext) AllActions() []IActionsContext

func (*TaskContext) DO

func (s *TaskContext) DO() antlr.TerminalNode

func (*TaskContext) EnterRule

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

func (*TaskContext) ExitRule

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

func (*TaskContext) Expression

func (s *TaskContext) Expression() IExpressionContext

func (*TaskContext) FOR

func (s *TaskContext) FOR() antlr.TerminalNode

func (*TaskContext) GetParser

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

func (*TaskContext) GetRuleContext

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

func (*TaskContext) IsTaskContext

func (*TaskContext) IsTaskContext()

func (*TaskContext) OWISE

func (s *TaskContext) OWISE() antlr.TerminalNode

func (*TaskContext) ToStringTree

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

type TermContext

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

func NewEmptyTermContext

func NewEmptyTermContext() *TermContext

func NewTermContext

func NewTermContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TermContext

func (*TermContext) EnterRule

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

func (*TermContext) ExitRule

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

func (*TermContext) GetParser

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

func (*TermContext) GetRuleContext

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

func (*TermContext) IsTermContext

func (*TermContext) IsTermContext()

func (*TermContext) Resource

func (s *TermContext) Resource() IResourceContext

func (*TermContext) ToStringTree

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

func (*TermContext) Value

func (s *TermContext) Value() IValueContext

type TypeContext

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

func NewEmptyTypeContext

func NewEmptyTypeContext() *TypeContext

func NewTypeContext

func NewTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeContext

func (*TypeContext) BOOLEAN

func (s *TypeContext) BOOLEAN() antlr.TerminalNode

func (*TypeContext) DECIMAL

func (s *TypeContext) DECIMAL() antlr.TerminalNode

func (*TypeContext) EnterRule

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

func (*TypeContext) ExitRule

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

func (*TypeContext) GetParser

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

func (*TypeContext) GetRuleContext

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

func (*TypeContext) INTEGER

func (s *TypeContext) INTEGER() antlr.TerminalNode

func (*TypeContext) IsTypeContext

func (*TypeContext) IsTypeContext()

func (*TypeContext) STRING

func (s *TypeContext) STRING() antlr.TerminalNode

func (*TypeContext) ToStringTree

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

type TypeDeclContext

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

func NewEmptyTypeDeclContext

func NewEmptyTypeDeclContext() *TypeDeclContext

func NewTypeDeclContext

func NewTypeDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeDeclContext

func (*TypeDeclContext) AS

func (s *TypeDeclContext) AS() antlr.TerminalNode

func (*TypeDeclContext) AllResField

func (s *TypeDeclContext) AllResField() []IResFieldContext

func (*TypeDeclContext) CL_BRACKET

func (s *TypeDeclContext) CL_BRACKET() antlr.TerminalNode

func (*TypeDeclContext) CR_BRACKET

func (s *TypeDeclContext) CR_BRACKET() antlr.TerminalNode

func (*TypeDeclContext) DEFINE

func (s *TypeDeclContext) DEFINE() antlr.TerminalNode

func (*TypeDeclContext) EnterRule

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

func (*TypeDeclContext) ExitRule

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

func (*TypeDeclContext) GetParser

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

func (*TypeDeclContext) GetRuleContext

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

func (*TypeDeclContext) ID

func (s *TypeDeclContext) ID() antlr.TerminalNode

func (*TypeDeclContext) IsTypeDeclContext

func (*TypeDeclContext) IsTypeDeclContext()

func (*TypeDeclContext) ResField

func (s *TypeDeclContext) ResField(i int) IResFieldContext

func (*TypeDeclContext) ToStringTree

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

type ValueContext

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

func NewEmptyValueContext

func NewEmptyValueContext() *ValueContext

func NewValueContext

func NewValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValueContext

func (*ValueContext) BooleanLiteral

func (s *ValueContext) BooleanLiteral() IBooleanLiteralContext

func (*ValueContext) DecimalLiteral

func (s *ValueContext) DecimalLiteral() IDecimalLiteralContext

func (*ValueContext) EnterRule

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

func (*ValueContext) ExitRule

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

func (*ValueContext) GetParser

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

func (*ValueContext) GetRuleContext

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

func (*ValueContext) IntegerLiteral

func (s *ValueContext) IntegerLiteral() IIntegerLiteralContext

func (*ValueContext) IsValueContext

func (*ValueContext) IsValueContext()

func (*ValueContext) StringLiteral

func (s *ValueContext) StringLiteral() IStringLiteralContext

func (*ValueContext) ToStringTree

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

Jump to

Keyboard shortcuts

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