[web] Added REPL support to the library

This commit is contained in:
Sidi Liang
2024-11-04 12:04:31 +08:00
parent c5d12eb4e9
commit e1d3da7c41
+7
View File
@@ -19,6 +19,13 @@ NASAL_EXPORT void nasal_cleanup(void* context);
NASAL_EXPORT const char* nasal_eval(void* context, const char* code, int show_time);
NASAL_EXPORT const char* nasal_get_error(void* context);
// REPL
NASAL_EXPORT void* nasal_repl_init();
NASAL_EXPORT void nasal_repl_cleanup(void* repl_context);
NASAL_EXPORT const char* nasal_repl_eval(void* repl_context, const char* line);
NASAL_EXPORT int nasal_repl_is_complete(void* repl_context, const char* line);
NASAL_EXPORT const char* nasal_repl_get_version();
#ifdef __cplusplus
}
#endif