Documentation ¶
Overview ¶
Package ast provides an Abstract Syntax Tree for the MinC language
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct { Func scanner.Position Name *Identifier ParamList *ParamList StmtBlock *StmtBlock }
Function represents the core abstraction of a program. As the language specification describes, it consists of a return type, symobolic name, parameter list and a statement block
type Identifier ¶
Identifier may be either a type name, like "void", or the main funciton identifier, "main"
type ParamList ¶
ParamList represents the "()" portion of the function declaration Neither are used but the position of both parentheses are retained Since further compilation of the language do not use these positions but they are there for scaffolding of later work
Click to show internal directories.
Click to hide internal directories.