summaryrefslogtreecommitdiff
path: root/tokenizer.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-08-24 14:07:14 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-08-24 14:07:14 -0400
commit32ab8c03cc4382401f4b0a5948354c6d14d08650 (patch)
treefb067f6e1f3235cc18c3f61fa12ec1355fd79aff /tokenizer.c
parentde61270e8ed6c152be89c9b10f1354a82712f2df (diff)
improved functions; added header file
Diffstat (limited to 'tokenizer.c')
-rw-r--r--tokenizer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tokenizer.c b/tokenizer.c
index 7bede8c..7333db8 100644
--- a/tokenizer.c
+++ b/tokenizer.c
@@ -34,15 +34,13 @@ typedef enum {
KW_U32,
KW_U64,
KW_FLOAT,
- KW_F32,
- KW_F64,
+ KW_DOUBLE,
KW_COUNT
} Keyword;
static const char *keywords[KW_COUNT] =
{";", "=", ":", "@", ",", "(", ")", "{", "}", "==", "<", "<=", "-", "+", "fn",
- "int", "i8", "i16", "i32", "i64", "u8", "u16", "u32", "u64", "float", "f32",
- "f64"};
+ "int", "i8", "i16", "i32", "i64", "u8", "u16", "u32", "u64", "float", "double"};
/* Returns KW_COUNT if it's not a keyword */
/* OPTIM: don't use strncmp so much */