package
1.22.2
Repository: https://github.com/go-asm/go.git
Documentation: pkg.go.dev

# Functions

IsRegisterShift reports whether the token is one of the ARM register shift operators.
Make returns a Token with the given rune (ScanToken) and text representation.
NewInput returns an Input from the given path.
NewLexer returns a lexer for the named file and the given link context.
No description provided by the author
No description provided by the author
Tokenize turns a string into a list of Tokens; used to parse the -D flag and in tests.

# Constants

-> Used on ARM for shift type 3, arithmetic right shift.
//go:build or +build comment.
included file started here.
<< Left shift.
@> Used on ARM for shift type 4, rotate right.
>> Logical right shift.

# Structs

Input is the main input: a stack of readers and some macro definitions.
A Macro represents the definition of a #defined macro.
A Slice reads from a slice of Tokens.
A Stack is a stack of TokenReaders.
A Token is a scan token plus its string value.
A Tokenizer is a simple wrapping of text/scanner.Scanner, configured for our purposes and made a TokenReader.

# Interfaces

A TokenReader is like a reader, but returns lex tokens of type Token.

# Type aliases

A ScanToken represents an input item.