Fixing bugs, constraining syntax
This commit is contained in:
@@ -237,17 +237,20 @@ int main(int argument_count, char **arguments){
|
||||
test_intern_table();
|
||||
|
||||
emit_line_directives = true;
|
||||
String program_name = "examples/types_as_first_class_values.kl"_s;
|
||||
if(argument_count > 1){
|
||||
program_name = string_from_cstring(arguments[1]);
|
||||
String program_name = string_from_cstring(arguments[1]);
|
||||
compile_file(program_name, COMPILE_AND_RUN);
|
||||
|
||||
}
|
||||
|
||||
Scratch scratch;
|
||||
Array<OS_File_Info> examples = os_list_dir(scratch, "examples"_s);
|
||||
// compile_file("examples/language_basics.kl"_s, COMPILE_AND_RUN);
|
||||
For(examples){
|
||||
if(it.is_directory) continue;
|
||||
compile_file(it.absolute_path, COMPILE_AND_RUN);
|
||||
else {
|
||||
Scratch scratch;
|
||||
Array<OS_File_Info> examples = os_list_dir(scratch, "examples"_s);
|
||||
// compile_file("examples/language_basics.kl"_s, COMPILE_AND_RUN);
|
||||
For(examples){
|
||||
if(it.is_directory) continue;
|
||||
compile_file(it.absolute_path, COMPILE_AND_RUN);
|
||||
}
|
||||
}
|
||||
|
||||
__debugbreak();
|
||||
|
||||
Reference in New Issue
Block a user