diff options
Diffstat (limited to 'include/compiler.h')
-rw-r--r-- | include/compiler.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h index a7fbb34..b80d7c1 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -13,7 +13,24 @@ /* General error */ #define AMAL_COMPILER_ERR -1 +typedef struct { + LhsExpr *i8; + LhsExpr *i16; + LhsExpr *i32; + LhsExpr *i64; + LhsExpr *u8; + LhsExpr *u16; + LhsExpr *u32; + LhsExpr *u64; + LhsExpr *isize; + LhsExpr *usize; + LhsExpr *f32; + LhsExpr *f64; + LhsExpr *str; +} amal_default_types; + struct amal_compiler { + amal_default_types default_types; ScopedAllocator allocator; Scope root_scope; Buffer/*<Parser*>*/ parsers; |