PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/tutorial/backtracking/logigram/exprs/expr_item.e

http://github.com/tybor/Liberty
Specman e | 47 lines | 22 code | 7 blank | 18 comment | 0 complexity | 116e277cd4626f0821294a0d5bb7465d MD5 | raw file
 1-- See the Copyright notice at the end of this file.
 2--
 3class EXPR_ITEM
 4
 5inherit
 6	EXPR
 7
 8creation {ANY}
 9	make
10
11feature {ANY}
12	item: ITEM
13
14	make (it: ITEM) is
15		require
16			it.is_like_integer
17		do
18			item := it
19		end
20
21	to_integer: INTEGER is
22		do
23			Result := item.to_integer
24		end
25
26	get_items (collector: ITEM_COLLECTOR) is
27		do
28			collector.put(item)
29		end
30
31end -- class EXPR_ITEM
32--
33-- ------------------------------------------------------------------------------------------------------------------------------
34-- Copyright notice below. Please read.
35--
36-- This file is free software, which comes along with SmartEiffel. This software is distributed in the hope that it will be
37-- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38-- You can modify it as you want, provided this footer is kept unaltered, and a notification of the changes is added.
39-- You are allowed to redistribute it and sell it, alone or as a part of another product.
40--
41-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P.       - University of Nancy 1 - FRANCE
42-- Copyright(C) 2003-2005: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
43--
44-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
45--
46-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
47-- ------------------------------------------------------------------------------------------------------------------------------