This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wasm_assembler | |
import "core:fmt" | |
PAGE_SIZE :: 1<<16; | |
Val_Type :: enum u8 { | |
void = 0x00, | |
i32 = 0x7f, | |
i64 = 0x7e, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "core:fmt.odin"; | |
// Define event types, based on GLFW's events | |
Window_Iconify_Event :: struct { iconified: i32}; | |
Window_Refresh_Event :: struct { }; | |
Window_Focus_Event :: struct { focused: i32 }; | |
Window_Close_Event :: struct { }; | |
Window_Size_Event :: struct { width, height: i32 }; | |
Window_Pos_Event :: struct { xpos, ypos: i32 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "fmt.odin"; | |
#import "os.odin"; | |
#import "utf8.odin"; | |
#import "strconv.odin"; | |
Lexer :: struct { | |
file: []byte, | |
offset: int, | |
last_rune_size: int, |