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)
|
2014-08-09 03:49:42 +00:00
|
|
|
DefaultOrigin() uint16
|
2014-05-08 00:44:03 +00:00
|
|
|
ReplaceMacroArgs(line string, args []string, kwargs map[string]string) (string, error)
|
2014-07-23 15:13:53 +00:00
|
|
|
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
|
|
|
}
|