refactor to have state and add test

This commit is contained in:
2026-04-26 21:29:38 -04:00
parent 0dc25adb8b
commit 8eaed029ea
4 changed files with 86 additions and 50 deletions

10
main.jai Normal file
View File

@@ -0,0 +1,10 @@
main :: () {
args := get_command_line_arguments();
assert(args.count == 2, "The file name must be passed as a CLI argument");
file_name := args[1];
run_editor(file_name);
}
#load "edit.jai";
#import "Basic";