X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=token_t.h;h=762f143a47885a94ff061eeb165cfb1df976b66d;hb=46d10fc1f296c54c684ed698b1e26a290046d7b2;hp=60a748fc0b8fc31571a94da3a0729c46db8e108e;hpb=eb596cbe81cdddc1b68ed70ee927dc6037d2ef3c;p=cparser diff --git a/token_t.h b/token_t.h index 60a748f..762f143 100644 --- a/token_t.h +++ b/token_t.h @@ -4,6 +4,7 @@ #include #include "symbol.h" #include "symbol_table.h" +#include "type.h" typedef enum { #define T(x,str,val) T_##x val, @@ -34,9 +35,11 @@ typedef struct { int type; union { symbol_t *symbol; - int intvalue; + long long intvalue; + long double floatvalue; const char *string; } v; + type_t *datatype; source_position_t source_position; } token_t;