Expose parser for external api

This commit is contained in:
2025-12-29 19:13:36 +11:00
parent 60c52f7494
commit e7d735785c
2 changed files with 6 additions and 0 deletions

View File

@@ -131,6 +131,8 @@ GroundArg groundCreateReference(GroundArgType type, char* ref);
GroundValue groundCreateValue(GroundValueType type, ...); GroundValue groundCreateValue(GroundValueType type, ...);
GroundProgram groundParseFile(const char* code);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@@ -86,3 +86,7 @@ void groundPrintProgram(GroundProgram* program) {
printf("\n"); printf("\n");
} }
} }
GroundProgram groundParseFile(const char* code) {
return parseFile(code);
}