stage1 初步实现
This commit is contained in:
1 parent
a56b4cbb70
commit
314100afbc
35 files changed
+556
-2236
No files matched your search
+5
-4
@@ -1786,10 +1786,11 @@ static spl_ast_node_ref_t parse_type_atom(parser_t *p) {
|
||||
kind = SPL_AST_TYPE_USIZE;
|
||||
else if (IS_TY("ptr"))
|
||||
kind = SPL_AST_TYPE_PTR;
|
||||
else if (IS_TY("f32") || IS_TY("f64")) {
|
||||
parse_error(p, t, "not implemented: f32/f64 type");
|
||||
kind = SPL_AST_TYPE_IDENT;
|
||||
} else {
|
||||
else if (IS_TY("f32"))
|
||||
kind = SPL_AST_TYPE__F32;
|
||||
else if (IS_TY("f64"))
|
||||
kind = SPL_AST_TYPE__F64;
|
||||
else {
|
||||
kind = SPL_AST_TYPE_IDENT;
|
||||
}
|
||||
#undef IS_TY
|
||||
|
||||
Reference in new issue
Block a user