/src/tools/interpreter/debugger/liberty_interpreter_debugger_non_terminal_node.e

http://github.com/tybor/Liberty · Specman e · 55 lines · 34 code · 7 blank · 14 comment · 0 complexity · 5b2e8aa65965c9e8d89885f0a2e7eb17 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_INTERPRETER_DEBUGGER_NON_TERMINAL_NODE
  16. inherit
  17. EIFFEL_NON_TERMINAL_NODE_IMPL
  18. rename
  19. make as make_impl
  20. redefine
  21. accept
  22. end
  23. create {LIBERTY_INTERPRETER_DEBUGGER_FACTORY}
  24. make
  25. feature {ANY}
  26. accept (visitor: VISITOR) is
  27. local
  28. v: LIBERTY_INTERPRETER_DEBUGGER_VISITOR
  29. do
  30. v ::= visitor
  31. action.call([v, Current])
  32. end
  33. feature {}
  34. make (a_action: like action; a_name: like name; a_names: like names) is
  35. require
  36. a_action /= Void
  37. do
  38. make_impl(a_name, a_names)
  39. action := a_action
  40. ensure
  41. name = a_name
  42. names = a_names
  43. action = a_action
  44. end
  45. action: PROCEDURE[TUPLE[LIBERTY_INTERPRETER_DEBUGGER_VISITOR, LIBERTY_INTERPRETER_DEBUGGER_NON_TERMINAL_NODE]]
  46. invariant
  47. action /= Void
  48. end -- class LIBERTY_INTERPRETER_DEBUGGER_NON_TERMINAL_NODE