PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/tutorial/print_arguments.e

http://github.com/tybor/Liberty
Specman e | 29 lines | 22 code | 4 blank | 3 comment | 0 complexity | 4c0a2dccbabe86530d15d40b501fb012 MD5 | raw file
 1class PRINT_ARGUMENTS
 2   --
 3   -- Example of access to command-line arguments. This example display its arguments.
 4   --
 5
 6insert
 7   ARGUMENTS
 8
 9create {ANY}
10   make
11
12feature {ANY}
13   make
14      local
15         i: INTEGER
16      do
17         from
18            i := 1
19         until
20            i > argument_count
21         loop
22            std_output.put_string(argument(i))
23            std_output.put_character(' ')
24            i := i + 1
25         end
26         std_output.put_character('%N')
27      end
28
29end -- class PRINT_ARGUMENTS