run.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 struct DecorationStatement DecorationStatement;
  13. typedef ResultType (*VarInfo)(char **name, int *times, INTER_FUNCTIONSIG);
  14. ResultType globalIterStatement(Result *result, LinkValue *base_father, Inter *inter, Statement *st);
  15. bool operationSafeInterStatement(INTER_FUNCTIONSIG);
  16. bool ifBranchSafeInterStatement(INTER_FUNCTIONSIG);
  17. bool functionSafeInterStatement(INTER_FUNCTIONSIG);
  18. bool cycleBranchSafeInterStatement(INTER_FUNCTIONSIG);
  19. bool tryBranchSafeInterStatement(INTER_FUNCTIONSIG);
  20. Statement *checkLabel(Statement *base, char *label);
  21. ResultType operationStatement(INTER_FUNCTIONSIG);
  22. ResultType setClass(INTER_FUNCTIONSIG);
  23. ResultType setFunction(INTER_FUNCTIONSIG);
  24. ResultType setLambda(INTER_FUNCTIONSIG);
  25. ResultType callBack(INTER_FUNCTIONSIG);
  26. ResultType callBackCore(LinkValue *function_value, Parameter *parameter, long line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  27. ResultType callClass(LinkValue *class_value, Parameter *parameter, long int line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  28. ResultType callFunction(LinkValue *function_value, Parameter *parameter, long int line, char *file, INTER_FUNCTIONSIG_NOT_ST);
  29. ResultType setDecoration(DecorationStatement *ds, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  30. ResultType getVar(INTER_FUNCTIONSIG, VarInfo var_info);
  31. ResultType getBaseValue(INTER_FUNCTIONSIG);
  32. ResultType getList(INTER_FUNCTIONSIG);
  33. ResultType getDict(INTER_FUNCTIONSIG);
  34. ResultType setDefault(INTER_FUNCTIONSIG);
  35. ResultType ifBranch(INTER_FUNCTIONSIG);
  36. ResultType whileBranch(INTER_FUNCTIONSIG);
  37. ResultType withBranch(INTER_FUNCTIONSIG);
  38. ResultType tryBranch(INTER_FUNCTIONSIG);
  39. ResultType breakCycle(INTER_FUNCTIONSIG);
  40. ResultType continueCycle(INTER_FUNCTIONSIG);
  41. ResultType regoIf(INTER_FUNCTIONSIG);
  42. ResultType restartCode(INTER_FUNCTIONSIG);
  43. ResultType returnCode(INTER_FUNCTIONSIG);
  44. ResultType raiseCode(INTER_FUNCTIONSIG);
  45. ResultType assertCode(INTER_FUNCTIONSIG);
  46. ResultType gotoLabel(INTER_FUNCTIONSIG);
  47. ResultType runLabel(INTER_FUNCTIONSIG);
  48. ResultType includeFile(INTER_FUNCTIONSIG);
  49. ResultType importFile(INTER_FUNCTIONSIG);
  50. ResultType fromImportFile(INTER_FUNCTIONSIG);
  51. ResultType pointAss(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  52. ResultType assCore(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_NOT_ST);
  53. char *setStrVarName(char *old, bool free_old, INTER_FUNCTIONSIG_CORE);
  54. char *setNumVarName(NUMBER_TYPE num, INTER_FUNCTIONSIG_CORE);
  55. char *getNameFromValue(Value *value, INTER_FUNCTIONSIG_CORE);
  56. ResultType getBaseVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  57. ResultType getBaseSVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  58. ResultType getVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  59. #endif //VIRTUALMATH_RUN_H