mirror of
https://github.com/zellyn/go6502.git
synced 2024-12-29 01:33:45 +00:00
25 lines
535 B
Go
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)
|
|
}
|