OpenCores
URL https://opencores.org/ocsvn/tms1000/tms1000/trunk

Subversion Repositories tms1000

[/] [tms1000/] [trunk/] [assembler/] [symtab.h] - Rev 2

Compare with Previous | Blame | View Log

/*
symtab.h: a simple binary tree symbol table
 
CASM is an assembler for the TMS1000 processor.
*/
 
typedef void * t_symtab;
 
/* create a symbol table, returns handle to be passed in to all other calls */
t_symtab alloc_symbol_table (void);
 
/* free a symbol table */
void free_symbol_table (t_symtab t);
 
/* returns 1 for success, 0 if duplicate name */
int create_symbol (t_symtab t, char *name, int value, int lineno);
 
/* returns 1 for success, 0 if not found */
int lookup_symbol (t_symtab t, char *name, int *value);
 
void print_symbol_table (t_symtab t, FILE *f);
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.