Documentation
¶
Overview ¶
Package compiler provides functionality for parsing Golang code.
Index ¶
Constants ¶
View Source
const ( VarInitFunctionName = "VariableInit" VarInitFunctionFullName = "github.com/retroenv/nesgo/pkg/nes.VariableInit" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
Compiler defines a new compiler.
func (*Compiler) OutputAsmFile ¶
OutputAsmFile creates an .asm file based on the given .nes file name as base.
type Config ¶
type Config struct { // DisableComments does not output any comments. DisableComments bool }
Config contains the compiler configuration.
type File ¶
type File struct { Path string IsIgnored bool Package string Imports []*ast.Import Constants []*ast.Constant Variables []*ast.Variable Functions []*ast.Function // contains filtered or unexported fields }
File is a .go file.
type Function ¶
type Function struct { Definition *ast.FunctionDefinition Body *ast.NodeList // package that this function belongs to Package *Package // map of all labels in this function Labels map[string]*ast.Label // function is an IRQ handler and has to return with rti instruction IrqHandler bool }
Function is a function declaration.
Click to show internal directories.
Click to hide internal directories.