Add catch support

This commit is contained in:
2026-04-15 10:37:14 +10:00
parent ca85550c92
commit e4b5aafe35
4 changed files with 36 additions and 13 deletions

View File

@@ -121,10 +121,12 @@ int main(int argc, char** argv) {
} else {
GroundVariable* variables = NULL;
GroundLabel* labels = NULL;
GroundCatch* catches = NULL;
GroundScope scope;
scope.variables = &variables;
scope.labels = &labels;
scope.catches = &catches;
scope.isMainScope = true;
addVariable(scope.variables, "CMDLINE_ARGS", createListGroundValue(groundArgs));
interpretGroundProgram(&program, &scope);