initial draft

This commit is contained in:
2026-06-09 17:28:28 +02:00
commit 087fdb45d5
40 changed files with 4371 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package main
import "./compiler"
import "core:fmt"
import "core:os/os2"
main :: proc() {
if len(os2.args) != 4 || os2.args[2] != "-o" {
fmt.eprintln("usage: brolang <input.bro> -o <executable>")
os2.exit(2)
}
status := compiler.compile_file(os2.args[1], os2.args[3])
if status != 0 {
os2.exit(status)
}
}