|
Classes |
struct | _object |
| This structure contains one object description. More...
|
struct | _type |
| This structure contains one type description. More...
|
struct | _item |
| This structure contains one item description. More...
|
struct | _symtab |
| This structure contains the symbol table. More...
|
Defines |
#define | class_t int |
#define | CLASS_HEAD 0 |
#define | CLASS_VAR 1 |
#define | CLASS_PARAM 2 |
#define | CLASS_CONST 3 |
#define | CLASS_FIELD 4 |
#define | CLASS_TYPE 5 |
#define | CLASS_FUNC 6 |
#define | CLASS_SFUNC 7 |
#define | CLASS_FUNC_PR 8 |
#define | CLASS_IND 9 |
#define | CLASS_IND_DATA 10 |
#define | CLASS_STACK 11 |
#define | CLASS_COND 12 |
#define | CLASS_VOID 13 |
#define | CLASS_LINK 14 |
#define | type_t int |
#define | TYPE_UNKNOWN 0 |
#define | TYPE_INT 1 |
#define | TYPE_CHAR 2 |
#define | TYPE_VOID 3 |
#define | form_t int |
#define | FORM_UNKNOWN 0 |
#define | FORM_VOID 1 |
#define | FORM_BOOLEAN 2 |
#define | FORM_CHAR 3 |
#define | FORM_INTEGER 4 |
#define | FORM_ARRAY 5 |
#define | FORM_STRUCTURE 6 |
#define | FORM_POINTER 7 |
#define | reg_t int |
#define | REG_UNKNOWN 0 |
#define | REG_ABSOLUTE 1 |
#define | REG_FRAME 2 |
#define | REG_STACK 3 |
#define | STACK_NONE 0 |
#define | STACK_DUP 4 |
#define | STACK_ONLY 5 |
Functions |
char * | ClassToString (class_t cls) |
| convert class numbers to strings
|
char * | FormToString (form_t f) |
| convert form numbers to strings
|
char * | TypeToString (type_t t) |
| convert type numbers to strings
|
_object * | Object_Create (char *name, class_t cls, int lev, struct _type *type, int val, struct _object *next, struct _object *dsc) |
| create an Object description
|
void | Object_Destroy (struct _object *o) |
| destroy an Object description
|
void | Object_Dump (struct _object *o, int lev, int fd, struct _object *en) |
| dump an Object description
|
void | Type_Destroy (struct _type *t) |
| destroy a Type description
|
void | Type_Dump (struct _type *t, int lev, int fd, struct _object *en) |
| dump a Type description
|
_item * | Item_Create () |
| create an Item description
|
void | Item_Destroy (struct _item *i) |
| destroy an Item description
|
void | Item_Copy (struct _item *d, struct _item *s) |
| copy an Item description
|
void | Item_Dump (struct _item *i, int fd) |
| dump an Item description
|
_symtab * | SymTab_Create () |
| create a symbol table
|
void | SymTab_Destroy (struct _symtab *st) |
| destroy a symbol table
|
void | OpenScope (struct _symtab *st) |
| open a new scope
|
void | CloseScope (struct _symtab *st) |
| close a the topmost scope
|
void | SymTab_Dump (struct _symtab *st, int lev, int fd) |
| dump the content of a symbol table
|