run.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 ResultType (*VarInfo)(char **name, int *times, INTER_FUNCTIONSIG);
  12. ResultType globalIterStatement(Inter *inter, Result *result);
  13. bool operationSafeInterStatement(INTER_FUNCTIONSIG);
  14. bool ifBranchSafeInterStatement(INTER_FUNCTIONSIG);
  15. bool functionSafeInterStatement(INTER_FUNCTIONSIG);
  16. bool cycleBranchSafeInterStatement(INTER_FUNCTIONSIG);
  17. bool tryBranchSafeInterStatement(INTER_FUNCTIONSIG);
  18. ResultType operationStatement(INTER_FUNCTIONSIG);
  19. ResultType setClass(INTER_FUNCTIONSIG);
  20. ResultType setFunction(INTER_FUNCTIONSIG);
  21. ResultType callFunction(INTER_FUNCTIONSIG);
  22. ResultType getVar(INTER_FUNCTIONSIG, VarInfo var_info);
  23. ResultType getBaseValue(INTER_FUNCTIONSIG);
  24. ResultType getList(INTER_FUNCTIONSIG);
  25. ResultType getDict(INTER_FUNCTIONSIG);
  26. ResultType ifBranch(INTER_FUNCTIONSIG);
  27. ResultType whileBranch(INTER_FUNCTIONSIG);
  28. ResultType tryBranch(INTER_FUNCTIONSIG);
  29. ResultType breakCycle(INTER_FUNCTIONSIG);
  30. ResultType continueCycle(INTER_FUNCTIONSIG);
  31. ResultType regoIf(INTER_FUNCTIONSIG);
  32. ResultType restartCode(INTER_FUNCTIONSIG);
  33. ResultType returnCode(INTER_FUNCTIONSIG);
  34. ResultType raiseCode(INTER_FUNCTIONSIG);
  35. ResultType includeFile(INTER_FUNCTIONSIG);
  36. ResultType pointAss(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  37. ResultType assCore(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  38. char *setStrVarName(char *old, bool free_old, INTER_FUNCTIONSIG_CORE);
  39. char *setNumVarName(NUMBER_TYPE num, INTER_FUNCTIONSIG_CORE);
  40. char *getNameFromValue(Value *value, INTER_FUNCTIONSIG_CORE);
  41. ResultType getBaseVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  42. ResultType getBaseSVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  43. ResultType getVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  44. #endif //VIRTUALMATH_RUN_H