edit-expression-java-read-only.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <script type="text/ng-template" id="exp_r.html">
  2. (<span ng-repeat="item in item.v">
  3. <span ng-show="item.t=='exp'">
  4. <span ng-include="'exp_r.html'"></span>
  5. </span>
  6. <span ng-show="item.t=='expB'">
  7. <span ng-include="'exp_r_bool.html'"></span>
  8. </span>
  9. <span ng-show="item.t=='var'">
  10. {{vars[item.v].name}}
  11. </span>
  12. <span ng-show="item.t=='val'">
  13. {{item.v}}
  14. </span>
  15. <span ng-show="item.t=='op'">
  16. {{operators2[item.v].display}}
  17. </span>
  18. <span ng-show="item.t=='opB'">
  19. {{operators[item.v].display}}
  20. </span>
  21. </span>
  22. )
  23. </script>
  24. <script type="text/ng-template" id="exp_r_bool.html">
  25. (<span ng-repeat="item in item.v">
  26. <span ng-show="item.t=='exp'">
  27. <span ng-include="'exp_r.html'"></span>
  28. </span>
  29. <span ng-show="item.t=='expB'">
  30. <span ng-include="'exp_r_bool.html'"></span>
  31. </span>
  32. <span ng-show="item.t=='var'">
  33. {{vars[item.v].name}}
  34. </span>
  35. <span ng-show="item.t=='val'">
  36. {{item.v}}
  37. </span>
  38. <span ng-show="item.t=='op'">
  39. {{operators2[item.v].display}}
  40. </span>
  41. <span ng-show="item.t=='opB'">
  42. {{operators[item.v].display}}
  43. </span>
  44. </span>
  45. )
  46. </script>
  47. <span ng-repeat="item in ex">
  48. <span ng-show="item.t=='exp'">
  49. <!--span edit-expression-java="item.v" vars="vars" type="type"></span-->
  50. <span ng-include="'exp_r.html'"></span>
  51. </span>
  52. <span ng-show="item.t=='expB'">
  53. <!--span edit-expression-java="item.v" vars="vars" type="type"></span-->
  54. <span ng-include="'exp_r_bool.html'"></span>
  55. </span>
  56. <span ng-show="item.t=='var'">
  57. {{vars[item.v].name}}
  58. </span>
  59. <span ng-show="item.t=='val'">
  60. {{item.v}}
  61. </span>
  62. <span ng-show="item.t=='op'">
  63. <span select-operator="item.v" type="type"></span>
  64. </span>
  65. </span>