ast

package
v0.0.0-...-fe244b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignStat

type AssignStat struct {
	Line     int
	Variable *Variable
	String   string
	Length   int
	Start    int
	Int      bool
}

type Block

type Block struct {
	LastLine int
	Stats    []Stat
}

type CellStat

type CellStat struct {
	Line int
	Cell int
}

type EmptyStat

type EmptyStat struct{} // ‘;’

type Exp

type Exp interface{}

type IfStat

type IfStat struct {
	Line int
	Type int
}

type LoopStat

type LoopStat struct {
	Line  int
	Stats []Stat
}

type PointerStat

type PointerStat struct {
	Line    int
	Pointer int
}

type Print

type Print struct {
	Line     int
	Variable *Variable
	Int      bool
}

type RegStat

type RegStat struct {
	Line int
	Reg  int
}

type Scanf

type Scanf struct {
	Line     int
	Variable *Variable
	Int      bool
}

type Stat

type Stat interface{}

stat ::= Assignment | Print | label | break | goto Name | if exp then block "elseif exp then block"* "else block"? end

type StringExp

type StringExp struct {
	Line int
	Str  string
}

LiteralString

type Variable

type Variable struct {
	Line int
	Name string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL