Help us shape the future of Go! Take the 2026 Go Developer Survey

antlrParser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IRLexerT__0         = 1
	IRLexerWS           = 2
	IRLexerNEWLINE      = 3
	IRLexerTYPE_KEYWORD = 4
	IRLexerBOOL         = 5
	IRLexerREG          = 6
	IRLexerLABEL        = 7
	IRLexerINT          = 8
	IRLexerSTRING       = 9
	IRLexerIDENTIFIER   = 10
	IRLexerLPAREN       = 11
	IRLexerRPAREN       = 12
	IRLexerLBRACKET     = 13
	IRLexerRBRACKET     = 14
	IRLexerCOMMA        = 15
	IRLexerEQ           = 16
	IRLexerPLUS         = 17
	IRLexerMINUS        = 18
	IRLexerPLUS_EQ      = 19
	IRLexerMINUS_EQ     = 20
	IRLexerLT           = 21
	IRLexerGT           = 22
	IRLexerUNDERSCORE   = 23
)

IRLexer tokens.

View Source
const (
	IRParserEOF          = antlr.TokenEOF
	IRParserT__0         = 1
	IRParserWS           = 2
	IRParserNEWLINE      = 3
	IRParserTYPE_KEYWORD = 4
	IRParserBOOL         = 5
	IRParserREG          = 6
	IRParserLABEL        = 7
	IRParserINT          = 8
	IRParserSTRING       = 9
	IRParserIDENTIFIER   = 10
	IRParserLPAREN       = 11
	IRParserRPAREN       = 12
	IRParserLBRACKET     = 13
	IRParserRBRACKET     = 14
	IRParserCOMMA        = 15
	IRParserEQ           = 16
	IRParserPLUS         = 17
	IRParserMINUS        = 18
	IRParserPLUS_EQ      = 19
	IRParserMINUS_EQ     = 20
	IRParserLT           = 21
	IRParserGT           = 22
	IRParserUNDERSCORE   = 23
)

IRParser tokens.

View Source
const (
	IRParserRULE_program     = 0
	IRParserRULE_line        = 1
	IRParserRULE_labelMarker = 2
	IRParserRULE_instruction = 3
	IRParserRULE_dest        = 4
	IRParserRULE_regList     = 5
	IRParserRULE_instrCall   = 6
	IRParserRULE_instrName   = 7
	IRParserRULE_typeName    = 8
	IRParserRULE_args        = 9
	IRParserRULE_arg         = 10
	IRParserRULE_value       = 11
	IRParserRULE_const_      = 12
	IRParserRULE_reg         = 13
)

IRParser rules.

Variables

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

Functions

func IRLexerInit

func IRLexerInit()

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

func IRParserInit

func IRParserInit()

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

func InitEmptyArgContext

func InitEmptyArgContext(p *ArgContext)

func InitEmptyArgsContext

func InitEmptyArgsContext(p *ArgsContext)

func InitEmptyConst_Context

func InitEmptyConst_Context(p *Const_Context)

func InitEmptyDestContext

func InitEmptyDestContext(p *DestContext)

func InitEmptyInstrCallContext

func InitEmptyInstrCallContext(p *InstrCallContext)

func InitEmptyInstrNameContext

func InitEmptyInstrNameContext(p *InstrNameContext)

func InitEmptyInstructionContext

func InitEmptyInstructionContext(p *InstructionContext)

func InitEmptyLabelMarkerContext

func InitEmptyLabelMarkerContext(p *LabelMarkerContext)

func InitEmptyLineContext

func InitEmptyLineContext(p *LineContext)

func InitEmptyProgramContext

func InitEmptyProgramContext(p *ProgramContext)

func InitEmptyRegContext

func InitEmptyRegContext(p *RegContext)

func InitEmptyRegListContext

func InitEmptyRegListContext(p *RegListContext)

func InitEmptyTypeNameContext

func InitEmptyTypeNameContext(p *TypeNameContext)

func InitEmptyValueContext

func InitEmptyValueContext(p *ValueContext)

Types

type ArgContext

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

func NewArgContext

func NewArgContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgContext

func NewEmptyArgContext

func NewEmptyArgContext() *ArgContext

func (*ArgContext) CopyAll

func (s *ArgContext) CopyAll(ctx *ArgContext)

func (*ArgContext) GetParser

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

func (*ArgContext) GetRuleContext

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

func (*ArgContext) IsArgContext

func (*ArgContext) IsArgContext()

func (*ArgContext) ToStringTree

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

type ArgsContext

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

func NewArgsContext

func NewArgsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgsContext

func NewEmptyArgsContext

func NewEmptyArgsContext() *ArgsContext

func (*ArgsContext) AllArg

func (s *ArgsContext) AllArg() []IArgContext

func (*ArgsContext) AllCOMMA

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

func (*ArgsContext) Arg

func (s *ArgsContext) Arg(i int) IArgContext

func (*ArgsContext) COMMA

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

func (*ArgsContext) EnterRule

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

func (*ArgsContext) ExitRule

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

func (*ArgsContext) GetParser

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

func (*ArgsContext) GetRuleContext

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

func (*ArgsContext) IsArgsContext

func (*ArgsContext) IsArgsContext()

func (*ArgsContext) ToStringTree

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

type BaseIRListener

type BaseIRListener struct{}

BaseIRListener is a complete listener for a parse tree produced by IRParser.

func (*BaseIRListener) EnterArgs

func (s *BaseIRListener) EnterArgs(ctx *ArgsContext)

EnterArgs is called when production args is entered.

func (*BaseIRListener) EnterCompoundAssignInstr

func (s *BaseIRListener) EnterCompoundAssignInstr(ctx *CompoundAssignInstrContext)

EnterCompoundAssignInstr is called when production compoundAssignInstr is entered.

func (*BaseIRListener) EnterConstAssign

func (s *BaseIRListener) EnterConstAssign(ctx *ConstAssignContext)

EnterConstAssign is called when production constAssign is entered.

func (*BaseIRListener) EnterConstBool

func (s *BaseIRListener) EnterConstBool(ctx *ConstBoolContext)

EnterConstBool is called when production constBool is entered.

func (*BaseIRListener) EnterConstInt

func (s *BaseIRListener) EnterConstInt(ctx *ConstIntContext)

EnterConstInt is called when production constInt is entered.

func (*BaseIRListener) EnterConstString

func (s *BaseIRListener) EnterConstString(ctx *ConstStringContext)

EnterConstString is called when production constString is entered.

func (*BaseIRListener) EnterDestDiscard

func (s *BaseIRListener) EnterDestDiscard(ctx *DestDiscardContext)

EnterDestDiscard is called when production destDiscard is entered.

func (*BaseIRListener) EnterDestList

func (s *BaseIRListener) EnterDestList(ctx *DestListContext)

EnterDestList is called when production destList is entered.

func (*BaseIRListener) EnterDestReg

func (s *BaseIRListener) EnterDestReg(ctx *DestRegContext)

EnterDestReg is called when production destReg is entered.

func (*BaseIRListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseIRListener) EnterInfixInstr

func (s *BaseIRListener) EnterInfixInstr(ctx *InfixInstrContext)

EnterInfixInstr is called when production infixInstr is entered.

func (*BaseIRListener) EnterInstrCall

func (s *BaseIRListener) EnterInstrCall(ctx *InstrCallContext)

EnterInstrCall is called when production instrCall is entered.

func (*BaseIRListener) EnterInstrName

func (s *BaseIRListener) EnterInstrName(ctx *InstrNameContext)

EnterInstrName is called when production instrName is entered.

func (*BaseIRListener) EnterInstrNoDest

func (s *BaseIRListener) EnterInstrNoDest(ctx *InstrNoDestContext)

EnterInstrNoDest is called when production instrNoDest is entered.

func (*BaseIRListener) EnterInstrWithDest

func (s *BaseIRListener) EnterInstrWithDest(ctx *InstrWithDestContext)

EnterInstrWithDest is called when production instrWithDest is entered.

func (*BaseIRListener) EnterLabelMarker

func (s *BaseIRListener) EnterLabelMarker(ctx *LabelMarkerContext)

EnterLabelMarker is called when production labelMarker is entered.

func (*BaseIRListener) EnterLabeledArg

func (s *BaseIRListener) EnterLabeledArg(ctx *LabeledArgContext)

EnterLabeledArg is called when production labeledArg is entered.

func (*BaseIRListener) EnterLine

func (s *BaseIRListener) EnterLine(ctx *LineContext)

EnterLine is called when production line is entered.

func (*BaseIRListener) EnterPositionalArg

func (s *BaseIRListener) EnterPositionalArg(ctx *PositionalArgContext)

EnterPositionalArg is called when production positionalArg is entered.

func (*BaseIRListener) EnterProgram

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

EnterProgram is called when production program is entered.

func (*BaseIRListener) EnterReg

func (s *BaseIRListener) EnterReg(ctx *RegContext)

EnterReg is called when production reg is entered.

func (*BaseIRListener) EnterRegList

func (s *BaseIRListener) EnterRegList(ctx *RegListContext)

EnterRegList is called when production regList is entered.

func (*BaseIRListener) EnterTypeName

func (s *BaseIRListener) EnterTypeName(ctx *TypeNameContext)

EnterTypeName is called when production typeName is entered.

func (*BaseIRListener) EnterValInt

func (s *BaseIRListener) EnterValInt(ctx *ValIntContext)

EnterValInt is called when production valInt is entered.

func (*BaseIRListener) EnterValLabel

func (s *BaseIRListener) EnterValLabel(ctx *ValLabelContext)

EnterValLabel is called when production valLabel is entered.

func (*BaseIRListener) EnterValReg

func (s *BaseIRListener) EnterValReg(ctx *ValRegContext)

EnterValReg is called when production valReg is entered.

func (*BaseIRListener) EnterValRegList

func (s *BaseIRListener) EnterValRegList(ctx *ValRegListContext)

EnterValRegList is called when production valRegList is entered.

func (*BaseIRListener) ExitArgs

func (s *BaseIRListener) ExitArgs(ctx *ArgsContext)

ExitArgs is called when production args is exited.

func (*BaseIRListener) ExitCompoundAssignInstr

func (s *BaseIRListener) ExitCompoundAssignInstr(ctx *CompoundAssignInstrContext)

ExitCompoundAssignInstr is called when production compoundAssignInstr is exited.

func (*BaseIRListener) ExitConstAssign

func (s *BaseIRListener) ExitConstAssign(ctx *ConstAssignContext)

ExitConstAssign is called when production constAssign is exited.

func (*BaseIRListener) ExitConstBool

func (s *BaseIRListener) ExitConstBool(ctx *ConstBoolContext)

ExitConstBool is called when production constBool is exited.

func (*BaseIRListener) ExitConstInt

func (s *BaseIRListener) ExitConstInt(ctx *ConstIntContext)

ExitConstInt is called when production constInt is exited.

func (*BaseIRListener) ExitConstString

func (s *BaseIRListener) ExitConstString(ctx *ConstStringContext)

ExitConstString is called when production constString is exited.

func (*BaseIRListener) ExitDestDiscard

func (s *BaseIRListener) ExitDestDiscard(ctx *DestDiscardContext)

ExitDestDiscard is called when production destDiscard is exited.

func (*BaseIRListener) ExitDestList

func (s *BaseIRListener) ExitDestList(ctx *DestListContext)

ExitDestList is called when production destList is exited.

func (*BaseIRListener) ExitDestReg

func (s *BaseIRListener) ExitDestReg(ctx *DestRegContext)

ExitDestReg is called when production destReg is exited.

func (*BaseIRListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseIRListener) ExitInfixInstr

func (s *BaseIRListener) ExitInfixInstr(ctx *InfixInstrContext)

ExitInfixInstr is called when production infixInstr is exited.

func (*BaseIRListener) ExitInstrCall

func (s *BaseIRListener) ExitInstrCall(ctx *InstrCallContext)

ExitInstrCall is called when production instrCall is exited.

func (*BaseIRListener) ExitInstrName

func (s *BaseIRListener) ExitInstrName(ctx *InstrNameContext)

ExitInstrName is called when production instrName is exited.

func (*BaseIRListener) ExitInstrNoDest

func (s *BaseIRListener) ExitInstrNoDest(ctx *InstrNoDestContext)

ExitInstrNoDest is called when production instrNoDest is exited.

func (*BaseIRListener) ExitInstrWithDest

func (s *BaseIRListener) ExitInstrWithDest(ctx *InstrWithDestContext)

ExitInstrWithDest is called when production instrWithDest is exited.

func (*BaseIRListener) ExitLabelMarker

func (s *BaseIRListener) ExitLabelMarker(ctx *LabelMarkerContext)

ExitLabelMarker is called when production labelMarker is exited.

func (*BaseIRListener) ExitLabeledArg

func (s *BaseIRListener) ExitLabeledArg(ctx *LabeledArgContext)

ExitLabeledArg is called when production labeledArg is exited.

func (*BaseIRListener) ExitLine

func (s *BaseIRListener) ExitLine(ctx *LineContext)

ExitLine is called when production line is exited.

func (*BaseIRListener) ExitPositionalArg

func (s *BaseIRListener) ExitPositionalArg(ctx *PositionalArgContext)

ExitPositionalArg is called when production positionalArg is exited.

func (*BaseIRListener) ExitProgram

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

ExitProgram is called when production program is exited.

func (*BaseIRListener) ExitReg

func (s *BaseIRListener) ExitReg(ctx *RegContext)

ExitReg is called when production reg is exited.

func (*BaseIRListener) ExitRegList

func (s *BaseIRListener) ExitRegList(ctx *RegListContext)

ExitRegList is called when production regList is exited.

func (*BaseIRListener) ExitTypeName

func (s *BaseIRListener) ExitTypeName(ctx *TypeNameContext)

ExitTypeName is called when production typeName is exited.

func (*BaseIRListener) ExitValInt

func (s *BaseIRListener) ExitValInt(ctx *ValIntContext)

ExitValInt is called when production valInt is exited.

func (*BaseIRListener) ExitValLabel

func (s *BaseIRListener) ExitValLabel(ctx *ValLabelContext)

ExitValLabel is called when production valLabel is exited.

func (*BaseIRListener) ExitValReg

func (s *BaseIRListener) ExitValReg(ctx *ValRegContext)

ExitValReg is called when production valReg is exited.

func (*BaseIRListener) ExitValRegList

func (s *BaseIRListener) ExitValRegList(ctx *ValRegListContext)

ExitValRegList is called when production valRegList is exited.

func (*BaseIRListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseIRListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type CompoundAssignInstrContext

type CompoundAssignInstrContext struct {
	InstructionContext
	// contains filtered or unexported fields
}

func NewCompoundAssignInstrContext

func NewCompoundAssignInstrContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CompoundAssignInstrContext

func (*CompoundAssignInstrContext) AllReg

func (*CompoundAssignInstrContext) EnterRule

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

func (*CompoundAssignInstrContext) ExitRule

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

func (*CompoundAssignInstrContext) GetLeft

func (*CompoundAssignInstrContext) GetOp

func (*CompoundAssignInstrContext) GetRight

func (*CompoundAssignInstrContext) GetRuleContext

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

func (*CompoundAssignInstrContext) MINUS_EQ

func (*CompoundAssignInstrContext) PLUS_EQ

func (*CompoundAssignInstrContext) Reg

func (*CompoundAssignInstrContext) SetLeft

func (*CompoundAssignInstrContext) SetOp

func (*CompoundAssignInstrContext) SetRight

func (s *CompoundAssignInstrContext) SetRight(v IRegContext)

type ConstAssignContext

type ConstAssignContext struct {
	InstructionContext
}

func NewConstAssignContext

func NewConstAssignContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ConstAssignContext

func (*ConstAssignContext) Const_

func (s *ConstAssignContext) Const_() IConst_Context

func (*ConstAssignContext) Dest

func (s *ConstAssignContext) Dest() IDestContext

func (*ConstAssignContext) EQ

func (*ConstAssignContext) EnterRule

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

func (*ConstAssignContext) ExitRule

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

func (*ConstAssignContext) GetRuleContext

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

type ConstBoolContext

type ConstBoolContext struct {
	Const_Context
}

func NewConstBoolContext

func NewConstBoolContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ConstBoolContext

func (*ConstBoolContext) BOOL

func (*ConstBoolContext) EnterRule

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

func (*ConstBoolContext) ExitRule

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

func (*ConstBoolContext) GetRuleContext

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

type ConstIntContext

type ConstIntContext struct {
	Const_Context
}

func NewConstIntContext

func NewConstIntContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ConstIntContext

func (*ConstIntContext) EnterRule

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

func (*ConstIntContext) ExitRule

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

func (*ConstIntContext) GetRuleContext

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

func (*ConstIntContext) INT

func (*ConstIntContext) MINUS

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

type ConstStringContext

type ConstStringContext struct {
	Const_Context
}

func NewConstStringContext

func NewConstStringContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ConstStringContext

func (*ConstStringContext) EnterRule

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

func (*ConstStringContext) ExitRule

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

func (*ConstStringContext) GetRuleContext

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

func (*ConstStringContext) STRING

type Const_Context

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

func NewConst_Context

func NewConst_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Const_Context

func NewEmptyConst_Context

func NewEmptyConst_Context() *Const_Context

func (*Const_Context) CopyAll

func (s *Const_Context) CopyAll(ctx *Const_Context)

func (*Const_Context) GetParser

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

func (*Const_Context) GetRuleContext

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

func (*Const_Context) IsConst_Context

func (*Const_Context) IsConst_Context()

func (*Const_Context) ToStringTree

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

type DestContext

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

func NewDestContext

func NewDestContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DestContext

func NewEmptyDestContext

func NewEmptyDestContext() *DestContext

func (*DestContext) CopyAll

func (s *DestContext) CopyAll(ctx *DestContext)

func (*DestContext) GetParser

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

func (*DestContext) GetRuleContext

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

func (*DestContext) IsDestContext

func (*DestContext) IsDestContext()

func (*DestContext) ToStringTree

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

type DestDiscardContext

type DestDiscardContext struct {
	DestContext
}

func NewDestDiscardContext

func NewDestDiscardContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DestDiscardContext

func (*DestDiscardContext) EnterRule

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

func (*DestDiscardContext) ExitRule

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

func (*DestDiscardContext) GetRuleContext

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

func (*DestDiscardContext) UNDERSCORE

func (s *DestDiscardContext) UNDERSCORE() antlr.TerminalNode

type DestListContext

type DestListContext struct {
	DestContext
}

func NewDestListContext

func NewDestListContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DestListContext

func (*DestListContext) EnterRule

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

func (*DestListContext) ExitRule

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

func (*DestListContext) GetRuleContext

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

func (*DestListContext) LBRACKET

func (s *DestListContext) LBRACKET() antlr.TerminalNode

func (*DestListContext) RBRACKET

func (s *DestListContext) RBRACKET() antlr.TerminalNode

func (*DestListContext) RegList

func (s *DestListContext) RegList() IRegListContext

type DestRegContext

type DestRegContext struct {
	DestContext
}

func NewDestRegContext

func NewDestRegContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DestRegContext

func (*DestRegContext) EnterRule

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

func (*DestRegContext) ExitRule

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

func (*DestRegContext) GetRuleContext

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

func (*DestRegContext) Reg

func (s *DestRegContext) Reg() IRegContext

type IArgContext

type IArgContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsArgContext differentiates from other interfaces.
	IsArgContext()
}

IArgContext is an interface to support dynamic dispatch.

type IArgsContext

type IArgsContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllArg() []IArgContext
	Arg(i int) IArgContext
	AllCOMMA() []antlr.TerminalNode
	COMMA(i int) antlr.TerminalNode

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

IArgsContext is an interface to support dynamic dispatch.

type IConst_Context

type IConst_Context interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsConst_Context differentiates from other interfaces.
	IsConst_Context()
}

IConst_Context is an interface to support dynamic dispatch.

type IDestContext

type IDestContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsDestContext differentiates from other interfaces.
	IsDestContext()
}

IDestContext is an interface to support dynamic dispatch.

type IInstrCallContext

type IInstrCallContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	InstrName() IInstrNameContext
	LPAREN() antlr.TerminalNode
	Args() IArgsContext
	RPAREN() antlr.TerminalNode

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

IInstrCallContext is an interface to support dynamic dispatch.

type IInstrNameContext

type IInstrNameContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	IDENTIFIER() antlr.TerminalNode
	LT() antlr.TerminalNode
	TypeName() ITypeNameContext
	GT() antlr.TerminalNode

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

IInstrNameContext is an interface to support dynamic dispatch.

type IInstructionContext

type IInstructionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsInstructionContext differentiates from other interfaces.
	IsInstructionContext()
}

IInstructionContext is an interface to support dynamic dispatch.

type ILabelMarkerContext

type ILabelMarkerContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	LABEL() antlr.TerminalNode

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

ILabelMarkerContext is an interface to support dynamic dispatch.

type ILineContext

type ILineContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	LabelMarker() ILabelMarkerContext
	Instruction() IInstructionContext

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

ILineContext is an interface to support dynamic dispatch.

type IProgramContext

type IProgramContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	EOF() antlr.TerminalNode
	AllLine() []ILineContext
	Line(i int) ILineContext

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

IProgramContext is an interface to support dynamic dispatch.

type IRLexer

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

func NewIRLexer

func NewIRLexer(input antlr.CharStream) *IRLexer

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

type IRListener

type IRListener interface {
	antlr.ParseTreeListener

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

	// EnterLine is called when entering the line production.
	EnterLine(c *LineContext)

	// EnterLabelMarker is called when entering the labelMarker production.
	EnterLabelMarker(c *LabelMarkerContext)

	// EnterInstrWithDest is called when entering the instrWithDest production.
	EnterInstrWithDest(c *InstrWithDestContext)

	// EnterInstrNoDest is called when entering the instrNoDest production.
	EnterInstrNoDest(c *InstrNoDestContext)

	// EnterConstAssign is called when entering the constAssign production.
	EnterConstAssign(c *ConstAssignContext)

	// EnterInfixInstr is called when entering the infixInstr production.
	EnterInfixInstr(c *InfixInstrContext)

	// EnterCompoundAssignInstr is called when entering the compoundAssignInstr production.
	EnterCompoundAssignInstr(c *CompoundAssignInstrContext)

	// EnterDestReg is called when entering the destReg production.
	EnterDestReg(c *DestRegContext)

	// EnterDestDiscard is called when entering the destDiscard production.
	EnterDestDiscard(c *DestDiscardContext)

	// EnterDestList is called when entering the destList production.
	EnterDestList(c *DestListContext)

	// EnterRegList is called when entering the regList production.
	EnterRegList(c *RegListContext)

	// EnterInstrCall is called when entering the instrCall production.
	EnterInstrCall(c *InstrCallContext)

	// EnterInstrName is called when entering the instrName production.
	EnterInstrName(c *InstrNameContext)

	// EnterTypeName is called when entering the typeName production.
	EnterTypeName(c *TypeNameContext)

	// EnterArgs is called when entering the args production.
	EnterArgs(c *ArgsContext)

	// EnterPositionalArg is called when entering the positionalArg production.
	EnterPositionalArg(c *PositionalArgContext)

	// EnterLabeledArg is called when entering the labeledArg production.
	EnterLabeledArg(c *LabeledArgContext)

	// EnterValReg is called when entering the valReg production.
	EnterValReg(c *ValRegContext)

	// EnterValLabel is called when entering the valLabel production.
	EnterValLabel(c *ValLabelContext)

	// EnterValInt is called when entering the valInt production.
	EnterValInt(c *ValIntContext)

	// EnterValRegList is called when entering the valRegList production.
	EnterValRegList(c *ValRegListContext)

	// EnterConstString is called when entering the constString production.
	EnterConstString(c *ConstStringContext)

	// EnterConstInt is called when entering the constInt production.
	EnterConstInt(c *ConstIntContext)

	// EnterConstBool is called when entering the constBool production.
	EnterConstBool(c *ConstBoolContext)

	// EnterReg is called when entering the reg production.
	EnterReg(c *RegContext)

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

	// ExitLine is called when exiting the line production.
	ExitLine(c *LineContext)

	// ExitLabelMarker is called when exiting the labelMarker production.
	ExitLabelMarker(c *LabelMarkerContext)

	// ExitInstrWithDest is called when exiting the instrWithDest production.
	ExitInstrWithDest(c *InstrWithDestContext)

	// ExitInstrNoDest is called when exiting the instrNoDest production.
	ExitInstrNoDest(c *InstrNoDestContext)

	// ExitConstAssign is called when exiting the constAssign production.
	ExitConstAssign(c *ConstAssignContext)

	// ExitInfixInstr is called when exiting the infixInstr production.
	ExitInfixInstr(c *InfixInstrContext)

	// ExitCompoundAssignInstr is called when exiting the compoundAssignInstr production.
	ExitCompoundAssignInstr(c *CompoundAssignInstrContext)

	// ExitDestReg is called when exiting the destReg production.
	ExitDestReg(c *DestRegContext)

	// ExitDestDiscard is called when exiting the destDiscard production.
	ExitDestDiscard(c *DestDiscardContext)

	// ExitDestList is called when exiting the destList production.
	ExitDestList(c *DestListContext)

	// ExitRegList is called when exiting the regList production.
	ExitRegList(c *RegListContext)

	// ExitInstrCall is called when exiting the instrCall production.
	ExitInstrCall(c *InstrCallContext)

	// ExitInstrName is called when exiting the instrName production.
	ExitInstrName(c *InstrNameContext)

	// ExitTypeName is called when exiting the typeName production.
	ExitTypeName(c *TypeNameContext)

	// ExitArgs is called when exiting the args production.
	ExitArgs(c *ArgsContext)

	// ExitPositionalArg is called when exiting the positionalArg production.
	ExitPositionalArg(c *PositionalArgContext)

	// ExitLabeledArg is called when exiting the labeledArg production.
	ExitLabeledArg(c *LabeledArgContext)

	// ExitValReg is called when exiting the valReg production.
	ExitValReg(c *ValRegContext)

	// ExitValLabel is called when exiting the valLabel production.
	ExitValLabel(c *ValLabelContext)

	// ExitValInt is called when exiting the valInt production.
	ExitValInt(c *ValIntContext)

	// ExitValRegList is called when exiting the valRegList production.
	ExitValRegList(c *ValRegListContext)

	// ExitConstString is called when exiting the constString production.
	ExitConstString(c *ConstStringContext)

	// ExitConstInt is called when exiting the constInt production.
	ExitConstInt(c *ConstIntContext)

	// ExitConstBool is called when exiting the constBool production.
	ExitConstBool(c *ConstBoolContext)

	// ExitReg is called when exiting the reg production.
	ExitReg(c *RegContext)
}

IRListener is a complete listener for a parse tree produced by IRParser.

type IRParser

type IRParser struct {
	*antlr.BaseParser
}

func NewIRParser

func NewIRParser(input antlr.TokenStream) *IRParser

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

func (*IRParser) Arg

func (p *IRParser) Arg() (localctx IArgContext)

func (*IRParser) Args

func (p *IRParser) Args() (localctx IArgsContext)

func (*IRParser) Const_

func (p *IRParser) Const_() (localctx IConst_Context)

func (*IRParser) Dest

func (p *IRParser) Dest() (localctx IDestContext)

func (*IRParser) InstrCall

func (p *IRParser) InstrCall() (localctx IInstrCallContext)

func (*IRParser) InstrName

func (p *IRParser) InstrName() (localctx IInstrNameContext)

func (*IRParser) Instruction

func (p *IRParser) Instruction() (localctx IInstructionContext)

func (*IRParser) LabelMarker

func (p *IRParser) LabelMarker() (localctx ILabelMarkerContext)

func (*IRParser) Line

func (p *IRParser) Line() (localctx ILineContext)

func (*IRParser) Program

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

func (*IRParser) Reg

func (p *IRParser) Reg() (localctx IRegContext)

func (*IRParser) RegList

func (p *IRParser) RegList() (localctx IRegListContext)

func (*IRParser) TypeName

func (p *IRParser) TypeName() (localctx ITypeNameContext)

func (*IRParser) Value

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

type IRegContext

type IRegContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	REG() antlr.TerminalNode

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

IRegContext is an interface to support dynamic dispatch.

type IRegListContext

type IRegListContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllReg() []IRegContext
	Reg(i int) IRegContext
	AllCOMMA() []antlr.TerminalNode
	COMMA(i int) antlr.TerminalNode

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

IRegListContext is an interface to support dynamic dispatch.

type ITypeNameContext

type ITypeNameContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	TYPE_KEYWORD() antlr.TerminalNode

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

ITypeNameContext is an interface to support dynamic dispatch.

type IValueContext

type IValueContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsValueContext differentiates from other interfaces.
	IsValueContext()
}

IValueContext is an interface to support dynamic dispatch.

type InfixInstrContext

type InfixInstrContext struct {
	InstructionContext
	// contains filtered or unexported fields
}

func NewInfixInstrContext

func NewInfixInstrContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *InfixInstrContext

func (*InfixInstrContext) AllReg

func (s *InfixInstrContext) AllReg() []IRegContext

func (*InfixInstrContext) Dest

func (s *InfixInstrContext) Dest() IDestContext

func (*InfixInstrContext) EQ

func (*InfixInstrContext) EnterRule

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

func (*InfixInstrContext) ExitRule

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

func (*InfixInstrContext) GetLeft

func (s *InfixInstrContext) GetLeft() IRegContext

func (*InfixInstrContext) GetOp

func (s *InfixInstrContext) GetOp() antlr.Token

func (*InfixInstrContext) GetRight

func (s *InfixInstrContext) GetRight() IRegContext

func (*InfixInstrContext) GetRuleContext

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

func (*InfixInstrContext) MINUS

func (*InfixInstrContext) PLUS

func (*InfixInstrContext) Reg

func (s *InfixInstrContext) Reg(i int) IRegContext

func (*InfixInstrContext) SetLeft

func (s *InfixInstrContext) SetLeft(v IRegContext)

func (*InfixInstrContext) SetOp

func (s *InfixInstrContext) SetOp(v antlr.Token)

func (*InfixInstrContext) SetRight

func (s *InfixInstrContext) SetRight(v IRegContext)

type InstrCallContext

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

func NewEmptyInstrCallContext

func NewEmptyInstrCallContext() *InstrCallContext

func NewInstrCallContext

func NewInstrCallContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *InstrCallContext

func (*InstrCallContext) Args

func (s *InstrCallContext) Args() IArgsContext

func (*InstrCallContext) EnterRule

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

func (*InstrCallContext) ExitRule

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

func (*InstrCallContext) GetParser

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

func (*InstrCallContext) GetRuleContext

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

func (*InstrCallContext) InstrName

func (s *InstrCallContext) InstrName() IInstrNameContext

func (*InstrCallContext) IsInstrCallContext

func (*InstrCallContext) IsInstrCallContext()

func (*InstrCallContext) LPAREN

func (s *InstrCallContext) LPAREN() antlr.TerminalNode

func (*InstrCallContext) RPAREN

func (s *InstrCallContext) RPAREN() antlr.TerminalNode

func (*InstrCallContext) ToStringTree

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

type InstrNameContext

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

func NewEmptyInstrNameContext

func NewEmptyInstrNameContext() *InstrNameContext

func NewInstrNameContext

func NewInstrNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *InstrNameContext

func (*InstrNameContext) EnterRule

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

func (*InstrNameContext) ExitRule

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

func (*InstrNameContext) GT

func (*InstrNameContext) GetParser

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

func (*InstrNameContext) GetRuleContext

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

func (*InstrNameContext) IDENTIFIER

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

func (*InstrNameContext) IsInstrNameContext

func (*InstrNameContext) IsInstrNameContext()

func (*InstrNameContext) LT

func (*InstrNameContext) ToStringTree

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

func (*InstrNameContext) TypeName

func (s *InstrNameContext) TypeName() ITypeNameContext

type InstrNoDestContext

type InstrNoDestContext struct {
	InstructionContext
}

func NewInstrNoDestContext

func NewInstrNoDestContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *InstrNoDestContext

func (*InstrNoDestContext) EnterRule

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

func (*InstrNoDestContext) ExitRule

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

func (*InstrNoDestContext) GetRuleContext

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

func (*InstrNoDestContext) InstrCall

func (s *InstrNoDestContext) InstrCall() IInstrCallContext

type InstrWithDestContext

type InstrWithDestContext struct {
	InstructionContext
}

func NewInstrWithDestContext

func NewInstrWithDestContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *InstrWithDestContext

func (*InstrWithDestContext) Dest

func (*InstrWithDestContext) EQ

func (*InstrWithDestContext) EnterRule

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

func (*InstrWithDestContext) ExitRule

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

func (*InstrWithDestContext) GetRuleContext

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

func (*InstrWithDestContext) InstrCall

func (s *InstrWithDestContext) InstrCall() IInstrCallContext

type InstructionContext

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

func NewEmptyInstructionContext

func NewEmptyInstructionContext() *InstructionContext

func NewInstructionContext

func NewInstructionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *InstructionContext

func (*InstructionContext) CopyAll

func (s *InstructionContext) CopyAll(ctx *InstructionContext)

func (*InstructionContext) GetParser

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

func (*InstructionContext) GetRuleContext

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

func (*InstructionContext) IsInstructionContext

func (*InstructionContext) IsInstructionContext()

func (*InstructionContext) ToStringTree

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

type LabelMarkerContext

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

func NewEmptyLabelMarkerContext

func NewEmptyLabelMarkerContext() *LabelMarkerContext

func NewLabelMarkerContext

func NewLabelMarkerContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LabelMarkerContext

func (*LabelMarkerContext) EnterRule

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

func (*LabelMarkerContext) ExitRule

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

func (*LabelMarkerContext) GetParser

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

func (*LabelMarkerContext) GetRuleContext

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

func (*LabelMarkerContext) IsLabelMarkerContext

func (*LabelMarkerContext) IsLabelMarkerContext()

func (*LabelMarkerContext) LABEL

func (*LabelMarkerContext) ToStringTree

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

type LabeledArgContext

type LabeledArgContext struct {
	ArgContext
}

func NewLabeledArgContext

func NewLabeledArgContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *LabeledArgContext

func (*LabeledArgContext) EnterRule

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

func (*LabeledArgContext) ExitRule

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

func (*LabeledArgContext) GetRuleContext

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

func (*LabeledArgContext) IDENTIFIER

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

func (*LabeledArgContext) Value

func (s *LabeledArgContext) Value() IValueContext

type LineContext

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

func NewEmptyLineContext

func NewEmptyLineContext() *LineContext

func NewLineContext

func NewLineContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LineContext

func (*LineContext) EnterRule

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

func (*LineContext) ExitRule

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

func (*LineContext) GetParser

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

func (*LineContext) GetRuleContext

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

func (*LineContext) Instruction

func (s *LineContext) Instruction() IInstructionContext

func (*LineContext) IsLineContext

func (*LineContext) IsLineContext()

func (*LineContext) LabelMarker

func (s *LineContext) LabelMarker() ILabelMarkerContext

func (*LineContext) ToStringTree

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

type PositionalArgContext

type PositionalArgContext struct {
	ArgContext
}

func NewPositionalArgContext

func NewPositionalArgContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PositionalArgContext

func (*PositionalArgContext) EnterRule

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

func (*PositionalArgContext) ExitRule

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

func (*PositionalArgContext) GetRuleContext

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

func (*PositionalArgContext) Value

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

func (s *ProgramContext) AllLine() []ILineContext

func (*ProgramContext) EOF

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

func (s *ProgramContext) Line(i int) ILineContext

func (*ProgramContext) ToStringTree

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

type RegContext

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

func NewEmptyRegContext

func NewEmptyRegContext() *RegContext

func NewRegContext

func NewRegContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RegContext

func (*RegContext) EnterRule

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

func (*RegContext) ExitRule

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

func (*RegContext) GetParser

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

func (*RegContext) GetRuleContext

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

func (*RegContext) IsRegContext

func (*RegContext) IsRegContext()

func (*RegContext) REG

func (s *RegContext) REG() antlr.TerminalNode

func (*RegContext) ToStringTree

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

type RegListContext

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

func NewEmptyRegListContext

func NewEmptyRegListContext() *RegListContext

func NewRegListContext

func NewRegListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RegListContext

func (*RegListContext) AllCOMMA

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

func (*RegListContext) AllReg

func (s *RegListContext) AllReg() []IRegContext

func (*RegListContext) COMMA

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

func (*RegListContext) EnterRule

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

func (*RegListContext) ExitRule

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

func (*RegListContext) GetParser

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

func (*RegListContext) GetRuleContext

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

func (*RegListContext) IsRegListContext

func (*RegListContext) IsRegListContext()

func (*RegListContext) Reg

func (s *RegListContext) Reg(i int) IRegContext

func (*RegListContext) ToStringTree

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

type TypeNameContext

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

func NewEmptyTypeNameContext

func NewEmptyTypeNameContext() *TypeNameContext

func NewTypeNameContext

func NewTypeNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeNameContext

func (*TypeNameContext) EnterRule

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

func (*TypeNameContext) ExitRule

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

func (*TypeNameContext) GetParser

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

func (*TypeNameContext) GetRuleContext

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

func (*TypeNameContext) IsTypeNameContext

func (*TypeNameContext) IsTypeNameContext()

func (*TypeNameContext) TYPE_KEYWORD

func (s *TypeNameContext) TYPE_KEYWORD() antlr.TerminalNode

func (*TypeNameContext) ToStringTree

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

type ValIntContext

type ValIntContext struct {
	ValueContext
}

func NewValIntContext

func NewValIntContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ValIntContext

func (*ValIntContext) EnterRule

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

func (*ValIntContext) ExitRule

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

func (*ValIntContext) GetRuleContext

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

func (*ValIntContext) INT

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

type ValLabelContext

type ValLabelContext struct {
	ValueContext
}

func NewValLabelContext

func NewValLabelContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ValLabelContext

func (*ValLabelContext) EnterRule

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

func (*ValLabelContext) ExitRule

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

func (*ValLabelContext) GetRuleContext

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

func (*ValLabelContext) LABEL

func (s *ValLabelContext) LABEL() antlr.TerminalNode

type ValRegContext

type ValRegContext struct {
	ValueContext
}

func NewValRegContext

func NewValRegContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ValRegContext

func (*ValRegContext) EnterRule

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

func (*ValRegContext) ExitRule

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

func (*ValRegContext) GetRuleContext

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

func (*ValRegContext) Reg

func (s *ValRegContext) Reg() IRegContext

type ValRegListContext

type ValRegListContext struct {
	ValueContext
}

func NewValRegListContext

func NewValRegListContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ValRegListContext

func (*ValRegListContext) EnterRule

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

func (*ValRegListContext) ExitRule

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

func (*ValRegListContext) GetRuleContext

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

func (*ValRegListContext) LBRACKET

func (s *ValRegListContext) LBRACKET() antlr.TerminalNode

func (*ValRegListContext) RBRACKET

func (s *ValRegListContext) RBRACKET() antlr.TerminalNode

func (*ValRegListContext) RegList

func (s *ValRegListContext) RegList() IRegListContext

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

func (s *ValueContext) CopyAll(ctx *ValueContext)

func (*ValueContext) GetParser

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

func (*ValueContext) GetRuleContext

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

func (*ValueContext) IsValueContext

func (*ValueContext) IsValueContext()

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