From 16ac802f5a8cfa961c92669f8e1fc66ff769fbdf Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Wed, 18 Sep 2019 21:09:23 -0400 Subject: idealistic float, double => f32, f64; literals were also being typed in parsing for some reason? trying to fix --- tokenizer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tokenizer.c') 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"}; -- cgit v1.2.3