|
Decaf Compiler
|
Single Decaf symbol. More...
#include <symbol.h>
Public Attributes | |
| enum Symbol:: { ... } | symbol_type |
| Kind of symbol (scalar, array, or function) | |
| char | name [256] |
| Name of symbol in code. | |
| DecafType | type |
| Variable or function return type. | |
| int | length |
| Length (for array symbols only) | |
| ParameterList * | parameters |
| List of parameters (for function symbols only) | |
| enum Symbol:: { ... } | location |
| Memory access location (initialized during code generation) | |
| int | offset |
| Memory offset (initialized during code generation) | |
| struct Symbol * | next |
| Next symbol (if stored in a list) | |
Single Decaf symbol.
Might represent a scalar variable, an array, or a formal function parameter.