PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/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--
15class LIBERTY_INTERPRETER_DEBUGGER_NON_TERMINAL_NODE
16
17inherit
18   EIFFEL_NON_TERMINAL_NODE_IMPL
19      rename
20         make as make_impl
21      redefine
22         accept
23      end
24
25create {LIBERTY_INTERPRETER_DEBUGGER_FACTORY}
26   make
27
28feature {ANY}
29   accept (visitor: VISITOR) is
30      local
31         v: LIBERTY_INTERPRETER_DEBUGGER_VISITOR
32      do
33         v ::= visitor
34         action.call([v, Current])
35      end
36
37feature {}
38   make (a_action: like action; a_name: like name; a_names: like names) is
39      require
40         a_action /= Void
41      do
42         make_impl(a_name, a_names)
43         action := a_action
44      ensure
45         name = a_name
46         names = a_names
47         action = a_action
48      end
49
50   action: PROCEDURE[TUPLE[LIBERTY_INTERPRETER_DEBUGGER_VISITOR, LIBERTY_INTERPRETER_DEBUGGER_NON_TERMINAL_NODE]]
51
52invariant
53   action /= Void
54
55end -- class LIBERTY_INTERPRETER_DEBUGGER_NON_TERMINAL_NODE