1
0
mirror of https://github.com/zellyn/go6502.git synced 2024-11-19 03:04:46 +00:00
go6502/asm/flavors/flavors.go

25 lines
535 B
Go
Raw Normal View History

2014-03-05 01:42:51 +00:00
package flavors
2014-05-08 00:44:03 +00:00
import (
"github.com/zellyn/go6502/asm/context"
"github.com/zellyn/go6502/asm/inst"
"github.com/zellyn/go6502/asm/lines"
)
2014-08-29 23:34:52 +00:00
type ParseMode int
const (
ParseModeNormal ParseMode = iota
ParseModeMacroSave
ParseModeInactive
)
2014-05-08 00:44:03 +00:00
type F interface {
2014-08-29 23:34:52 +00:00
ParseInstr(ctx context.Context, Line lines.Line, mode ParseMode) (inst.I, error)
DefaultOrigin() uint16
2014-05-08 00:44:03 +00:00
ReplaceMacroArgs(line string, args []string, kwargs map[string]string) (string, error)
LocalMacroLabels() bool
2014-08-08 23:18:15 +00:00
String() string
2014-08-22 15:24:30 +00:00
InitContext(context.Context)
2014-05-08 00:44:03 +00:00
}