aFunlang.h 630 B

123456789101112131415161718
  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 runCodeFromFile(FilePath file, FILE *error_file, af_Environment *env);
  12. AFUN_LANG_EXPORT int runCodeFromStdin(char *name, FILE *error_file, af_Environment *env);
  13. #endif //AFUN_AFUNLANG_H