diff options
Diffstat (limited to 'src/as_analyzer.h')
| -rw-r--r-- | src/as_analyzer.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/as_analyzer.h b/src/as_analyzer.h deleted file mode 100644 index a1f781e..0000000 --- a/src/as_analyzer.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef FVM_AS_ANALYZER_H_ -#define FVM_AS_ANALYZER_H_ - -#include "as_parser.h" -#include "utils.h" - -struct sym_table_entry { - const char * name; - size_t offset; -}; -typedef struct sym_table_entry sym_table_entry; - -struct sym_table { - int size; - int cap; - struct sym_table_entry *buf; -}; -typedef struct sym_table sym_table; - -sym_table new_sym_table(allocator* alct); -void sym_table_add(allocator* alct, sym_table* tbl, const char* name, int pos); -int sym_table_lookup(sym_table* tbl, const char* name); - -sym_table analyze_prog(allocator* alct, prog* prog); - -#endif // FVM_AS_ANALYZER_H_ |
