cool

package
v0.0.0-...-4c43aeb Latest Latest
Warning

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

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

Documentation

Overview

Example
package main

import (
	"bramp.net/antlr4/cool"

	"fmt"
	"github.com/antlr/antlr4/runtime/Go/antlr"
)

type exampleListener struct {
	*cool.BaseCOOLListener
}

func (l *exampleListener) EnterEveryRule(ctx antlr.ParserRuleContext) {
	fmt.Println(ctx.GetText())
}
func main() {
	// Setup the input
	is := antlr.NewInputStream("...some text to parse...")

	// Create the Lexer
	lexer := cool.NewCOOLLexer(is)
	stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel)

	// Create the Parser
	p := cool.NewCOOLParser(stream)
	p.BuildParseTrees = true
	p.AddErrorListener(antlr.NewDiagnosticErrorListener(true))

	// Finally walk the tree
	tree := p.Program()
	antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree)
}
Output:

Index

Examples

Constants

View Source
const (
	COOLLexerT__0             = 1
	COOLLexerT__1             = 2
	COOLLexerT__2             = 3
	COOLLexerT__3             = 4
	COOLLexerT__4             = 5
	COOLLexerT__5             = 6
	COOLLexerT__6             = 7
	COOLLexerT__7             = 8
	COOLLexerT__8             = 9
	COOLLexerCLASS            = 10
	COOLLexerELSE             = 11
	COOLLexerFALSE            = 12
	COOLLexerFI               = 13
	COOLLexerIF               = 14
	COOLLexerIN               = 15
	COOLLexerINHERITS         = 16
	COOLLexerISVOID           = 17
	COOLLexerLET              = 18
	COOLLexerLOOP             = 19
	COOLLexerPOOL             = 20
	COOLLexerTHEN             = 21
	COOLLexerWHILE            = 22
	COOLLexerCASE             = 23
	COOLLexerESAC             = 24
	COOLLexerNEW              = 25
	COOLLexerOF               = 26
	COOLLexerNOT              = 27
	COOLLexerTRUE             = 28
	COOLLexerSTRING           = 29
	COOLLexerINT              = 30
	COOLLexerTYPEID           = 31
	COOLLexerOBJECTID         = 32
	COOLLexerASSIGNMENT       = 33
	COOLLexerCASE_ARROW       = 34
	COOLLexerADD              = 35
	COOLLexerMINUS            = 36
	COOLLexerMULTIPLY         = 37
	COOLLexerDIVISION         = 38
	COOLLexerLESS_THAN        = 39
	COOLLexerLESS_EQUAL       = 40
	COOLLexerEQUAL            = 41
	COOLLexerINTEGER_NEGATIVE = 42
	COOLLexerOPEN_COMMENT     = 43
	COOLLexerCLOSE_COMMENT    = 44
	COOLLexerCOMMENT          = 45
	COOLLexerONE_LINE_COMMENT = 46
	COOLLexerWHITESPACE       = 47
)

COOLLexer tokens.

View Source
const (
	COOLParserEOF              = antlr.TokenEOF
	COOLParserT__0             = 1
	COOLParserT__1             = 2
	COOLParserT__2             = 3
	COOLParserT__3             = 4
	COOLParserT__4             = 5
	COOLParserT__5             = 6
	COOLParserT__6             = 7
	COOLParserT__7             = 8
	COOLParserT__8             = 9
	COOLParserCLASS            = 10
	COOLParserELSE             = 11
	COOLParserFALSE            = 12
	COOLParserFI               = 13
	COOLParserIF               = 14
	COOLParserIN               = 15
	COOLParserINHERITS         = 16
	COOLParserISVOID           = 17
	COOLParserLET              = 18
	COOLParserLOOP             = 19
	COOLParserPOOL             = 20
	COOLParserTHEN             = 21
	COOLParserWHILE            = 22
	COOLParserCASE             = 23
	COOLParserESAC             = 24
	COOLParserNEW              = 25
	COOLParserOF               = 26
	COOLParserNOT              = 27
	COOLParserTRUE             = 28
	COOLParserSTRING           = 29
	COOLParserINT              = 30
	COOLParserTYPEID           = 31
	COOLParserOBJECTID         = 32
	COOLParserASSIGNMENT       = 33
	COOLParserCASE_ARROW       = 34
	COOLParserADD              = 35
	COOLParserMINUS            = 36
	COOLParserMULTIPLY         = 37
	COOLParserDIVISION         = 38
	COOLParserLESS_THAN        = 39
	COOLParserLESS_EQUAL       = 40
	COOLParserEQUAL            = 41
	COOLParserINTEGER_NEGATIVE = 42
	COOLParserOPEN_COMMENT     = 43
	COOLParserCLOSE_COMMENT    = 44
	COOLParserCOMMENT          = 45
	COOLParserONE_LINE_COMMENT = 46
	COOLParserWHITESPACE       = 47
)

COOLParser tokens.

View Source
const (
	COOLParserRULE_program       = 0
	COOLParserRULE_programBlocks = 1
	COOLParserRULE_classDefine   = 2
	COOLParserRULE_feature       = 3
	COOLParserRULE_formal        = 4
	COOLParserRULE_expression    = 5
)

COOLParser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddContext

type AddContext struct {
	*ExpressionContext
}

func NewAddContext

func NewAddContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *AddContext

func (*AddContext) ADD

func (s *AddContext) ADD() antlr.TerminalNode

func (*AddContext) AllExpression

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

func (*AddContext) EnterRule

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

func (*AddContext) ExitRule

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

func (*AddContext) Expression

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

func (*AddContext) GetRuleContext

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

type AssignmentContext

type AssignmentContext struct {
	*ExpressionContext
}

func NewAssignmentContext

func NewAssignmentContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *AssignmentContext

func (*AssignmentContext) ASSIGNMENT

func (s *AssignmentContext) ASSIGNMENT() 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) GetRuleContext

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

func (*AssignmentContext) OBJECTID

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

type BaseCOOLListener

type BaseCOOLListener struct{}

BaseCOOLListener is a complete listener for a parse tree produced by COOLParser.

func (*BaseCOOLListener) EnterAdd

func (s *BaseCOOLListener) EnterAdd(ctx *AddContext)

EnterAdd is called when production add is entered.

func (*BaseCOOLListener) EnterAssignment

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

EnterAssignment is called when production assignment is entered.

func (*BaseCOOLListener) EnterBlock

func (s *BaseCOOLListener) EnterBlock(ctx *BlockContext)

EnterBlock is called when production block is entered.

func (*BaseCOOLListener) EnterBoolNot

func (s *BaseCOOLListener) EnterBoolNot(ctx *BoolNotContext)

EnterBoolNot is called when production boolNot is entered.

func (*BaseCOOLListener) EnterCase

func (s *BaseCOOLListener) EnterCase(ctx *CaseContext)

EnterCase is called when production case is entered.

func (*BaseCOOLListener) EnterClassDefine

func (s *BaseCOOLListener) EnterClassDefine(ctx *ClassDefineContext)

EnterClassDefine is called when production classDefine is entered.

func (*BaseCOOLListener) EnterClasses

func (s *BaseCOOLListener) EnterClasses(ctx *ClassesContext)

EnterClasses is called when production classes is entered.

func (*BaseCOOLListener) EnterDivision

func (s *BaseCOOLListener) EnterDivision(ctx *DivisionContext)

EnterDivision is called when production division is entered.

func (*BaseCOOLListener) EnterEof

func (s *BaseCOOLListener) EnterEof(ctx *EofContext)

EnterEof is called when production eof is entered.

func (*BaseCOOLListener) EnterEqual

func (s *BaseCOOLListener) EnterEqual(ctx *EqualContext)

EnterEqual is called when production equal is entered.

func (*BaseCOOLListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseCOOLListener) EnterFalse

func (s *BaseCOOLListener) EnterFalse(ctx *FalseContext)

EnterFalse is called when production false is entered.

func (*BaseCOOLListener) EnterFormal

func (s *BaseCOOLListener) EnterFormal(ctx *FormalContext)

EnterFormal is called when production formal is entered.

func (*BaseCOOLListener) EnterId

func (s *BaseCOOLListener) EnterId(ctx *IdContext)

EnterId is called when production id is entered.

func (*BaseCOOLListener) EnterIf

func (s *BaseCOOLListener) EnterIf(ctx *IfContext)

EnterIf is called when production if is entered.

func (*BaseCOOLListener) EnterInt

func (s *BaseCOOLListener) EnterInt(ctx *IntContext)

EnterInt is called when production int is entered.

func (*BaseCOOLListener) EnterIsvoid

func (s *BaseCOOLListener) EnterIsvoid(ctx *IsvoidContext)

EnterIsvoid is called when production isvoid is entered.

func (*BaseCOOLListener) EnterLessEqual

func (s *BaseCOOLListener) EnterLessEqual(ctx *LessEqualContext)

EnterLessEqual is called when production lessEqual is entered.

func (*BaseCOOLListener) EnterLessThan

func (s *BaseCOOLListener) EnterLessThan(ctx *LessThanContext)

EnterLessThan is called when production lessThan is entered.

func (*BaseCOOLListener) EnterLetIn

func (s *BaseCOOLListener) EnterLetIn(ctx *LetInContext)

EnterLetIn is called when production letIn is entered.

func (*BaseCOOLListener) EnterMethod

func (s *BaseCOOLListener) EnterMethod(ctx *MethodContext)

EnterMethod is called when production method is entered.

func (*BaseCOOLListener) EnterMethodCall

func (s *BaseCOOLListener) EnterMethodCall(ctx *MethodCallContext)

EnterMethodCall is called when production methodCall is entered.

func (*BaseCOOLListener) EnterMinus

func (s *BaseCOOLListener) EnterMinus(ctx *MinusContext)

EnterMinus is called when production minus is entered.

func (*BaseCOOLListener) EnterMultiply

func (s *BaseCOOLListener) EnterMultiply(ctx *MultiplyContext)

EnterMultiply is called when production multiply is entered.

func (*BaseCOOLListener) EnterNegative

func (s *BaseCOOLListener) EnterNegative(ctx *NegativeContext)

EnterNegative is called when production negative is entered.

func (*BaseCOOLListener) EnterNew

func (s *BaseCOOLListener) EnterNew(ctx *NewContext)

EnterNew is called when production new is entered.

func (*BaseCOOLListener) EnterOwnMethodCall

func (s *BaseCOOLListener) EnterOwnMethodCall(ctx *OwnMethodCallContext)

EnterOwnMethodCall is called when production ownMethodCall is entered.

func (*BaseCOOLListener) EnterParentheses

func (s *BaseCOOLListener) EnterParentheses(ctx *ParenthesesContext)

EnterParentheses is called when production parentheses is entered.

func (*BaseCOOLListener) EnterProgram

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

EnterProgram is called when production program is entered.

func (*BaseCOOLListener) EnterProperty

func (s *BaseCOOLListener) EnterProperty(ctx *PropertyContext)

EnterProperty is called when production property is entered.

func (*BaseCOOLListener) EnterString

func (s *BaseCOOLListener) EnterString(ctx *StringContext)

EnterString is called when production string is entered.

func (*BaseCOOLListener) EnterTrue

func (s *BaseCOOLListener) EnterTrue(ctx *TrueContext)

EnterTrue is called when production true is entered.

func (*BaseCOOLListener) EnterWhile

func (s *BaseCOOLListener) EnterWhile(ctx *WhileContext)

EnterWhile is called when production while is entered.

func (*BaseCOOLListener) ExitAdd

func (s *BaseCOOLListener) ExitAdd(ctx *AddContext)

ExitAdd is called when production add is exited.

func (*BaseCOOLListener) ExitAssignment

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

ExitAssignment is called when production assignment is exited.

func (*BaseCOOLListener) ExitBlock

func (s *BaseCOOLListener) ExitBlock(ctx *BlockContext)

ExitBlock is called when production block is exited.

func (*BaseCOOLListener) ExitBoolNot

func (s *BaseCOOLListener) ExitBoolNot(ctx *BoolNotContext)

ExitBoolNot is called when production boolNot is exited.

func (*BaseCOOLListener) ExitCase

func (s *BaseCOOLListener) ExitCase(ctx *CaseContext)

ExitCase is called when production case is exited.

func (*BaseCOOLListener) ExitClassDefine

func (s *BaseCOOLListener) ExitClassDefine(ctx *ClassDefineContext)

ExitClassDefine is called when production classDefine is exited.

func (*BaseCOOLListener) ExitClasses

func (s *BaseCOOLListener) ExitClasses(ctx *ClassesContext)

ExitClasses is called when production classes is exited.

func (*BaseCOOLListener) ExitDivision

func (s *BaseCOOLListener) ExitDivision(ctx *DivisionContext)

ExitDivision is called when production division is exited.

func (*BaseCOOLListener) ExitEof

func (s *BaseCOOLListener) ExitEof(ctx *EofContext)

ExitEof is called when production eof is exited.

func (*BaseCOOLListener) ExitEqual

func (s *BaseCOOLListener) ExitEqual(ctx *EqualContext)

ExitEqual is called when production equal is exited.

func (*BaseCOOLListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseCOOLListener) ExitFalse

func (s *BaseCOOLListener) ExitFalse(ctx *FalseContext)

ExitFalse is called when production false is exited.

func (*BaseCOOLListener) ExitFormal

func (s *BaseCOOLListener) ExitFormal(ctx *FormalContext)

ExitFormal is called when production formal is exited.

func (*BaseCOOLListener) ExitId

func (s *BaseCOOLListener) ExitId(ctx *IdContext)

ExitId is called when production id is exited.

func (*BaseCOOLListener) ExitIf

func (s *BaseCOOLListener) ExitIf(ctx *IfContext)

ExitIf is called when production if is exited.

func (*BaseCOOLListener) ExitInt

func (s *BaseCOOLListener) ExitInt(ctx *IntContext)

ExitInt is called when production int is exited.

func (*BaseCOOLListener) ExitIsvoid

func (s *BaseCOOLListener) ExitIsvoid(ctx *IsvoidContext)

ExitIsvoid is called when production isvoid is exited.

func (*BaseCOOLListener) ExitLessEqual

func (s *BaseCOOLListener) ExitLessEqual(ctx *LessEqualContext)

ExitLessEqual is called when production lessEqual is exited.

func (*BaseCOOLListener) ExitLessThan

func (s *BaseCOOLListener) ExitLessThan(ctx *LessThanContext)

ExitLessThan is called when production lessThan is exited.

func (*BaseCOOLListener) ExitLetIn

func (s *BaseCOOLListener) ExitLetIn(ctx *LetInContext)

ExitLetIn is called when production letIn is exited.

func (*BaseCOOLListener) ExitMethod

func (s *BaseCOOLListener) ExitMethod(ctx *MethodContext)

ExitMethod is called when production method is exited.

func (*BaseCOOLListener) ExitMethodCall

func (s *BaseCOOLListener) ExitMethodCall(ctx *MethodCallContext)

ExitMethodCall is called when production methodCall is exited.

func (*BaseCOOLListener) ExitMinus

func (s *BaseCOOLListener) ExitMinus(ctx *MinusContext)

ExitMinus is called when production minus is exited.

func (*BaseCOOLListener) ExitMultiply

func (s *BaseCOOLListener) ExitMultiply(ctx *MultiplyContext)

ExitMultiply is called when production multiply is exited.

func (*BaseCOOLListener) ExitNegative

func (s *BaseCOOLListener) ExitNegative(ctx *NegativeContext)

ExitNegative is called when production negative is exited.

func (*BaseCOOLListener) ExitNew

func (s *BaseCOOLListener) ExitNew(ctx *NewContext)

ExitNew is called when production new is exited.

func (*BaseCOOLListener) ExitOwnMethodCall

func (s *BaseCOOLListener) ExitOwnMethodCall(ctx *OwnMethodCallContext)

ExitOwnMethodCall is called when production ownMethodCall is exited.

func (*BaseCOOLListener) ExitParentheses

func (s *BaseCOOLListener) ExitParentheses(ctx *ParenthesesContext)

ExitParentheses is called when production parentheses is exited.

func (*BaseCOOLListener) ExitProgram

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

ExitProgram is called when production program is exited.

func (*BaseCOOLListener) ExitProperty

func (s *BaseCOOLListener) ExitProperty(ctx *PropertyContext)

ExitProperty is called when production property is exited.

func (*BaseCOOLListener) ExitString

func (s *BaseCOOLListener) ExitString(ctx *StringContext)

ExitString is called when production string is exited.

func (*BaseCOOLListener) ExitTrue

func (s *BaseCOOLListener) ExitTrue(ctx *TrueContext)

ExitTrue is called when production true is exited.

func (*BaseCOOLListener) ExitWhile

func (s *BaseCOOLListener) ExitWhile(ctx *WhileContext)

ExitWhile is called when production while is exited.

func (*BaseCOOLListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseCOOLListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type BlockContext

type BlockContext struct {
	*ExpressionContext
}

func NewBlockContext

func NewBlockContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BlockContext

func (*BlockContext) AllExpression

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

func (*BlockContext) EnterRule

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

func (*BlockContext) ExitRule

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

func (*BlockContext) Expression

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

func (*BlockContext) GetRuleContext

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

type BoolNotContext

type BoolNotContext struct {
	*ExpressionContext
}

func NewBoolNotContext

func NewBoolNotContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BoolNotContext

func (*BoolNotContext) EnterRule

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

func (*BoolNotContext) ExitRule

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

func (*BoolNotContext) Expression

func (s *BoolNotContext) Expression() IExpressionContext

func (*BoolNotContext) GetRuleContext

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

func (*BoolNotContext) NOT

type COOLLexer

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

func NewCOOLLexer

func NewCOOLLexer(input antlr.CharStream) *COOLLexer

type COOLListener

type COOLListener interface {
	antlr.ParseTreeListener

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

	// EnterClasses is called when entering the classes production.
	EnterClasses(c *ClassesContext)

	// EnterEof is called when entering the eof production.
	EnterEof(c *EofContext)

	// EnterClassDefine is called when entering the classDefine production.
	EnterClassDefine(c *ClassDefineContext)

	// EnterMethod is called when entering the method production.
	EnterMethod(c *MethodContext)

	// EnterProperty is called when entering the property production.
	EnterProperty(c *PropertyContext)

	// EnterFormal is called when entering the formal production.
	EnterFormal(c *FormalContext)

	// EnterLetIn is called when entering the letIn production.
	EnterLetIn(c *LetInContext)

	// EnterMinus is called when entering the minus production.
	EnterMinus(c *MinusContext)

	// EnterString is called when entering the string production.
	EnterString(c *StringContext)

	// EnterIsvoid is called when entering the isvoid production.
	EnterIsvoid(c *IsvoidContext)

	// EnterWhile is called when entering the while production.
	EnterWhile(c *WhileContext)

	// EnterDivision is called when entering the division production.
	EnterDivision(c *DivisionContext)

	// EnterNegative is called when entering the negative production.
	EnterNegative(c *NegativeContext)

	// EnterBoolNot is called when entering the boolNot production.
	EnterBoolNot(c *BoolNotContext)

	// EnterLessThan is called when entering the lessThan production.
	EnterLessThan(c *LessThanContext)

	// EnterBlock is called when entering the block production.
	EnterBlock(c *BlockContext)

	// EnterId is called when entering the id production.
	EnterId(c *IdContext)

	// EnterMultiply is called when entering the multiply production.
	EnterMultiply(c *MultiplyContext)

	// EnterIf is called when entering the if production.
	EnterIf(c *IfContext)

	// EnterCase is called when entering the case production.
	EnterCase(c *CaseContext)

	// EnterOwnMethodCall is called when entering the ownMethodCall production.
	EnterOwnMethodCall(c *OwnMethodCallContext)

	// EnterAdd is called when entering the add production.
	EnterAdd(c *AddContext)

	// EnterNew is called when entering the new production.
	EnterNew(c *NewContext)

	// EnterParentheses is called when entering the parentheses production.
	EnterParentheses(c *ParenthesesContext)

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

	// EnterFalse is called when entering the false production.
	EnterFalse(c *FalseContext)

	// EnterInt is called when entering the int production.
	EnterInt(c *IntContext)

	// EnterEqual is called when entering the equal production.
	EnterEqual(c *EqualContext)

	// EnterTrue is called when entering the true production.
	EnterTrue(c *TrueContext)

	// EnterLessEqual is called when entering the lessEqual production.
	EnterLessEqual(c *LessEqualContext)

	// EnterMethodCall is called when entering the methodCall production.
	EnterMethodCall(c *MethodCallContext)

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

	// ExitClasses is called when exiting the classes production.
	ExitClasses(c *ClassesContext)

	// ExitEof is called when exiting the eof production.
	ExitEof(c *EofContext)

	// ExitClassDefine is called when exiting the classDefine production.
	ExitClassDefine(c *ClassDefineContext)

	// ExitMethod is called when exiting the method production.
	ExitMethod(c *MethodContext)

	// ExitProperty is called when exiting the property production.
	ExitProperty(c *PropertyContext)

	// ExitFormal is called when exiting the formal production.
	ExitFormal(c *FormalContext)

	// ExitLetIn is called when exiting the letIn production.
	ExitLetIn(c *LetInContext)

	// ExitMinus is called when exiting the minus production.
	ExitMinus(c *MinusContext)

	// ExitString is called when exiting the string production.
	ExitString(c *StringContext)

	// ExitIsvoid is called when exiting the isvoid production.
	ExitIsvoid(c *IsvoidContext)

	// ExitWhile is called when exiting the while production.
	ExitWhile(c *WhileContext)

	// ExitDivision is called when exiting the division production.
	ExitDivision(c *DivisionContext)

	// ExitNegative is called when exiting the negative production.
	ExitNegative(c *NegativeContext)

	// ExitBoolNot is called when exiting the boolNot production.
	ExitBoolNot(c *BoolNotContext)

	// ExitLessThan is called when exiting the lessThan production.
	ExitLessThan(c *LessThanContext)

	// ExitBlock is called when exiting the block production.
	ExitBlock(c *BlockContext)

	// ExitId is called when exiting the id production.
	ExitId(c *IdContext)

	// ExitMultiply is called when exiting the multiply production.
	ExitMultiply(c *MultiplyContext)

	// ExitIf is called when exiting the if production.
	ExitIf(c *IfContext)

	// ExitCase is called when exiting the case production.
	ExitCase(c *CaseContext)

	// ExitOwnMethodCall is called when exiting the ownMethodCall production.
	ExitOwnMethodCall(c *OwnMethodCallContext)

	// ExitAdd is called when exiting the add production.
	ExitAdd(c *AddContext)

	// ExitNew is called when exiting the new production.
	ExitNew(c *NewContext)

	// ExitParentheses is called when exiting the parentheses production.
	ExitParentheses(c *ParenthesesContext)

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

	// ExitFalse is called when exiting the false production.
	ExitFalse(c *FalseContext)

	// ExitInt is called when exiting the int production.
	ExitInt(c *IntContext)

	// ExitEqual is called when exiting the equal production.
	ExitEqual(c *EqualContext)

	// ExitTrue is called when exiting the true production.
	ExitTrue(c *TrueContext)

	// ExitLessEqual is called when exiting the lessEqual production.
	ExitLessEqual(c *LessEqualContext)

	// ExitMethodCall is called when exiting the methodCall production.
	ExitMethodCall(c *MethodCallContext)
}

COOLListener is a complete listener for a parse tree produced by COOLParser.

type COOLParser

type COOLParser struct {
	*antlr.BaseParser
}

func NewCOOLParser

func NewCOOLParser(input antlr.TokenStream) *COOLParser

func (*COOLParser) ClassDefine

func (p *COOLParser) ClassDefine() (localctx IClassDefineContext)

func (*COOLParser) Expression

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

func (*COOLParser) Expression_Sempred

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

func (*COOLParser) Feature

func (p *COOLParser) Feature() (localctx IFeatureContext)

func (*COOLParser) Formal

func (p *COOLParser) Formal() (localctx IFormalContext)

func (*COOLParser) Program

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

func (*COOLParser) ProgramBlocks

func (p *COOLParser) ProgramBlocks() (localctx IProgramBlocksContext)

func (*COOLParser) Sempred

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

type CaseContext

type CaseContext struct {
	*ExpressionContext
}

func NewCaseContext

func NewCaseContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CaseContext

func (*CaseContext) AllCASE_ARROW

func (s *CaseContext) AllCASE_ARROW() []antlr.TerminalNode

func (*CaseContext) AllExpression

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

func (*CaseContext) AllOBJECTID

func (s *CaseContext) AllOBJECTID() []antlr.TerminalNode

func (*CaseContext) AllTYPEID

func (s *CaseContext) AllTYPEID() []antlr.TerminalNode

func (*CaseContext) CASE

func (s *CaseContext) CASE() antlr.TerminalNode

func (*CaseContext) CASE_ARROW

func (s *CaseContext) CASE_ARROW(i int) antlr.TerminalNode

func (*CaseContext) ESAC

func (s *CaseContext) ESAC() antlr.TerminalNode

func (*CaseContext) EnterRule

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

func (*CaseContext) ExitRule

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

func (*CaseContext) Expression

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

func (*CaseContext) GetRuleContext

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

func (*CaseContext) OBJECTID

func (s *CaseContext) OBJECTID(i int) antlr.TerminalNode

func (*CaseContext) OF

func (s *CaseContext) OF() antlr.TerminalNode

func (*CaseContext) TYPEID

func (s *CaseContext) TYPEID(i int) antlr.TerminalNode

type ClassDefineContext

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

func NewClassDefineContext

func NewClassDefineContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ClassDefineContext

func NewEmptyClassDefineContext

func NewEmptyClassDefineContext() *ClassDefineContext

func (*ClassDefineContext) AllFeature

func (s *ClassDefineContext) AllFeature() []IFeatureContext

func (*ClassDefineContext) AllTYPEID

func (s *ClassDefineContext) AllTYPEID() []antlr.TerminalNode

func (*ClassDefineContext) CLASS

func (*ClassDefineContext) EnterRule

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

func (*ClassDefineContext) ExitRule

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

func (*ClassDefineContext) Feature

func (s *ClassDefineContext) Feature(i int) IFeatureContext

func (*ClassDefineContext) GetParser

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

func (*ClassDefineContext) GetRuleContext

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

func (*ClassDefineContext) INHERITS

func (s *ClassDefineContext) INHERITS() antlr.TerminalNode

func (*ClassDefineContext) IsClassDefineContext

func (*ClassDefineContext) IsClassDefineContext()

func (*ClassDefineContext) TYPEID

func (*ClassDefineContext) ToStringTree

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

type ClassesContext

type ClassesContext struct {
	*ProgramBlocksContext
}

func NewClassesContext

func NewClassesContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ClassesContext

func (*ClassesContext) ClassDefine

func (s *ClassesContext) ClassDefine() IClassDefineContext

func (*ClassesContext) EnterRule

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

func (*ClassesContext) ExitRule

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

func (*ClassesContext) GetRuleContext

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

func (*ClassesContext) ProgramBlocks

func (s *ClassesContext) ProgramBlocks() IProgramBlocksContext

type DivisionContext

type DivisionContext struct {
	*ExpressionContext
}

func NewDivisionContext

func NewDivisionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DivisionContext

func (*DivisionContext) AllExpression

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

func (*DivisionContext) DIVISION

func (s *DivisionContext) DIVISION() antlr.TerminalNode

func (*DivisionContext) EnterRule

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

func (*DivisionContext) ExitRule

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

func (*DivisionContext) Expression

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

func (*DivisionContext) GetRuleContext

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

type EofContext

type EofContext struct {
	*ProgramBlocksContext
}

func NewEofContext

func NewEofContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *EofContext

func (*EofContext) EOF

func (s *EofContext) EOF() antlr.TerminalNode

func (*EofContext) EnterRule

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

func (*EofContext) ExitRule

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

func (*EofContext) GetRuleContext

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

type EqualContext

type EqualContext struct {
	*ExpressionContext
}

func NewEqualContext

func NewEqualContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *EqualContext

func (*EqualContext) AllExpression

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

func (*EqualContext) EQUAL

func (s *EqualContext) EQUAL() antlr.TerminalNode

func (*EqualContext) EnterRule

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

func (*EqualContext) ExitRule

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

func (*EqualContext) Expression

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

func (*EqualContext) GetRuleContext

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

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) CopyFrom

func (s *ExpressionContext) CopyFrom(ctx *ExpressionContext)

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) ToStringTree

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

type FalseContext

type FalseContext struct {
	*ExpressionContext
}

func NewFalseContext

func NewFalseContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FalseContext

func (*FalseContext) EnterRule

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

func (*FalseContext) ExitRule

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

func (*FalseContext) FALSE

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

func (*FalseContext) GetRuleContext

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

type FeatureContext

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

func NewEmptyFeatureContext

func NewEmptyFeatureContext() *FeatureContext

func NewFeatureContext

func NewFeatureContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FeatureContext

func (*FeatureContext) CopyFrom

func (s *FeatureContext) CopyFrom(ctx *FeatureContext)

func (*FeatureContext) GetParser

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

func (*FeatureContext) GetRuleContext

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

func (*FeatureContext) IsFeatureContext

func (*FeatureContext) IsFeatureContext()

func (*FeatureContext) ToStringTree

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

type FormalContext

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

func NewEmptyFormalContext

func NewEmptyFormalContext() *FormalContext

func NewFormalContext

func NewFormalContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FormalContext

func (*FormalContext) EnterRule

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

func (*FormalContext) ExitRule

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

func (*FormalContext) GetParser

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

func (*FormalContext) GetRuleContext

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

func (*FormalContext) IsFormalContext

func (*FormalContext) IsFormalContext()

func (*FormalContext) OBJECTID

func (s *FormalContext) OBJECTID() antlr.TerminalNode

func (*FormalContext) TYPEID

func (s *FormalContext) TYPEID() antlr.TerminalNode

func (*FormalContext) ToStringTree

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

type IClassDefineContext

type IClassDefineContext interface {
	antlr.ParserRuleContext

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

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

IClassDefineContext is an interface to support dynamic dispatch.

type IExpressionContext

type IExpressionContext interface {
	antlr.ParserRuleContext

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

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

IExpressionContext is an interface to support dynamic dispatch.

type IFeatureContext

type IFeatureContext interface {
	antlr.ParserRuleContext

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

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

IFeatureContext is an interface to support dynamic dispatch.

type IFormalContext

type IFormalContext interface {
	antlr.ParserRuleContext

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

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

IFormalContext is an interface to support dynamic dispatch.

type IProgramBlocksContext

type IProgramBlocksContext interface {
	antlr.ParserRuleContext

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

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

IProgramBlocksContext is an interface to support dynamic dispatch.

type IProgramContext

type IProgramContext interface {
	antlr.ParserRuleContext

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

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

IProgramContext is an interface to support dynamic dispatch.

type IdContext

type IdContext struct {
	*ExpressionContext
}

func NewIdContext

func NewIdContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IdContext

func (*IdContext) EnterRule

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

func (*IdContext) ExitRule

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

func (*IdContext) GetRuleContext

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

func (*IdContext) OBJECTID

func (s *IdContext) OBJECTID() antlr.TerminalNode

type IfContext

type IfContext struct {
	*ExpressionContext
}

func NewIfContext

func NewIfContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IfContext

func (*IfContext) AllExpression

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

func (*IfContext) ELSE

func (s *IfContext) ELSE() antlr.TerminalNode

func (*IfContext) EnterRule

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

func (*IfContext) ExitRule

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

func (*IfContext) Expression

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

func (*IfContext) FI

func (s *IfContext) FI() antlr.TerminalNode

func (*IfContext) GetRuleContext

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

func (*IfContext) IF

func (s *IfContext) IF() antlr.TerminalNode

func (*IfContext) THEN

func (s *IfContext) THEN() antlr.TerminalNode

type IntContext

type IntContext struct {
	*ExpressionContext
}

func NewIntContext

func NewIntContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IntContext

func (*IntContext) EnterRule

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

func (*IntContext) ExitRule

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

func (*IntContext) GetRuleContext

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

func (*IntContext) INT

func (s *IntContext) INT() antlr.TerminalNode

type IsvoidContext

type IsvoidContext struct {
	*ExpressionContext
}

func NewIsvoidContext

func NewIsvoidContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IsvoidContext

func (*IsvoidContext) EnterRule

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

func (*IsvoidContext) ExitRule

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

func (*IsvoidContext) Expression

func (s *IsvoidContext) Expression() IExpressionContext

func (*IsvoidContext) GetRuleContext

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

func (*IsvoidContext) ISVOID

func (s *IsvoidContext) ISVOID() antlr.TerminalNode

type LessEqualContext

type LessEqualContext struct {
	*ExpressionContext
}

func NewLessEqualContext

func NewLessEqualContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *LessEqualContext

func (*LessEqualContext) AllExpression

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

func (*LessEqualContext) EnterRule

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

func (*LessEqualContext) ExitRule

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

func (*LessEqualContext) Expression

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

func (*LessEqualContext) GetRuleContext

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

func (*LessEqualContext) LESS_EQUAL

func (s *LessEqualContext) LESS_EQUAL() antlr.TerminalNode

type LessThanContext

type LessThanContext struct {
	*ExpressionContext
}

func NewLessThanContext

func NewLessThanContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *LessThanContext

func (*LessThanContext) AllExpression

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

func (*LessThanContext) EnterRule

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

func (*LessThanContext) ExitRule

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

func (*LessThanContext) Expression

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

func (*LessThanContext) GetRuleContext

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

func (*LessThanContext) LESS_THAN

func (s *LessThanContext) LESS_THAN() antlr.TerminalNode

type LetInContext

type LetInContext struct {
	*ExpressionContext
}

func NewLetInContext

func NewLetInContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *LetInContext

func (*LetInContext) ASSIGNMENT

func (s *LetInContext) ASSIGNMENT(i int) antlr.TerminalNode

func (*LetInContext) AllASSIGNMENT

func (s *LetInContext) AllASSIGNMENT() []antlr.TerminalNode

func (*LetInContext) AllExpression

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

func (*LetInContext) AllOBJECTID

func (s *LetInContext) AllOBJECTID() []antlr.TerminalNode

func (*LetInContext) AllTYPEID

func (s *LetInContext) AllTYPEID() []antlr.TerminalNode

func (*LetInContext) EnterRule

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

func (*LetInContext) ExitRule

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

func (*LetInContext) Expression

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

func (*LetInContext) GetRuleContext

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

func (*LetInContext) IN

func (*LetInContext) LET

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

func (*LetInContext) OBJECTID

func (s *LetInContext) OBJECTID(i int) antlr.TerminalNode

func (*LetInContext) TYPEID

func (s *LetInContext) TYPEID(i int) antlr.TerminalNode

type MethodCallContext

type MethodCallContext struct {
	*ExpressionContext
}

func NewMethodCallContext

func NewMethodCallContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MethodCallContext

func (*MethodCallContext) AllExpression

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

func (*MethodCallContext) EnterRule

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

func (*MethodCallContext) ExitRule

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

func (*MethodCallContext) Expression

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

func (*MethodCallContext) GetRuleContext

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

func (*MethodCallContext) OBJECTID

func (s *MethodCallContext) OBJECTID() antlr.TerminalNode

func (*MethodCallContext) TYPEID

func (s *MethodCallContext) TYPEID() antlr.TerminalNode

type MethodContext

type MethodContext struct {
	*FeatureContext
}

func NewMethodContext

func NewMethodContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MethodContext

func (*MethodContext) AllFormal

func (s *MethodContext) AllFormal() []IFormalContext

func (*MethodContext) EnterRule

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

func (*MethodContext) ExitRule

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

func (*MethodContext) Expression

func (s *MethodContext) Expression() IExpressionContext

func (*MethodContext) Formal

func (s *MethodContext) Formal(i int) IFormalContext

func (*MethodContext) GetRuleContext

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

func (*MethodContext) OBJECTID

func (s *MethodContext) OBJECTID() antlr.TerminalNode

func (*MethodContext) TYPEID

func (s *MethodContext) TYPEID() antlr.TerminalNode

type MinusContext

type MinusContext struct {
	*ExpressionContext
}

func NewMinusContext

func NewMinusContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MinusContext

func (*MinusContext) AllExpression

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

func (*MinusContext) EnterRule

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

func (*MinusContext) ExitRule

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

func (*MinusContext) Expression

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

func (*MinusContext) GetRuleContext

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

func (*MinusContext) MINUS

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

type MultiplyContext

type MultiplyContext struct {
	*ExpressionContext
}

func NewMultiplyContext

func NewMultiplyContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MultiplyContext

func (*MultiplyContext) AllExpression

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

func (*MultiplyContext) EnterRule

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

func (*MultiplyContext) ExitRule

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

func (*MultiplyContext) Expression

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

func (*MultiplyContext) GetRuleContext

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

func (*MultiplyContext) MULTIPLY

func (s *MultiplyContext) MULTIPLY() antlr.TerminalNode

type NegativeContext

type NegativeContext struct {
	*ExpressionContext
}

func NewNegativeContext

func NewNegativeContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *NegativeContext

func (*NegativeContext) EnterRule

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

func (*NegativeContext) ExitRule

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

func (*NegativeContext) Expression

func (s *NegativeContext) Expression() IExpressionContext

func (*NegativeContext) GetRuleContext

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

func (*NegativeContext) INTEGER_NEGATIVE

func (s *NegativeContext) INTEGER_NEGATIVE() antlr.TerminalNode

type NewContext

type NewContext struct {
	*ExpressionContext
}

func NewNewContext

func NewNewContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *NewContext

func (*NewContext) EnterRule

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

func (*NewContext) ExitRule

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

func (*NewContext) GetRuleContext

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

func (*NewContext) NEW

func (s *NewContext) NEW() antlr.TerminalNode

func (*NewContext) TYPEID

func (s *NewContext) TYPEID() antlr.TerminalNode

type OwnMethodCallContext

type OwnMethodCallContext struct {
	*ExpressionContext
}

func NewOwnMethodCallContext

func NewOwnMethodCallContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *OwnMethodCallContext

func (*OwnMethodCallContext) AllExpression

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

func (*OwnMethodCallContext) EnterRule

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

func (*OwnMethodCallContext) ExitRule

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

func (*OwnMethodCallContext) Expression

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

func (*OwnMethodCallContext) GetRuleContext

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

func (*OwnMethodCallContext) OBJECTID

func (s *OwnMethodCallContext) OBJECTID() antlr.TerminalNode

type ParenthesesContext

type ParenthesesContext struct {
	*ExpressionContext
}

func NewParenthesesContext

func NewParenthesesContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ParenthesesContext

func (*ParenthesesContext) EnterRule

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

func (*ParenthesesContext) ExitRule

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

func (*ParenthesesContext) Expression

func (s *ParenthesesContext) Expression() IExpressionContext

func (*ParenthesesContext) GetRuleContext

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

type ProgramBlocksContext

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

func NewEmptyProgramBlocksContext

func NewEmptyProgramBlocksContext() *ProgramBlocksContext

func NewProgramBlocksContext

func NewProgramBlocksContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProgramBlocksContext

func (*ProgramBlocksContext) CopyFrom

func (s *ProgramBlocksContext) CopyFrom(ctx *ProgramBlocksContext)

func (*ProgramBlocksContext) GetParser

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

func (*ProgramBlocksContext) GetRuleContext

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

func (*ProgramBlocksContext) IsProgramBlocksContext

func (*ProgramBlocksContext) IsProgramBlocksContext()

func (*ProgramBlocksContext) ToStringTree

func (s *ProgramBlocksContext) 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) 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) ProgramBlocks

func (s *ProgramContext) ProgramBlocks() IProgramBlocksContext

func (*ProgramContext) ToStringTree

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

type PropertyContext

type PropertyContext struct {
	*FeatureContext
}

func NewPropertyContext

func NewPropertyContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PropertyContext

func (*PropertyContext) ASSIGNMENT

func (s *PropertyContext) ASSIGNMENT() antlr.TerminalNode

func (*PropertyContext) EnterRule

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

func (*PropertyContext) ExitRule

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

func (*PropertyContext) Expression

func (s *PropertyContext) Expression() IExpressionContext

func (*PropertyContext) GetRuleContext

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

func (*PropertyContext) OBJECTID

func (s *PropertyContext) OBJECTID() antlr.TerminalNode

func (*PropertyContext) TYPEID

func (s *PropertyContext) TYPEID() antlr.TerminalNode

type StringContext

type StringContext struct {
	*ExpressionContext
}

func NewStringContext

func NewStringContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StringContext

func (*StringContext) EnterRule

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

func (*StringContext) ExitRule

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

func (*StringContext) GetRuleContext

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

func (*StringContext) STRING

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

type TrueContext

type TrueContext struct {
	*ExpressionContext
}

func NewTrueContext

func NewTrueContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *TrueContext

func (*TrueContext) EnterRule

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

func (*TrueContext) ExitRule

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

func (*TrueContext) GetRuleContext

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

func (*TrueContext) TRUE

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

type WhileContext

type WhileContext struct {
	*ExpressionContext
}

func NewWhileContext

func NewWhileContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *WhileContext

func (*WhileContext) AllExpression

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

func (*WhileContext) EnterRule

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

func (*WhileContext) ExitRule

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

func (*WhileContext) Expression

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

func (*WhileContext) GetRuleContext

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

func (*WhileContext) LOOP

func (s *WhileContext) LOOP() antlr.TerminalNode

func (*WhileContext) POOL

func (s *WhileContext) POOL() antlr.TerminalNode

func (*WhileContext) WHILE

func (s *WhileContext) WHILE() antlr.TerminalNode

Jump to

Keyboard shortcuts

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