comparison lwasm/symbol.c @ 346:a82c55070624

Added expression parsing infrastructure and misc fixes
author lost@starbug
date Sat, 27 Mar 2010 19:04:03 -0600
parents 0215a0fbf61b
children 7d91ab7ac7d6
comparison
equal deleted inserted replaced
345:7416c3f9c321 346:a82c55070624
26 26
27 #include <lw_alloc.h> 27 #include <lw_alloc.h>
28 #include <lw_expr.h> 28 #include <lw_expr.h>
29 29
30 #include "lwasm.h" 30 #include "lwasm.h"
31
32 // these are allowed chars BELOW 0x80
33 #define SSYMCHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@$"
34 #define SYMCHARS SSYMCHARS ".?0123456789"
35 31
36 struct symtabe *register_symbol(asmstate_t *as, line_t *cl, char *sym, lw_expr_t val, int flags) 32 struct symtabe *register_symbol(asmstate_t *as, line_t *cl, char *sym, lw_expr_t val, int flags)
37 { 33 {
38 struct symtabe *se; 34 struct symtabe *se;
39 int islocal = 0; 35 int islocal = 0;