run.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef VIRTUALMATH_RUN_H
  2. #define VIRTUALMATH_RUN_H
  3. #include "__macro.h"
  4. typedef Result (*VarInfo)(char **name, int *times, INTER_FUNCTIONSIG);
  5. Result globalIterStatement(Inter *inter);
  6. bool operationSafeInterStatement(Result *result, INTER_FUNCTIONSIG);
  7. bool ifBranchSafeInterStatement(Result *result, INTER_FUNCTIONSIG);
  8. bool functionSafeInterStatement(Result *result, INTER_FUNCTIONSIG);
  9. bool cycleBranchSafeInterStatement(Result *result, INTER_FUNCTIONSIG);
  10. bool tryBranchSafeInterStatement(Result *result, INTER_FUNCTIONSIG);
  11. Result operationStatement(INTER_FUNCTIONSIG);
  12. Result setFunction(INTER_FUNCTIONSIG);
  13. Result callFunction(INTER_FUNCTIONSIG);
  14. Result getVar(INTER_FUNCTIONSIG, VarInfo var_info);
  15. Result getBaseValue(INTER_FUNCTIONSIG);
  16. Result getList(INTER_FUNCTIONSIG);
  17. Result getDict(INTER_FUNCTIONSIG);
  18. Result ifBranch(INTER_FUNCTIONSIG);
  19. Result whileBranch(INTER_FUNCTIONSIG);
  20. Result tryBranch(INTER_FUNCTIONSIG);
  21. Result breakCycle(INTER_FUNCTIONSIG);
  22. Result continueCycle(INTER_FUNCTIONSIG);
  23. Result regoIf(INTER_FUNCTIONSIG);
  24. Result restartCode(INTER_FUNCTIONSIG);
  25. Result returnCode(INTER_FUNCTIONSIG);
  26. Result raiseCode(INTER_FUNCTIONSIG);
  27. Result assCore(Statement *name, LinkValue *value, INTER_FUNCTIONSIG_CORE);
  28. char *setStrVarName(char *old, bool free_old);
  29. char *setNumVarName(NUMBER_TYPE num);
  30. char *getNameFromValue(Value *value);
  31. Result getBaseVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  32. Result getBaseSVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  33. Result getVarInfo(char **name, int *times, INTER_FUNCTIONSIG);
  34. #endif //VIRTUALMATH_RUN_H