(readd) support negative numbers

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14305 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-10-13 17:41:48 +00:00
parent 54bf17b263
commit 111de1cb5e

View File

@@ -250,6 +250,7 @@ bitdecl : IDENT '(' constant ')'
;
constant : CONSTANT { $$ = $1; }
| '-' CONSTANT { $$ = -$2; }
| IDENT {
Symbol *s = addsym($1);
if(s->stype != SConstant)