run.h 2.8 KB

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