PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/lib/parse/eiffel/eiffel_default_node_factory.e

http://github.com/tybor/Liberty
Specman e | 53 lines | 23 code | 7 blank | 23 comment | 0 complexity | e00656bfe508b1ab9115157dc35101c3 MD5 | raw file
 1-- This file is part of a Liberty Eiffel library.
 2-- See the full copyright at the end.
 3--
 4class EIFFEL_DEFAULT_NODE_FACTORY
 5
 6inherit
 7   EIFFEL_NODE_FACTORY
 8
 9create {ANY}
10   make
11
12feature {EIFFEL_GRAMMAR}
13   list (name: FIXED_STRING): EIFFEL_LIST_NODE is
14      do
15         create {EIFFEL_LIST_NODE_IMPL}Result.make(name)
16      end
17
18   non_terminal (name: FIXED_STRING; names: TRAVERSABLE[FIXED_STRING]): EIFFEL_NON_TERMINAL_NODE is
19      do
20         create {EIFFEL_NON_TERMINAL_NODE_IMPL}Result.make(name, names)
21      end
22
23   terminal (name: FIXED_STRING; image: EIFFEL_IMAGE): EIFFEL_TERMINAL_NODE is
24      do
25         create {EIFFEL_TERMINAL_NODE_IMPL}Result.make(name, image)
26      end
27
28feature {}
29   make is
30      do
31      end
32
33end -- class EIFFEL_DEFAULT_NODE_FACTORY
34--
35-- Copyright (c) 2009 by all the people cited in the AUTHORS file.
36--
37-- Permission is hereby granted, free of charge, to any person obtaining a copy
38-- of this software and associated documentation files (the "Software"), to deal
39-- in the Software without restriction, including without limitation the rights
40-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41-- copies of the Software, and to permit persons to whom the Software is
42-- furnished to do so, subject to the following conditions:
43--
44-- The above copyright notice and this permission notice shall be included in
45-- all copies or substantial portions of the Software.
46--
47-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
53-- THE SOFTWARE.