run.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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(Inter *inter, Result *result, LinkValue *base_father);
  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 callBack(INTER_FUNCTIONSIG);
  23. ResultType callClass(LinkValue *class_value, Parameter *parameter, INTER_FUNCTIONSIG_NOT_ST);
  24. ResultType callFunction(LinkValue *function_value, Parameter *parameter, INTER_FUNCTIONSIG_NOT_ST);
  25. ResultType getVar(INTER_FUNCTIONSIG, VarInfo var_info);
  26. ResultType getBaseValue(INTER_FUNCTIONSIG);
  27. ResultType getList(INTER_FUNCTIONSIG);
  28. ResultType getDict(INTER_FUNCTIONSIG);
  29. ResultType ifBranch(INTER_FUNCTIONSIG);
  30. ResultType whileBranch(INTER_FUNCTIONSIG);
  31. ResultType tryBranch(INTER_FUNCTIONSIG);
  32. ResultType breakCycle(INTER_FUNCTIONSIG);
  33. ResultType continueCycle(INTER_FUNCTIONSIG);
  34. ResultType regoIf(INTER_FUNCTIONSIG);
  35. ResultType restartCode(INTER_FUNCTIONSIG);
  36. ResultType returnCode(INTER_FUNCTIONSIG);
  37. ResultType raiseCode(INTER_FUNCTIONSIG);
  38. ResultType includeFile(INTER_FUNCTIONSIG);
  39. ResultType importFile(INTER_FUNCTIONSIG);
  40. ResultType fromImportFile(INTER_FUNCTIONSIG);
  41. ResultType pointAss(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  42. ResultType assCore(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  43. char *setStrVarName(char *old, bool free_old, INTER_FUNCTIONSIG_CORE);
  44. char *setNumVarName(NUMBER_TYPE num, INTER_FUNCTIONSIG_CORE);
  45. char *getNameFromValue(Value *value, INTER_FUNCTIONSIG_CORE);
  46. ResultType getBaseVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  47. ResultType getBaseSVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  48. ResultType getVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  49. #endif //VIRTUALMATH_RUN_H