symboldef.c File Reference

#include <stdlib.h>
#include <string.h>
#include "ptree.h"
#include "symboldef.h"
#include "util.h"

Include dependency graph for symboldef.c:


Functions

void initmodule (void)
void init_moduletable (void)
void addsubtype (symboltable *t, char *name)
void addtype (symboltable *t, char *name, int type, char *basetype, symboltable *fields, int scope, linex *lf)
void addvariable (symboltable *t, char *name, char *type, int scope, parsex *init, linex *lf)
void addfunction (symboltable *t, char *name, char *rettype, char *reptype, symboltable *params, symboltable *locals, parsex *code, bool ismethod, int scope, linex *lf)
void addclass (symboltable *t, char *name, parsex *code, symboltable *types, symboltable *variables, symboltable *func_meths, symboltable *subtypeof, int scope, linex *lf, symboltable *localvars)
void addmodule (symboltable *t, char *name, specx *specs, symboltable *types, symboltable *variables, symboltable *functions, symboltable *classes)

Variables

symboltablemodules
specxspecs
specxtotals
symboltablebasic_types
symboltabletypes
symboltablevariables
symboltablefunctions
symboltableclasses

Function Documentation

void initmodule void   ) 
 

void init_moduletable void   ) 
 

void addsubtype symboltable t,
char *  name
 

void addtype symboltable t,
char *  name,
int  type,
char *  basetype,
symboltable fields,
int  scope,
linex lf
 

void addvariable symboltable t,
char *  name,
char *  type,
int  scope,
parsex init,
linex lf
 

void addfunction symboltable t,
char *  name,
char *  rettype,
char *  reptype,
symboltable params,
symboltable locals,
parsex code,
bool  ismethod,
int  scope,
linex lf
 

void addclass symboltable t,
char *  name,
parsex code,
symboltable types,
symboltable variables,
symboltable func_meths,
symboltable subtypeof,
int  scope,
linex lf,
symboltable localvars
 

void addmodule symboltable t,
char *  name,
specx specs,
symboltable types,
symboltable variables,
symboltable functions,
symboltable classes
 


Variable Documentation

symboltable* modules
 

specx* specs
 

specx* totals
 

symboltable* basic_types
 

symboltable* types
 

symboltable* variables
 

symboltable* functions
 

symboltable* classes
 


Generated on Wed Apr 5 21:02:40 2006 for Sesame by  doxygen 1.4.6