12345678910111213141516171819202122 |
- #ifndef AFUN_AFUNLANG_H
- #define AFUN_AFUNLANG_H
- #include "aFunlangExport.h"
- #include "aFunCore.h"
- #include "runtime.h"
- AFUN_LANG_EXPORT bool aFunInit(char *log_dir, LogFactoryPrintConsole print_console, jmp_buf *buf, LogLevel level);
- AFUN_LANG_EXPORT af_Environment *creatAFunEnviroment(int argc, char **argv);
- AFUN_LANG_EXPORT void destructAFunEnvironment(af_Environment *env);
- /* 源文件运行 */
- AFUN_LANG_EXPORT int runCodeFromString(char *code, char *string_name, FILE *error_file, int mode, af_Environment *env);
- AFUN_LANG_EXPORT int runCodeFromFileSource(FilePath file, FILE *error_file, bool save_afb, FilePath save_path, int mode,
- af_Environment *env);
- AFUN_LANG_EXPORT int runCodeFromStdin(char *name, FILE *error_file, af_Environment *env);
- AFUN_LANG_EXPORT int runCodeFromMemory(af_Code *code, int mode, af_Environment *env);
- AFUN_LANG_EXPORT int runCodeFromFileByte(FilePath file, FILE *error_file, int mode, af_Environment *env);
- AFUN_LANG_EXPORT int runCodeFromFile(FilePath file, FILE *error_file, bool save_afb, int mode, af_Environment *env);
- AFUN_LANG_EXPORT int buildFile(FilePath out, FilePath in, FILE *error_file);
- #endif //AFUN_AFUNLANG_H
|