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

/src/lib/xml/dtd/xml_dtd_empty_node.e

http://github.com/tybor/Liberty
Specman e | 53 lines | 24 code | 7 blank | 22 comment | 0 complexity | fc7ad654de7cfae6e452564dda197131 MD5 | raw file
 1-- See the Copyright notice at the end of this file.
 2--
 3class XML_DTD_EMPTY_NODE
 4
 5inherit
 6   BACKTRACKING_NODE
 7      undefine
 8         fill_tagged_out_memory
 9      end
10
11insert
12   BACKTRACKING_NODE_FILL
13
14create {XML_DTD_ELEMENT}
15   make
16
17feature {ANY} -- Tree structure validation
18   explore (explorer: XML_DTD_VALIDATOR)
19      do
20         explorer.backtrack_valid_empty
21      end
22
23feature {}
24   make
25      do
26      end
27
28   do_fill_tagged_out_memory
29      do
30         tagged_out_memory.append(once "<empty>")
31      end
32
33end -- class XML_DTD_EMPTY_NODE
34--
35-- Copyright (C) 2009-2017: 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.