run.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef VIRTUALMATH_RUN_H
  2. #define VIRTUALMATH_RUN_H
  3. #include "__macro.h"
  4. typedef struct Result Result;
  5. typedef enum ResultType ResultType;
  6. typedef struct LinkValue LinkValue;
  7. typedef struct Value Value;
  8. typedef struct Statement Statement;
  9. typedef struct Inter Inter;
  10. typedef struct VarList VarList;
  11. typedef struct Parameter Parameter;
  12. typedef ResultType (*VarInfo)(char **name, int *times, INTER_FUNCTIONSIG);
  13. ResultType globalIterStatement(Result *result, LinkValue *base_father, Inter *inter, Statement *st);
  14. bool operationSafeInterStatement(INTER_FUNCTIONSIG);
  15. bool ifBranchSafeInterStatement(INTER_FUNCTIONSIG);
  16. bool functionSafeInterStatement(INTER_FUNCTIONSIG);
  17. bool cycleBranchSafeInterStatement(INTER_FUNCTIONSIG);
  18. bool tryBranchSafeInterStatement(INTER_FUNCTIONSIG);
  19. ResultType operationStatement(INTER_FUNCTIONSIG);
  20. ResultType setClass(INTER_FUNCTIONSIG);
  21. ResultType setFunction(INTER_FUNCTIONSIG);
  22. ResultType setLambda(INTER_FUNCTIONSIG);
  23. ResultType callBack(INTER_FUNCTIONSIG);
  24. ResultType callClass(LinkValue *class_value, Parameter *parameter, INTER_FUNCTIONSIG_NOT_ST);
  25. ResultType callFunction(LinkValue *function_value, Parameter *parameter, INTER_FUNCTIONSIG_NOT_ST);
  26. ResultType getVar(INTER_FUNCTIONSIG, VarInfo var_info);
  27. ResultType getBaseValue(INTER_FUNCTIONSIG);
  28. ResultType getList(INTER_FUNCTIONSIG);
  29. ResultType getDict(INTER_FUNCTIONSIG);
  30. ResultType setDefault(INTER_FUNCTIONSIG);
  31. ResultType ifBranch(INTER_FUNCTIONSIG);
  32. ResultType whileBranch(INTER_FUNCTIONSIG);
  33. ResultType tryBranch(INTER_FUNCTIONSIG);
  34. ResultType breakCycle(INTER_FUNCTIONSIG);
  35. ResultType continueCycle(INTER_FUNCTIONSIG);
  36. ResultType regoIf(INTER_FUNCTIONSIG);
  37. ResultType restartCode(INTER_FUNCTIONSIG);
  38. ResultType returnCode(INTER_FUNCTIONSIG);
  39. ResultType raiseCode(INTER_FUNCTIONSIG);
  40. ResultType assertCode(INTER_FUNCTIONSIG);
  41. ResultType includeFile(INTER_FUNCTIONSIG);
  42. ResultType importFile(INTER_FUNCTIONSIG);
  43. ResultType fromImportFile(INTER_FUNCTIONSIG);
  44. ResultType pointAss(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  45. ResultType assCore(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  46. char *setStrVarName(char *old, bool free_old, INTER_FUNCTIONSIG_CORE);
  47. char *setNumVarName(NUMBER_TYPE num, INTER_FUNCTIONSIG_CORE);
  48. char *getNameFromValue(Value *value, INTER_FUNCTIONSIG_CORE);
  49. ResultType getBaseVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  50. ResultType getBaseSVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  51. ResultType getVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  52. #endif //VIRTUALMATH_RUN_H