diff --git a/include/groundvm.h b/include/groundvm.h index 3508008..222d867 100644 --- a/include/groundvm.h +++ b/include/groundvm.h @@ -131,6 +131,8 @@ GroundArg groundCreateReference(GroundArgType type, char* ref); GroundValue groundCreateValue(GroundValueType type, ...); +GroundProgram groundParseFile(const char* code); + #ifdef __cplusplus } #endif diff --git a/src/interface.c b/src/interface.c index 78788ba..ac1bdf8 100644 --- a/src/interface.c +++ b/src/interface.c @@ -86,3 +86,7 @@ void groundPrintProgram(GroundProgram* program) { printf("\n"); } } + +GroundProgram groundParseFile(const char* code) { + return parseFile(code); +}