#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "cpp_io.h"
#include "cpp_conv.h"
#include "cc_symtab.h"
Functions | |
void | Indend (int fd, int lev) |
write a string of blanks according to the indentation level | |
_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 | |
void | SymTab_Enter (struct _symtab *st, class_t cls, int n, char *name, struct _type *type, struct _object *dsc) |
enter an entry to the symbol table | |
_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 | |
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 |
|
convert class numbers to strings
|
|
close a the topmost scope
|
|
convert form numbers to strings
|
|
write a string of blanks according to the indentation level
|
|
copy an Item description
|
|
create an Item description
|
|
destroy an Item description
|
|
dump an Item description
|
|
create an Object description
|
|
destroy an Object description
|
|
dump an Object description
|
|
open a new scope
|
|
create a symbol table
|
|
destroy a symbol table
|
|
dump the content of a symbol table
|
|
enter an entry to the symbol table
|
|
destroy a Type description
|
|
dump a Type description
|
|
convert type numbers to strings
|