Documentation
¶
Overview ¶
author: Tristan Hilbert date: 10/02/2023 filename: parser.go desc: Parsing Grammar to Build AST for assembly files of all languages
Currently supporting: - x86
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAsmParser ¶
Types ¶
type Expression ¶
type Identifier ¶
func (Identifier) Argument ¶
func (identifier Identifier) Argument()
func (Identifier) Pos ¶
func (identifier Identifier) Pos() lexer.Position
type Instruction ¶
type Instruction struct { Position lexer.Position Prefix *Label `@@? (?= IDENTIFIER)` Name string `@IDENTIFIER (?! LABEL_OP)` Args Argument `@@? (ARG_SEP @@)*` }
func (Instruction) Pos ¶
func (instruction Instruction) Pos() lexer.Position
func (Instruction) Term ¶
func (instruction Instruction) Term()
type Section ¶
type SubAddress ¶
type SubAddress struct { Position lexer.Position Sub Argument `SUB_ADDR_BEGIN @@` Operations []Operator `@@* SUB_ADDR_END` }
func (SubAddress) Argument ¶
func (subAddress SubAddress) Argument()
func (SubAddress) Pos ¶
func (subAddress SubAddress) Pos() lexer.Position
type SubExpression ¶
type SubExpression struct { Position lexer.Position Sub Argument `SUB_EXPR_BEGIN @@` Operations []Operator `@@* SUB_EXPR_END` }
func (SubExpression) Argument ¶
func (subExpression SubExpression) Argument()
func (SubExpression) Pos ¶
func (subExpression SubExpression) Pos() lexer.Position
Click to show internal directories.
Click to hide internal directories.