Documentation ¶
Index ¶
- func NewVisitor(p *Pass2) *ast.Visitor
- type AddExpHandlerImpl
- type CharFactorHandlerImpl
- type ConfigStmtHandlerImpl
- type DeclareStmtHandlerImpl
- type ExportSymStmtHandlerImpl
- type ExternSymStmtHandlerImpl
- type HexFactorHandlerImpl
- type IdentFactorHandlerImpl
- type ImmExpHandlerImpl
- type LabelStmtHandlerImpl
- type MemoryAddrExpHandlerImpl
- type MnemonicStmtHandlerImpl
- type MultExpHandlerImpl
- type NumberFactorHandlerImpl
- type Pass2
- type ProgramHandlerImpl
- type SegmentExpHandlerImpl
- type StringFactorHandlerImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVisitor ¶
Types ¶
type AddExpHandlerImpl ¶
func NewAddExpHandlerImpl ¶
func NewAddExpHandlerImpl(visitor *ast.Visitor, env *Pass2) *AddExpHandlerImpl
NewAddExpHandlerImpl Create a new AddExpHandlerImpl
type CharFactorHandlerImpl ¶
func NewCharFactorHandlerImpl ¶
func NewCharFactorHandlerImpl(visitor *ast.Visitor, env *Pass2) *CharFactorHandlerImpl
NewCharFactorHandlerImpl Create a new CharFactorHandlerImpl
func (*CharFactorHandlerImpl) CharFactor ¶
func (p *CharFactorHandlerImpl) CharFactor(node *ast.CharFactor) bool
type ConfigStmtHandlerImpl ¶
func NewConfigStmtHandlerImpl ¶
func NewConfigStmtHandlerImpl(visitor *ast.Visitor, env *Pass2) *ConfigStmtHandlerImpl
NewConfigStmtHandlerImpl Create a new ConfigStmtHandlerImpl
func (*ConfigStmtHandlerImpl) ConfigStmt ¶
func (p *ConfigStmtHandlerImpl) ConfigStmt(node *ast.ConfigStmt) bool
type DeclareStmtHandlerImpl ¶
func NewDeclareStmtHandlerImpl ¶
func NewDeclareStmtHandlerImpl(visitor *ast.Visitor, env *Pass2) *DeclareStmtHandlerImpl
NewDeclareStmtHandlerImpl Create a new DeclareStmtHandlerImpl
func (*DeclareStmtHandlerImpl) DeclareStmt ¶
func (p *DeclareStmtHandlerImpl) DeclareStmt(node *ast.DeclareStmt) bool
type ExportSymStmtHandlerImpl ¶
func NewExportSymStmtHandlerImpl ¶
func NewExportSymStmtHandlerImpl(visitor *ast.Visitor, env *Pass2) *ExportSymStmtHandlerImpl
NewExportSymStmtHandlerImpl Create a new ExportSymStmtHandlerImpl
func (*ExportSymStmtHandlerImpl) ExportSymStmt ¶
func (p *ExportSymStmtHandlerImpl) ExportSymStmt(node *ast.ExportSymStmt) bool
type ExternSymStmtHandlerImpl ¶
func NewExternSymStmtHandlerImpl ¶
func NewExternSymStmtHandlerImpl(visitor *ast.Visitor, env *Pass2) *ExternSymStmtHandlerImpl
NewExternSymStmtHandlerImpl Create a new ExternSymStmtHandlerImpl
func (*ExternSymStmtHandlerImpl) ExternSymStmt ¶
func (p *ExternSymStmtHandlerImpl) ExternSymStmt(node *ast.ExternSymStmt) bool
type HexFactorHandlerImpl ¶
func NewHexFactorHandlerImpl ¶
func NewHexFactorHandlerImpl(visitor *ast.Visitor, env *Pass2) *HexFactorHandlerImpl
NewHexFactorHandlerImpl Create a new HexFactorHandlerImpl
type IdentFactorHandlerImpl ¶
func NewIdentFactorHandlerImpl ¶
func NewIdentFactorHandlerImpl(visitor *ast.Visitor, env *Pass2) *IdentFactorHandlerImpl
NewIdentFactorHandlerImpl Create a new IdentFactorHandlerImpl
func (*IdentFactorHandlerImpl) IdentFactor ¶
func (p *IdentFactorHandlerImpl) IdentFactor(node *ast.IdentFactor) bool
type ImmExpHandlerImpl ¶
func NewImmExpHandlerImpl ¶
func NewImmExpHandlerImpl(visitor *ast.Visitor, env *Pass2) *ImmExpHandlerImpl
NewImmExpHandlerImpl Create a new ImmExpHandlerImpl
type LabelStmtHandlerImpl ¶
func NewLabelStmtHandlerImpl ¶
func NewLabelStmtHandlerImpl(visitor *ast.Visitor, env *Pass2) *LabelStmtHandlerImpl
NewLabelStmtHandlerImpl Create a new LabelStmtHandlerImpl
type MemoryAddrExpHandlerImpl ¶
func NewMemoryAddrExpHandlerImpl ¶
func NewMemoryAddrExpHandlerImpl(visitor *ast.Visitor, env *Pass2) *MemoryAddrExpHandlerImpl
NewMemoryAddrExpHandlerImpl Create a new MemoryAddrExpHandlerImpl
func (*MemoryAddrExpHandlerImpl) MemoryAddrExp ¶
func (p *MemoryAddrExpHandlerImpl) MemoryAddrExp(node *ast.MemoryAddrExp) bool
*
- Handling Exp elements
type MnemonicStmtHandlerImpl ¶
func NewMnemonicStmtHandlerImpl ¶
func NewMnemonicStmtHandlerImpl(visitor *ast.Visitor, env *Pass2) *MnemonicStmtHandlerImpl
NewMnemonicStmtHandlerImpl Create a new MnemonicStmtHandlerImpl
func (*MnemonicStmtHandlerImpl) MnemonicStmt ¶
func (p *MnemonicStmtHandlerImpl) MnemonicStmt(node *ast.MnemonicStmt) bool
type MultExpHandlerImpl ¶
func NewMultExpHandlerImpl ¶
func NewMultExpHandlerImpl(visitor *ast.Visitor, env *Pass2) *MultExpHandlerImpl
NewMultExpHandlerImpl Create a new MultExpHandlerImpl
type NumberFactorHandlerImpl ¶
func NewNumberFactorHandlerImpl ¶
func NewNumberFactorHandlerImpl(visitor *ast.Visitor, env *Pass2) *NumberFactorHandlerImpl
NewNumberFactorHandlerImpl Create a new NumberFactorHandlerImpl
func (*NumberFactorHandlerImpl) NumberFactor ¶
func (p *NumberFactorHandlerImpl) NumberFactor(node *ast.NumberFactor) bool
*
- Handling Factor elements
type Pass2 ¶
type ProgramHandlerImpl ¶
func NewProgramHandlerImpl ¶
func NewProgramHandlerImpl(visitor *ast.Visitor, env *Pass2) *ProgramHandlerImpl
NewProgramHandlerImpl Create a new ProgramHandlerImpl
type SegmentExpHandlerImpl ¶
func NewSegmentExpHandlerImpl ¶
func NewSegmentExpHandlerImpl(visitor *ast.Visitor, env *Pass2) *SegmentExpHandlerImpl
NewSegmentExpHandlerImpl Create a new SegmentExpHandlerImpl
func (*SegmentExpHandlerImpl) SegmentExp ¶
func (p *SegmentExpHandlerImpl) SegmentExp(node *ast.SegmentExp) bool
type StringFactorHandlerImpl ¶
func NewStringFactorHandlerImpl ¶
func NewStringFactorHandlerImpl(visitor *ast.Visitor, env *Pass2) *StringFactorHandlerImpl
NewStringFactorHandlerImpl Create a new StringFactorHandlerImpl
func (*StringFactorHandlerImpl) StringFactor ¶
func (p *StringFactorHandlerImpl) StringFactor(node *ast.StringFactor) bool