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) *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.14.12
Published
Nov 12, 2020
Platform
linux/amd64
Imports
16 packages
Last checked
6 seconds ago

Tools for package owners.