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

Subversion Repositories tms1000

[/] [tms1000/] [trunk/] [assembler/] [symtab.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 nand_gates
/*
2
symtab.h: a simple binary tree symbol table
3
 
4
CASM is an assembler for the TMS1000 processor.
5
*/
6
 
7
typedef void * t_symtab;
8
 
9
/* create a symbol table, returns handle to be passed in to all other calls */
10
t_symtab alloc_symbol_table (void);
11
 
12
/* free a symbol table */
13
void free_symbol_table (t_symtab t);
14
 
15
/* returns 1 for success, 0 if duplicate name */
16
int create_symbol (t_symtab t, char *name, int value, int lineno);
17
 
18
/* returns 1 for success, 0 if not found */
19
int lookup_symbol (t_symtab t, char *name, int *value);
20
 
21
void print_symbol_table (t_symtab t, FILE *f);

powered by: WebSVN 2.1.0

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