diff options
Diffstat (limited to 'include/lex.h')
-rw-r--r-- | include/lex.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/lex.h b/include/lex.h index 8050c4e..8b1fdf2 100644 --- a/include/lex.h +++ b/include/lex.h @@ -95,16 +95,18 @@ enum lexical_token { extern const char *tokens[]; +struct number { + bool isfloat; + union { + uint64_t integer; + double floatingpt; + } value; +}; + struct token { enum lexical_token token; union { - struct { - bool isfloat; - union { - uint64_t integer; - double floatingpt; - } value; - } num; + struct number num; const char *str; } info; }; |