__base.h 621 B

12345678910111213141516171819202122
  1. #ifndef AFUN___BASE_H
  2. #define AFUN___BASE_H
  3. #include "__runtime.h"
  4. #include "__env.h"
  5. #include "__var.h"
  6. static const LiteralFuncList literal[] = {
  7. /* 字符串匹配:\"[\s\S]*\" */
  8. {.pattern="\\\"[\\s\\S]*\\\"", .func="str", .in_protect=true},
  9. {.pattern=NULL}
  10. };
  11. #define string_id "string"
  12. typedef struct ObjectString ObjectString;
  13. struct ObjectString{
  14. char *str;
  15. };
  16. AFUN_LANG_NO_EXPORT void makeStrFunc(af_Object *visitor, af_VarSpace *vs, af_Environment *env);
  17. AFUN_LANG_NO_EXPORT void makeQuitFunc(af_Object *visitor, af_VarSpace *vs, af_Environment *env);
  18. #endif //AFUN___BASE_H