aFunlang.h 606 B

12345678910111213141516
  1. #ifndef AFUN_AFUNLANG_H
  2. #define AFUN_AFUNLANG_H
  3. #include "aFunlangExport.h"
  4. #include "aFunCore.h"
  5. AFUN_LANG_EXPORT void aFunInit();
  6. AFUN_LANG_EXPORT af_Environment *creatAFunEnviroment(void);
  7. AFUN_LANG_EXPORT void destructAFunEnvironment(af_Environment *env);
  8. /* 源文件运行 */
  9. AFUN_LANG_EXPORT int runCodeFromString(char *code, char *string_name, FILE *error_file, af_Environment *env);
  10. AFUN_LANG_EXPORT int runCodeFromFile(FilePath file, FILE *error_file, af_Environment *env);
  11. AFUN_LANG_EXPORT int runCodeFromStdin(char *name, FILE *error_file, af_Environment *env);
  12. #endif //AFUN_AFUNLANG_H