Mercurial > repos > blastem
comparison debug.h @ 2363:b865f33fd47e
Basic float support in debug language
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 07 Nov 2023 22:19:21 -0800 |
parents | b6c5a0fa3dfc |
children | c822bb628fc3 |
comparison
equal
deleted
inserted
replaced
2362:b6c5a0fa3dfc | 2363:b865f33fd47e |
---|---|
11 #endif | 11 #endif |
12 #include "disasm.h" | 12 #include "disasm.h" |
13 | 13 |
14 typedef enum { | 14 typedef enum { |
15 TOKEN_NONE, | 15 TOKEN_NONE, |
16 TOKEN_NUM, | 16 TOKEN_INT, |
17 TOKEN_DECIMAL, | |
17 TOKEN_NAME, | 18 TOKEN_NAME, |
18 TOKEN_ARRAY, | 19 TOKEN_ARRAY, |
19 TOKEN_OPER, | 20 TOKEN_OPER, |
20 TOKEN_SIZE, | 21 TOKEN_SIZE, |
21 TOKEN_LBRACKET, | 22 TOKEN_LBRACKET, |
28 token_type type; | 29 token_type type; |
29 union { | 30 union { |
30 char *str; | 31 char *str; |
31 char op[3]; | 32 char op[3]; |
32 uint32_t num; | 33 uint32_t num; |
34 float f; | |
33 } v; | 35 } v; |
34 } token; | 36 } token; |
35 | 37 |
36 typedef enum { | 38 typedef enum { |
37 EXPR_NONE, | 39 EXPR_NONE, |