Interpreter - Structs and Arrays

This commit is contained in:
Ginger Bill
2016-10-30 23:48:32 +00:00
parent 0ffe4b600d
commit 5271adb82f
7 changed files with 436 additions and 100 deletions
+22
View File
@@ -4,6 +4,28 @@
#import "fmt.odin"
#import "mem.odin"
Optimization_Level :: enum {
DEBUG,
RELEASE,
}
Bounds_Check_Mode :: enum {
ON,
OFF,
}
Build_Options :: struct {
optimization_level: Optimization_Level
bounds_check: Bounds_Check_Mode
output_name: string
output_path: string
}
build_options: Build_Options
// IMPORTANT NOTE(bill): Do not change the order of any of this data
// The compiler relies upon this _exact_ order
Type_Info :: union {