/src/tools/semantics/code/expressions/liberty_less_or_equal.e

http://github.com/tybor/Liberty · Specman e · 46 lines · 25 code · 7 blank · 14 comment · 0 complexity · 78f9669167b5f6c69b88979b77f7471c MD5 · raw file

  1. -- This file is part of Liberty Eiffel.
  2. --
  3. -- Liberty Eiffel is free software: you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation, version 3 of the License.
  6. --
  7. -- Liberty Eiffel is distributed in the hope that it will be useful,
  8. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. -- GNU General Public License for more details.
  11. --
  12. -- You should have received a copy of the GNU General Public License
  13. -- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
  14. --
  15. class LIBERTY_LESS_OR_EQUAL
  16. inherit
  17. LIBERTY_INFIX_CALL
  18. create {LIBERTY_BUILDER_TOOLS}
  19. make
  20. create {LIBERTY_LESS_OR_EQUAL}
  21. new
  22. feature {}
  23. the_infix_name: FIXED_STRING is
  24. once
  25. Result := "<=".intern
  26. end
  27. make_new (a_target: like target; a_entity: like entity; a_actuals: like actuals_list; a_position: like position): like Current is
  28. do
  29. create Result.new(a_target, a_entity, a_actuals, a_position)
  30. end
  31. feature {ANY}
  32. accept (v: VISITOR) is
  33. local
  34. v0: LIBERTY_LESS_OR_EQUAL_VISITOR
  35. do
  36. v0 ::= v
  37. v0.visit_liberty_less_or_equal(Current)
  38. end
  39. end