summaryrefslogtreecommitdiff
path: root/tokenizer.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-09-19 13:50:15 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-09-19 13:50:15 -0400
commitfb3e9b6da2aaf0d6cf1f31ab26419c3d83ed61e8 (patch)
tree55a143d66b2abc082db5e13a919c0fed1e265e33 /tokenizer.c
parent46b5ce1b8f52329a18095da9ca4a5ee58345ff92 (diff)
parent16ac802f5a8cfa961c92669f8e1fc66ff769fbdf (diff)
added arg type checking
Diffstat (limited to 'tokenizer.c')
-rw-r--r--tokenizer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tokenizer.c b/tokenizer.c
index 032085a..b821820 100644
--- a/tokenizer.c
+++ b/tokenizer.c
@@ -41,14 +41,14 @@ typedef enum {
KW_U16,
KW_U32,
KW_U64,
- KW_FLOAT,
- KW_DOUBLE,
+ KW_F32,
+ KW_F64,
KW_COUNT
} Keyword;
static const char *keywords[KW_COUNT] =
{";", "=", ":", "@", ",", "(", ")", "{", "}", "[", "]", "==", "<", "<=", "-", "+", "fn",
- "int", "i8", "i16", "i32", "i64", "u8", "u16", "u32", "u64", "float", "double"};
+ "int", "i8", "i16", "i32", "i64", "u8", "u16", "u32", "u64", "f32", "f64"};
static const char *directives[DIRECT_COUNT] =
{"C"};