Implement f16 functionality

This commit is contained in:
gingerBill committed 2021-04-01 10:06:00 +01:00
1 parent a00d7cc705
commit 54e6c50769
16 files changed
+499 -76

No files matched your search

+2 -2
View File
@@ -431,9 +431,9 @@ scan_number :: proc(t: ^Tokenizer, seen_decimal_point: bool) -> (Token_Kind, str
}
switch digit_count {
case 8, 16: break;
case 4, 8, 16: break;
case:
error(t, t.offset, "invalid hexadecimal floating-point number, expected 8 or 16 digits, got %d", digit_count);
error(t, t.offset, "invalid hexadecimal floating-point number, expected 4, 8, or 16 digits, got %d", digit_count);
}
}