package asm

import "cmd/asm/internal/asm"

Package asm implements the parser and instruction generator for the assembler. TODO: Split apart?

Index

Variables

var EOF = lex.Make(scanner.EOF, "EOF")

EOF represents the end of input.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(ctxt *obj.Link, ar *arch.Arch, lexer lex.TokenReader, compilingRuntime bool) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (*obj.Prog, bool)

func (*Parser) ParseSymABIs

func (p *Parser) ParseSymABIs(w io.Writer) bool

ParseSymABIs parses p's assembly code to find text symbol definitions and references and writes a symabis file to w.

type Patch

type Patch struct {
	// contains filtered or unexported fields
}

Source Files

asm.go parse.go

Version
v1.20.1
Published
Feb 13, 2023
Platform
js/wasm
Imports
18 packages
Last checked
2 minutes ago

Tools for package owners.