compiler

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Copyright (c) 2021 rj45 (github.com/rj45), MIT Licensed, see LICENSE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(outname, dir string, patterns []string, mode Mode) int

func SetArch

func SetArch(a Arch)

Types

type Arch

type Arch interface {
	Name() string
	AssemblerFormat() string
	EmulatorCmd() string
	EmulatorArgs() []string
}

type Mode added in v0.1.3

type Mode int
const (
	Asm Mode = 1 << iota
	Assemble
	Run
	IR
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL