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