Add c types, int is default type
This commit is contained in:
@@ -154,40 +154,57 @@ print(f"Ast_Operator_Info op_info_table[{size}];")
|
||||
Ast_Type type__untyped_float;
|
||||
|
||||
Ast_Type type__char;
|
||||
Ast_Type type__uchar;
|
||||
Ast_Type type__int;
|
||||
Ast_Type type__uint;
|
||||
Ast_Type type__long;
|
||||
Ast_Type type__ulong;
|
||||
Ast_Type type__llong;
|
||||
Ast_Type type__ullong;
|
||||
Ast_Type type__short;
|
||||
Ast_Type type__ushort;
|
||||
|
||||
Ast_Type *type_char = &type__char;
|
||||
Ast_Type *type_int = &type__int;
|
||||
Ast_Type *type_void = &type__void;
|
||||
Ast_Type *type_char;
|
||||
Ast_Type *type_uchar;
|
||||
Ast_Type *type_int;
|
||||
Ast_Type *type_uint;
|
||||
Ast_Type *type_long;
|
||||
Ast_Type *type_ulong;
|
||||
Ast_Type *type_llong;
|
||||
Ast_Type *type_ullong;
|
||||
Ast_Type *type_short;
|
||||
Ast_Type *type_ushort;
|
||||
|
||||
Ast_Type *type_void;
|
||||
|
||||
Ast_Type *type_pointer_to_char;
|
||||
Ast_Type *type_pointer_to_void;
|
||||
Ast_Type *type_any; // Needs to be inited at runtime
|
||||
|
||||
Ast_Type *type_type = &type__type;
|
||||
Ast_Type *type_string = &type__string;
|
||||
Ast_Type *type_bool = &type__bool;
|
||||
Ast_Type *type_type;
|
||||
Ast_Type *type_string;
|
||||
Ast_Type *type_bool;
|
||||
|
||||
Ast_Type *type_f32 = &type__f32;
|
||||
Ast_Type *type_f64 = &type__f64;
|
||||
Ast_Type *type_f32;
|
||||
Ast_Type *type_f64;
|
||||
|
||||
Ast_Type *type_s8 = &type__s8;
|
||||
Ast_Type *type_s16 = &type__s16;
|
||||
Ast_Type *type_s32 = &type__s32;
|
||||
Ast_Type *type_s64 = &type__s64;
|
||||
Ast_Type *type_s8;
|
||||
Ast_Type *type_s16;
|
||||
Ast_Type *type_s32;
|
||||
Ast_Type *type_s64;
|
||||
|
||||
Ast_Type *type_u8 = &type__u8;
|
||||
Ast_Type *type_u16 = &type__u16;
|
||||
Ast_Type *type_u32 = &type__u32;
|
||||
Ast_Type *type_u64 = &type__u64;
|
||||
Ast_Type *type_u8;
|
||||
Ast_Type *type_u16;
|
||||
Ast_Type *type_u32;
|
||||
Ast_Type *type_u64;
|
||||
|
||||
Ast_Type *untyped_string = &type__untyped_string;
|
||||
Ast_Type *untyped_bool = &type__untyped_bool;
|
||||
Ast_Type *untyped_int = &type__untyped_int;
|
||||
Ast_Type *untyped_float = &type__untyped_float;
|
||||
Ast_Type *untyped_string;
|
||||
Ast_Type *untyped_bool;
|
||||
Ast_Type *untyped_int;
|
||||
Ast_Type *untyped_float;
|
||||
|
||||
Ast_Type type__vargs;
|
||||
Ast_Type *type_vargs = &type__vargs;
|
||||
Ast_Type *type_vargs;
|
||||
|
||||
Intern_String intern(String string) {
|
||||
assert(string.len > 0);
|
||||
|
||||
Reference in New Issue
Block a user