schedule.od 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. start:Start
  2. end:End
  3. transitions:Match{
  4. file = "operational_semantics/transition";
  5. }
  6. d:Data_modify
  7. {
  8. modify_dict = '
  9. {
  10. "tr": "t"
  11. }';
  12. }
  13. nac_input_without:Match{
  14. file = "operational_semantics/all_input_have_token";
  15. n = "1";
  16. }
  17. inputs:Match{
  18. file = "operational_semantics/all_inputs";
  19. }
  20. rewrite_incoming:Rewrite
  21. {
  22. file = "operational_semantics/remove_incoming";
  23. }
  24. loop_trans:Loop
  25. loop_input:Loop
  26. p:Print
  27. {
  28. event = True;
  29. label = "transition: ";
  30. }
  31. p2:Print
  32. {
  33. event = True;
  34. label = "inputs: ";
  35. }
  36. :Exec_con(start -> transitions){gate_from = 0;gate_to = 0;}
  37. :Exec_con(transitions -> end){gate_from = 1;gate_to = 0;}
  38. :Exec_con(transitions -> loop_trans){gate_from = 0;gate_to = 0;}
  39. :Exec_con(loop_trans -> nac_input_without){gate_from = 0;gate_to = 0;}
  40. [//]: # (:Exec_con(nac_input_without -> loop_trans){gate_from = 0;gate_to = 0;})
  41. :Exec_con(nac_input_without -> inputs){gate_from = 1;gate_to = 0;}
  42. :Exec_con(inputs -> loop_input){gate_from = 0;gate_to = 0;}
  43. :Exec_con(inputs -> loop_trans){gate_from = 1;gate_to = 0;}
  44. :Exec_con(loop_trans -> end){gate_from = 1;gate_to = 0;}
  45. :Data_con(transitions -> loop_trans)
  46. :Data_con(nac_input_without -> p)
  47. :Data_con(d -> nac_input_without)
  48. :Data_con(loop_trans -> d)
  49. :Data_con(loop_trans -> rewrite_incoming)