diff --git a/src/interface.c b/src/interface.c index a60c0ca..460576e 100644 --- a/src/interface.c +++ b/src/interface.c @@ -106,7 +106,14 @@ GroundValue groundCreateValue(GroundValueType type, ...) { } GroundValue groundRunProgram(GroundProgram* program) { - return interpretGroundProgram(program, NULL); + GroundVariable* variables = NULL; + GroundLabel* labels = NULL; + GroundScope scope = { + .variables = &variables, + .labels = &labels, + .isMainScope = true + }; + return interpretGroundProgram(program, &scope); } void groundPrintProgram(GroundProgram* program) {