run.h 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 StatementList StatementList;
  10. typedef struct Inter Inter;
  11. typedef struct VarList VarList;
  12. typedef struct Parameter Parameter;
  13. typedef struct Argument Argument;
  14. typedef struct DecorationStatement DecorationStatement;
  15. typedef ResultType (*VarInfo)(wchar_t **name, int *times, INTER_FUNCTIONSIG);
  16. ResultType globalIterStatement(Result *result, Inter *inter, Statement *st);
  17. bool operationSafeInterStatement(INTER_FUNCTIONSIG);
  18. bool ifBranchSafeInterStatement(INTER_FUNCTIONSIG);
  19. bool functionSafeInterStatement(INTER_FUNCTIONSIG);
  20. bool blockSafeInterStatement(INTER_FUNCTIONSIG);
  21. bool cycleBranchSafeInterStatement(INTER_FUNCTIONSIG);
  22. bool withBranchSafeInterStatement(INTER_FUNCTIONSIG);
  23. bool tryBranchSafeInterStatement(INTER_FUNCTIONSIG);
  24. Statement *checkLabel(Statement *base, wchar_t *label);
  25. ResultType operationStatement(INTER_FUNCTIONSIG);
  26. ResultType setClass(INTER_FUNCTIONSIG);
  27. ResultType setFunction(INTER_FUNCTIONSIG);
  28. ResultType setLambda(INTER_FUNCTIONSIG);
  29. ResultType callBack(INTER_FUNCTIONSIG);
  30. ResultType elementSlice(INTER_FUNCTIONSIG);
  31. ResultType callBackCore(LinkValue *function_value, Argument *arg, fline line, char *file, int pt_sep, INTER_FUNCTIONSIG_NOT_ST);
  32. ResultType callBackCorePt(LinkValue *function_value, Parameter *pt, long line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  33. ResultType setDecoration(DecorationStatement *ds, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  34. ResultType getVar(INTER_FUNCTIONSIG, VarInfo var_info);
  35. ResultType getBaseValue(INTER_FUNCTIONSIG);
  36. ResultType getList(INTER_FUNCTIONSIG);
  37. ResultType getDict(INTER_FUNCTIONSIG);
  38. ResultType setDefault(INTER_FUNCTIONSIG);
  39. ResultType ifBranch(INTER_FUNCTIONSIG);
  40. ResultType whileBranch(INTER_FUNCTIONSIG);
  41. ResultType forBranch(INTER_FUNCTIONSIG);
  42. ResultType withBranch(INTER_FUNCTIONSIG);
  43. ResultType tryBranch(INTER_FUNCTIONSIG);
  44. ResultType breakCycle(INTER_FUNCTIONSIG);
  45. ResultType continueCycle(INTER_FUNCTIONSIG);
  46. ResultType regoIf(INTER_FUNCTIONSIG);
  47. ResultType restartCode(INTER_FUNCTIONSIG);
  48. ResultType returnCode(INTER_FUNCTIONSIG);
  49. ResultType yieldCode(INTER_FUNCTIONSIG);
  50. ResultType raiseCode(INTER_FUNCTIONSIG);
  51. ResultType assertCode(INTER_FUNCTIONSIG);
  52. ResultType gotoLabel(INTER_FUNCTIONSIG);
  53. ResultType runLabel(INTER_FUNCTIONSIG);
  54. ResultType includeFile(INTER_FUNCTIONSIG);
  55. ResultType importFile(INTER_FUNCTIONSIG);
  56. ResultType fromImportFile(INTER_FUNCTIONSIG);
  57. ResultType pointAss(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  58. ResultType listAss(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  59. ResultType assCore(Statement *name, LinkValue *value, bool check_aut, bool setting, INTER_FUNCTIONSIG_NOT_ST);
  60. ResultType downAss(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  61. ResultType varAss(Statement *name, LinkValue *value, bool check_aut, bool setting, INTER_FUNCTIONSIG_NOT_ST);
  62. ResultType delOperation(INTER_FUNCTIONSIG);
  63. ResultType delCore(Statement *name, bool check_aut, INTER_FUNCTIONSIG_NOT_ST);
  64. ResultType listDel(Statement *name, INTER_FUNCTIONSIG_NOT_ST);
  65. ResultType varDel(Statement *name, bool check_aut, INTER_FUNCTIONSIG_NOT_ST);
  66. ResultType pointDel(Statement *name, INTER_FUNCTIONSIG_NOT_ST);
  67. ResultType downDel(Statement *name, INTER_FUNCTIONSIG_NOT_ST);
  68. bool is_quitExc(LinkValue *value, Inter *inter);
  69. #endif //VIRTUALMATH_RUN_H