aFunlang.h 1.0 KB

123456789101112131415161718192021
  1. #ifndef AFUN_AFUNLANG_H
  2. #define AFUN_AFUNLANG_H
  3. #include "aFunlangExport.h"
  4. #include "aFunCore.h"
  5. #include "aFun_tool.h"
  6. AFUN_LANG_EXPORT void aFunInit();
  7. AFUN_LANG_EXPORT af_Environment *creatAFunEnviroment(void);
  8. AFUN_LANG_EXPORT void destructAFunEnvironment(af_Environment *env);
  9. /* 源文件运行 */
  10. AFUN_LANG_EXPORT int runCodeFromString(char *code, char *string_name, FILE *error_file, af_Environment *env);
  11. AFUN_LANG_EXPORT int runCodeFromFileSource(FilePath file, FILE *error_file, bool save_afb, FilePath save_path, af_Environment *env);
  12. AFUN_LANG_EXPORT int runCodeFromStdin(char *name, FILE *error_file, af_Environment *env);
  13. AFUN_LANG_EXPORT int runCodeFromMemory(af_Code *code, af_Environment *env);
  14. AFUN_LANG_EXPORT int runCodeFromMemoryAsImport(af_Code *code, af_Environment *env);
  15. AFUN_LANG_EXPORT int runCodeFromFileByte(FilePath file, FILE *error_file, af_Environment *env);
  16. AFUN_LANG_EXPORT int runCodeFromFile(FilePath file, FILE *error_file, bool save_afb, af_Environment *env);
  17. #endif //AFUN_AFUNLANG_H