1
0
mirror of https://github.com/zellyn/go6502.git synced 2024-10-01 05:56:28 +00:00
go6502/asm/flavors/flavors.go
2014-08-29 16:34:52 -07:00

25 lines
535 B
Go

package flavors
import (
"github.com/zellyn/go6502/asm/context"
"github.com/zellyn/go6502/asm/inst"
"github.com/zellyn/go6502/asm/lines"
)
type ParseMode int
const (
ParseModeNormal ParseMode = iota
ParseModeMacroSave
ParseModeInactive
)
type F interface {
ParseInstr(ctx context.Context, Line lines.Line, mode ParseMode) (inst.I, error)
DefaultOrigin() uint16
ReplaceMacroArgs(line string, args []string, kwargs map[string]string) (string, error)
LocalMacroLabels() bool
String() string
InitContext(context.Context)
}