stage1 初步实现
This commit is contained in:
@@ -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