rgen 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/CHANGELOG +20 -1
  2. data/MIT-LICENSE +1 -1
  3. data/README +12 -9
  4. data/lib/instantiators/ea_instantiator.rb +36 -0
  5. data/lib/metamodels/uml13_metamodel.rb +559 -0
  6. data/lib/metamodels/uml13_metamodel_ext.rb +26 -0
  7. data/lib/mmgen/metamodel_generator.rb +5 -5
  8. data/lib/mmgen/mm_ext/ecore_ext.rb +95 -0
  9. data/lib/mmgen/mmgen.rb +6 -4
  10. data/lib/mmgen/templates/annotations.tpl +37 -0
  11. data/lib/mmgen/templates/metamodel_generator.tpl +171 -0
  12. data/lib/rgen/ecore/ecore.rb +190 -0
  13. data/lib/rgen/ecore/ecore_instantiator.rb +25 -0
  14. data/lib/rgen/ecore/ecore_transformer.rb +85 -0
  15. data/lib/rgen/environment.rb +9 -24
  16. data/lib/rgen/find_helper.rb +68 -0
  17. data/lib/rgen/{instantiator.rb → instantiator/abstract_instantiator.rb} +6 -2
  18. data/lib/rgen/instantiator/abstract_xml_instantiator.rb +59 -0
  19. data/lib/rgen/instantiator/default_xml_instantiator.rb +117 -0
  20. data/lib/rgen/instantiator/ecore_xml_instantiator.rb +144 -0
  21. data/lib/rgen/instantiator/nodebased_xml_instantiator.rb +157 -0
  22. data/lib/rgen/instantiator/xmi11_instantiator.rb +164 -0
  23. data/lib/rgen/metamodel_builder.rb +103 -9
  24. data/lib/rgen/metamodel_builder/build_helper.rb +26 -4
  25. data/lib/rgen/metamodel_builder/builder_extensions.rb +285 -88
  26. data/lib/rgen/metamodel_builder/builder_runtime.rb +7 -1
  27. data/lib/rgen/metamodel_builder/data_types.rb +67 -0
  28. data/lib/rgen/metamodel_builder/intermediate/annotation.rb +30 -0
  29. data/lib/rgen/metamodel_builder/metamodel_description.rb +232 -0
  30. data/lib/rgen/metamodel_builder/mm_multiple.rb +23 -0
  31. data/lib/rgen/metamodel_builder/module_extension.rb +33 -0
  32. data/lib/rgen/model_comparator.rb +56 -0
  33. data/lib/rgen/model_dumper.rb +5 -5
  34. data/lib/rgen/name_helper.rb +17 -1
  35. data/lib/rgen/template_language.rb +148 -28
  36. data/lib/rgen/template_language/directory_template_container.rb +56 -38
  37. data/lib/rgen/template_language/output_handler.rb +93 -77
  38. data/lib/rgen/template_language/template_container.rb +186 -143
  39. data/lib/rgen/transformer.rb +19 -14
  40. data/lib/transformers/uml13_to_ecore.rb +75 -0
  41. data/redist/xmlscan/ChangeLog +1301 -0
  42. data/redist/xmlscan/README +34 -0
  43. data/redist/xmlscan/THANKS +11 -0
  44. data/redist/xmlscan/doc/changes.html +74 -0
  45. data/redist/xmlscan/doc/changes.rd +80 -0
  46. data/redist/xmlscan/doc/en/conformance.html +136 -0
  47. data/redist/xmlscan/doc/en/conformance.rd +152 -0
  48. data/redist/xmlscan/doc/en/manual.html +356 -0
  49. data/redist/xmlscan/doc/en/manual.rd +402 -0
  50. data/redist/xmlscan/doc/ja/conformance.ja.html +118 -0
  51. data/redist/xmlscan/doc/ja/conformance.ja.rd +134 -0
  52. data/redist/xmlscan/doc/ja/manual.ja.html +325 -0
  53. data/redist/xmlscan/doc/ja/manual.ja.rd +370 -0
  54. data/redist/xmlscan/doc/src/Makefile +41 -0
  55. data/redist/xmlscan/doc/src/conformance.rd.src +256 -0
  56. data/redist/xmlscan/doc/src/langsplit.rb +110 -0
  57. data/redist/xmlscan/doc/src/manual.rd.src +614 -0
  58. data/redist/xmlscan/install.rb +41 -0
  59. data/redist/xmlscan/lib/xmlscan/encoding.rb +311 -0
  60. data/redist/xmlscan/lib/xmlscan/htmlscan.rb +289 -0
  61. data/redist/xmlscan/lib/xmlscan/namespace.rb +352 -0
  62. data/redist/xmlscan/lib/xmlscan/parser.rb +299 -0
  63. data/redist/xmlscan/lib/xmlscan/scanner.rb +1109 -0
  64. data/redist/xmlscan/lib/xmlscan/version.rb +22 -0
  65. data/redist/xmlscan/lib/xmlscan/visitor.rb +158 -0
  66. data/redist/xmlscan/lib/xmlscan/xmlchar.rb +441 -0
  67. data/redist/xmlscan/memo/CONFORMANCE +1249 -0
  68. data/redist/xmlscan/memo/PRODUCTIONS +195 -0
  69. data/redist/xmlscan/memo/contentspec.ry +335 -0
  70. data/redist/xmlscan/samples/chibixml.rb +105 -0
  71. data/redist/xmlscan/samples/getxmlchar.rb +122 -0
  72. data/redist/xmlscan/samples/rexml.rb +159 -0
  73. data/redist/xmlscan/samples/xmlbench.rb +88 -0
  74. data/redist/xmlscan/samples/xmlbench/parser/chibixml.rb +22 -0
  75. data/redist/xmlscan/samples/xmlbench/parser/nqxml.rb +29 -0
  76. data/redist/xmlscan/samples/xmlbench/parser/rexml.rb +62 -0
  77. data/redist/xmlscan/samples/xmlbench/parser/xmlparser.rb +22 -0
  78. data/redist/xmlscan/samples/xmlbench/parser/xmlscan-0.0.10.rb +62 -0
  79. data/redist/xmlscan/samples/xmlbench/parser/xmlscan-chibixml.rb +22 -0
  80. data/redist/xmlscan/samples/xmlbench/parser/xmlscan-rexml.rb +22 -0
  81. data/redist/xmlscan/samples/xmlbench/parser/xmlscan.rb +99 -0
  82. data/redist/xmlscan/samples/xmlbench/xmlbench-lib.rb +116 -0
  83. data/redist/xmlscan/samples/xmlconftest.rb +200 -0
  84. data/redist/xmlscan/test.rb +7 -0
  85. data/redist/xmlscan/tests/deftestcase.rb +73 -0
  86. data/redist/xmlscan/tests/runtest.rb +47 -0
  87. data/redist/xmlscan/tests/testall.rb +14 -0
  88. data/redist/xmlscan/tests/testencoding.rb +438 -0
  89. data/redist/xmlscan/tests/testhtmlscan.rb +752 -0
  90. data/redist/xmlscan/tests/testnamespace.rb +457 -0
  91. data/redist/xmlscan/tests/testparser.rb +591 -0
  92. data/redist/xmlscan/tests/testscanner.rb +1749 -0
  93. data/redist/xmlscan/tests/testxmlchar.rb +143 -0
  94. data/redist/xmlscan/tests/visitor.rb +34 -0
  95. data/test/array_extensions_test.rb +2 -2
  96. data/test/ea_instantiator_test.rb +41 -0
  97. data/test/ecore_self_test.rb +53 -0
  98. data/test/environment_test.rb +11 -6
  99. data/test/metamodel_builder_test.rb +404 -245
  100. data/test/metamodel_roundtrip_test.rb +52 -0
  101. data/test/metamodel_roundtrip_test/TestModel.rb +65 -0
  102. data/test/metamodel_roundtrip_test/TestModel_Regenerated.rb +64 -0
  103. data/test/metamodel_roundtrip_test/houseMetamodel.ecore +32 -0
  104. data/test/metamodel_roundtrip_test/houseMetamodel_from_ecore.rb +39 -0
  105. data/test/rgen_test.rb +3 -3
  106. data/test/template_language_test.rb +65 -39
  107. data/test/template_language_test/expected_result.txt +24 -3
  108. data/test/template_language_test/templates/code/array.tpl +11 -0
  109. data/test/template_language_test/templates/content/author.tpl +7 -0
  110. data/test/template_language_test/templates/content/chapter.tpl +1 -1
  111. data/test/template_language_test/templates/root.tpl +17 -8
  112. data/test/template_language_test/testout.txt +24 -3
  113. data/test/testmodel/class_model_checker.rb +119 -0
  114. data/test/{xmi_instantiator_test/testmodel.eap → testmodel/ea_testmodel.eap} +0 -0
  115. data/test/{xmi_instantiator_test/testmodel.xml → testmodel/ea_testmodel.xml} +81 -14
  116. data/test/testmodel/ea_testmodel_partial.xml +317 -0
  117. data/test/testmodel/ecore_model_checker.rb +101 -0
  118. data/test/testmodel/manual_testmodel.xml +22 -0
  119. data/test/testmodel/object_model_checker.rb +67 -0
  120. data/test/transformer_test.rb +18 -10
  121. data/test/xml_instantiator_test.rb +81 -8
  122. data/test/xml_instantiator_test/simple_ecore_model_checker.rb +94 -0
  123. data/test/xml_instantiator_test/simple_xmi_ecore_instantiator.rb +53 -0
  124. data/test/xml_instantiator_test/simple_xmi_metamodel.rb +49 -0
  125. data/test/xml_instantiator_test/simple_xmi_to_ecore.rb +75 -0
  126. metadata +126 -28
  127. data/lib/ea/xmi_class_instantiator.rb +0 -46
  128. data/lib/ea/xmi_helper.rb +0 -26
  129. data/lib/ea/xmi_metamodel.rb +0 -34
  130. data/lib/ea/xmi_object_instantiator.rb +0 -46
  131. data/lib/ea/xmi_to_classmodel.rb +0 -78
  132. data/lib/ea/xmi_to_objectmodel.rb +0 -92
  133. data/lib/mmgen/mm_ext/uml_classmodel_ext.rb +0 -71
  134. data/lib/mmgen/templates/uml_classmodel.tpl +0 -63
  135. data/lib/rgen/xml_instantiator.rb +0 -132
  136. data/lib/uml/objectmodel_instantiator.rb +0 -53
  137. data/lib/uml/uml_classmodel.rb +0 -92
  138. data/lib/uml/uml_objectmodel.rb +0 -65
  139. data/test/metamodel_generator_test.rb +0 -44
  140. data/test/metamodel_generator_test/TestModel.rb +0 -40
  141. data/test/metamodel_generator_test/expected_result.txt +0 -40
  142. data/test/xmi_class_instantiator_test.rb +0 -24
  143. data/test/xmi_instantiator_test/class_model_checker.rb +0 -97
  144. data/test/xmi_object_instantiator_test.rb +0 -65
  145. data/test/xml_instantiator_test/testmodel.xml +0 -7
@@ -0,0 +1,1301 @@
1
+ Sun May 22 16:04:50 2005 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
2
+
3
+ * tests/runtest.rb: follow Test::Unit change.
4
+
5
+ * tests/testxmlchar.rb: requires tests/visitor.rb.
6
+
7
+ Sun May 11 23:09:15 2003 Tanaka Akira <akr@m17n.org>
8
+
9
+ * lib/xmlscan/scanner.rb (PrivateArray): avoid warning
10
+ `instance_methods parameter will default to 'true' in Jan 2004' of
11
+ Ruby-1.8.
12
+ (XMLScanner.provided_options): ditto.
13
+
14
+ * lib/xmlscan/visitor.rb (Decoration): ditto.
15
+
16
+ Fri May 2 00:37:20 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
17
+
18
+ * tests/runtest.rb: run tests in safe level 2.
19
+
20
+ Fri May 2 00:32:11 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
21
+
22
+ * lib/xmlscan/scanner.rb (Source#get): behavior of String#split has
23
+ changed from April 14 2003.
24
+ (XMLScanner#found_stag_error): ditto.
25
+ (XMLScanner#scan_stag): ditto.
26
+ (XMLScanner#get_until_qmark): ditto.
27
+
28
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#scan_stag): ditto.
29
+
30
+ Thu May 1 23:40:45 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
31
+
32
+ * lib/xmlscan/scanner.rb (KcodeRegexp#kcode_regexp): removed excess
33
+ nils from parameter of Regexp#new.
34
+
35
+ Wed Apr 30 12:03:11 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
36
+
37
+ * lib/xmlscan/xmlchar.rb (XMLChar): avoid warning 'character class
38
+ has `-' without escape' of Ruby-1.8.
39
+
40
+ Sun Mar 23 11:16:59 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
41
+
42
+ * lib/xmlscan/scanner.rb (XMLScanner::KcodeRegexp): slightly improved.
43
+
44
+ Sat Mar 22 11:53:36 2003 NAKAMURA, Hiroshi <nahi@mwd.biglobe.ne.jp>
45
+
46
+ * lib/xmlscan/scanner.rb (XMLScanner): avoid warning 'character class
47
+ has `-' without escape' of Ruby-1.8.
48
+
49
+ Mon Mar 17 11:13:32 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
50
+
51
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_chardata): '&;' now causes a
52
+ parse error.
53
+ (XMLScanner#scan_attvalue): ditto.
54
+
55
+ * tests/testscanner.rb (TestXMLScanner): likewise.
56
+
57
+ Mon Mar 17 10:37:45 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
58
+
59
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_prolog): don't call
60
+ on_prolog_space if sequence of whitespace is empty.
61
+
62
+ Sun Mar 16 11:37:36 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
63
+
64
+ * samples/xmlbench/parser/rexml.rb: added BenchREXMLPull.
65
+
66
+ Sun Mar 16 11:32:48 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
67
+
68
+ * samples/xmlbench.rb: use fork to run each benchmark in almost same
69
+ environment.
70
+
71
+ Fri Feb 28 21:29:23 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
72
+
73
+ * tests/runtest.rb: use Test::Unit.
74
+ * tests/deftestcase.rb: ditto.
75
+ * tests/testencoding.rb: ditto.
76
+ * tests/testhtmlscan.rb: ditto.
77
+ * tests/testnamespace.rb: ditto.
78
+ * tests/testparser.rb: ditto.
79
+ * tests/testscanner.rb: ditto.
80
+ * tests/testxmlchar.rb: ditto.
81
+
82
+ Fri Feb 28 21:08:06 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
83
+
84
+ * tests/deftestcase.rb (deftestcase): improved.
85
+
86
+ Fri Feb 28 21:06:00 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
87
+
88
+ * tests/testxmlchar.rb (TestXMLScannerStrict): added testcases for
89
+ XMLScanner::StrictChar.
90
+
91
+ Fri Feb 28 21:04:32 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
92
+
93
+ * lib/xmlscan/xmlchar.rb (XMLScanner::StrictChar#check_valid_name):
94
+ changed the exception message.
95
+
96
+ Sat Feb 15 22:17:23 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
97
+
98
+ * lib/xmlscan/scanner.rb (Source#get): fixed a bug about line
99
+ concatenation.
100
+
101
+ Tue Feb 11 03:08:12 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
102
+
103
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#on_stag): allow / in attribute
104
+ values.
105
+
106
+ * tests/testhtmlscan.rb (TestHTMLScanner): likewise.
107
+
108
+ Thu Jan 30 20:44:10 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
109
+
110
+ * test.rb: set $-w true before require.
111
+
112
+ Thu Jan 23 02:00:14 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
113
+
114
+ * unstable version 0.3.0 started.
115
+
116
+ Thu Jan 23 01:54:01 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
117
+
118
+ * stable version 0.2.1 released.
119
+
120
+ Thu Jan 23 01:46:08 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
121
+
122
+ * samples/xmlconftest.rb: changed the log format.
123
+
124
+ Thu Jan 23 01:41:58 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
125
+
126
+ * doc/src/Makefile: new file.
127
+
128
+ Thu Jan 23 01:40:58 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
129
+
130
+ * doc/: rearrenged the files.
131
+
132
+ Thu Jan 23 00:34:19 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
133
+
134
+ * doc/changes.rd: new file.
135
+
136
+ * doc/.cvsignore: added changes.html.
137
+
138
+ Thu Jan 23 00:32:53 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
139
+
140
+ * doc/manual.rd.src: updated.
141
+
142
+ Wed Jan 22 23:32:23 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
143
+
144
+ * doc/Makefile.rb: removed.
145
+
146
+ Wed Jan 22 21:55:57 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
147
+
148
+ * lib/xmlscan/parser.rb (XMLParser): commented out on_charref_hex and
149
+ on_attr_charref_hex.
150
+ (XMLParser#on_stag_end_empty): calls @visitor.on_stag_end_empty, not
151
+ on_stag_end and on_etag.
152
+
153
+ * lib/xmlscan/namespace.rb (XMLParserNS): followed the above changes.
154
+ (NSVisitor#on_stag_end_empty_ns): new method.
155
+
156
+ * tests/testparser.rb: likewise.
157
+ * tests/testnamespace.rb: likewise.
158
+
159
+ Tue Jan 21 23:52:38 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
160
+
161
+ * tests/deftestcase.rb: rewrote.
162
+
163
+ * tests/testscanner.rb: followed new deftestcase.rb.
164
+ * tests/testparser.rb: ditto.
165
+ * tests/testnamespace.rb: ditto.
166
+ * tests/testhtmlscan.rb: ditto.
167
+
168
+ Mon Jan 20 07:35:54 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
169
+
170
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_prolog): String#strip
171
+ eliminates not only XML whitespaces but any space characters.
172
+ Use /[^ \t\r\n]/ !~ str instead.
173
+
174
+ Mon Jan 20 06:56:42 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
175
+
176
+ * lib/xmlscan/scanner.rb (XMLScanner.regexp_hash): renamed to
177
+ XMLScanner::KcodeRegexp.kcode_regexp.
178
+
179
+ Mon Jan 20 00:49:30 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
180
+
181
+ * lib/xmlscan/xmlchar.rb: stop using global variables.
182
+
183
+ Mon Jan 20 00:41:58 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
184
+
185
+ * lib/xmlscan/xmlchar.rb (StrictChar#check_valid_char): character
186
+ reference to illegal character should cause wellformed_error, not
187
+ parse_error.
188
+
189
+ Sun Jan 19 23:43:51 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
190
+
191
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_prolog): bug fixed about
192
+ sole `>' in prolog.
193
+
194
+ * tests/testscanner.rb (TestXMLScanner): added a testcase for the
195
+ above.
196
+
197
+ Sun Jan 19 23:30:11 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
198
+
199
+ * lib/xmlscan/scanner.rb: tiny change for font-lock mode in Emacs.
200
+
201
+ Sun Jan 19 16:18:21 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
202
+
203
+ * lib/xmlscan/xmlchar.rb (XMLChar): use regular expressions instead of
204
+ binary search.
205
+ (XMLChar.valid_char?): rewrote to use regexp.
206
+ (XMLChar.valid_chardata?): ditto.
207
+ (XMLChar.valid_nmtoken?): ditto.
208
+ (XMLChar.valid_name?): ditto.
209
+
210
+ Sun Jan 19 16:17:16 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
211
+
212
+ * lib/xmlscan/parser.rb (XMLParser): removed constant PredefinedEntity.
213
+
214
+ Sun Jan 19 16:15:41 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
215
+
216
+ * lib/xmlscan/namespace.rb: in sample script, XMLParser -> XMLParserNS.
217
+
218
+ Sun Jan 19 15:58:14 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
219
+
220
+ * tests/testencoding.rb (TestEncoding): replaced NameError with
221
+ NoMethodError.
222
+
223
+ Sat Jan 18 16:02:33 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
224
+
225
+ * samples/xmlbench/parser/xmlscan.rb (BenchXMLScanParserNamespace#parse): adapted to 0.2.
226
+
227
+ Sat Jan 18 05:50:16 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
228
+
229
+ * lib/xmlscan/namespace.rb (XMLNamespaceDecoration#on_stag):
230
+ use String#include? instead of regexp to check whether a string
231
+ includes a `:'.
232
+ (XMLNamespaceDecoration#on_attribute): ditto.
233
+ (XMLNamespaceDecoration#on_pi): ditto.
234
+ (XMLNamespaceDecoration#on_entityref): ditto.
235
+ (XMLNamespaceDecoration#on_attr_entityref): ditto.
236
+ (XMLNamespaceDecoration#on_doctype): use String#count instead of
237
+ String#scan to count `:' in a string.
238
+
239
+ Sat Jan 18 05:36:33 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
240
+
241
+ * lib/xmlscan/namespace.rb: NSParseError is a ParseError,
242
+ NSNotWellFormedError is a NotWellFormedError, and NSNotValidError is a
243
+ NotValidError.
244
+
245
+ * lib/xmlscan/namespace.rb (NSVisitor#ns_parse_error): raises
246
+ NSParseError, not ParseError.
247
+ (NSVisitor#ns_wellformed_error): raises NSNotWellFormedError.
248
+ (NSVisitor#ns_valid_error): raises NSNotValidError.
249
+
250
+ Sat Jan 18 03:26:43 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
251
+
252
+ * doc/manual.rd.src: updated for 0.2.
253
+
254
+ Thu Jan 16 08:12:32 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
255
+
256
+ * lib/xmlscan/scanner.rb (XMLScanner): removed XMLScanner#regexp, and
257
+ added XMLScanner::regexp_hash.
258
+ (XMLScanner#scan_chardata): use regexp hash instead of generating a new
259
+ regexp in each time.
260
+ (XMLScanner#scan_attvalue): ditto.
261
+ (XMLScanner#scan_cdata): ditto.
262
+ (XMLScanner#scan_xmldecl): ditto.
263
+ (XMLScanner#skip_internal_dtd): ditto.
264
+ (XMLScanner#scan_doctype): ditto.
265
+
266
+ Tue Jan 14 11:49:40 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
267
+
268
+ * lib/xmlscan/scanner.rb (Source): added an instance variable @last
269
+ to improve parsing speed.
270
+ (Source#get): rewrote.
271
+ (Source#inspect): changed the format.
272
+
273
+ Mon Jan 13 13:06:52 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
274
+
275
+ * lib/xmlscan/visitor.rb: require 'xmlscan/version'
276
+
277
+ Sun Jan 12 13:10:43 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
278
+
279
+ * tests/testall.rb: added testencoding.rb.
280
+
281
+ Sun Jan 12 13:08:09 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
282
+
283
+ * lib/xmlscan/encoding.rb: removed ConverterCapsule class, and added
284
+ SimpleConverter.
285
+ (EncodingClass#add_converter): use SimpleConverter.
286
+
287
+ * tests/testencoding.rb (TestEncoding): likewise.
288
+
289
+ Sun Jan 12 12:33:59 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
290
+
291
+ * lib/xmlscan/parser.rb (XMLParser#on_entityref): commented out to
292
+ stop replacing references to predefined entities.
293
+ (XMLParser#on_attr_entityref): ditto.
294
+
295
+ * tests/testparser.rb: likewise.
296
+
297
+ Mon Dec 30 02:17:35 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
298
+
299
+ * samples/xmlbench/xmlbench-lib.rb (XMLBench): forgot adding `public'
300
+ before `def setup'.
301
+
302
+ Mon Dec 30 00:18:23 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
303
+
304
+ * samples/xmlbench/xmlbench-lib.rb: class methods accessing class
305
+ variables should define in class definition.
306
+ (XMLBench.parsers): removed.
307
+
308
+ Fri Dec 27 06:11:20 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
309
+
310
+ * README: updated.
311
+
312
+ Fri Dec 27 06:07:59 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
313
+
314
+ * install.rb: look for sitelibdir first.
315
+
316
+ Fri Dec 27 06:04:18 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
317
+
318
+ * tests/testhtmlscan.rb: deftestcase 'stag' has been repeated.
319
+
320
+ Fri Dec 27 05:02:26 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
321
+
322
+ * doc/manual.rd.src, doc/conformance.rd.src: spell checking.
323
+
324
+ Fri Dec 27 04:23:25 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
325
+
326
+ * memo/CONFORMANCE: slightly updated.
327
+
328
+ Fri Dec 27 02:20:52 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
329
+
330
+ * samples/xmlbench/xmlbench-lib.rb: new file.
331
+ * samples/xmlbench/parser/chibixml.rb: new file.
332
+ * samples/xmlbench/parser/nqxml.rb: new file.
333
+ * samples/xmlbench/parser/rexml.rb: new file.
334
+ * samples/xmlbench/parser/xmlparser.rb: new file.
335
+ * samples/xmlbench/parser/xmlscan.rb: new file.
336
+ * samples/xmlbench/parser/xmlscan-0.0.10.rb: new file.
337
+ * samples/xmlbench/parser/xmlscan-chibixml.rb: new file.
338
+ * samples/xmlbench/parser/xmlscan-rexml.rb: new file.
339
+
340
+ * samples/xmlbench.rb: rewrote to use xmlbench-lib.rb.
341
+ * samples/xmlconftest.rb: ditto.
342
+
343
+ Fri Dec 27 02:09:38 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
344
+
345
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_doctype): bug fixed about
346
+ unterminated ID literals.
347
+
348
+ * tests/testscanner.rb (TestXMLScanner): added a testcase for
349
+ an unterminated DOCTYPE declaration.
350
+
351
+ Wed Dec 25 17:21:11 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
352
+
353
+ * samples/xmlbench.rb: Object#type is obsoleted. Use Object#class
354
+ instead.
355
+
356
+ Tue Dec 24 22:45:41 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
357
+
358
+ * lib/xmlscan/encoding.rb: completely rewrote.
359
+
360
+ * tests/testencoding.rb: likewise.
361
+
362
+ Tue Dec 24 17:06:48 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
363
+
364
+ * lib/xmlscan/parser.rb (XMLParser): rewrote. The parsing state
365
+ is now hard-coded in XMLParser#scan_content. ElementChecker class,
366
+ XMLParser#scan_chardata and XMLParser#scan_cdata were removed.
367
+ XMLParser#on_stag and XMLParser#on_etag are partially rewritten.
368
+
369
+ * tests/testparser.rb (TestXMLParser): new XMLParser cannot report
370
+ the element type of another root element.
371
+
372
+ Tue Dec 24 09:42:23 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
373
+
374
+ * tests/testparser.rb (TestXMLParser): added a testcase to
375
+ element_nesting.
376
+
377
+ Tue Dec 24 09:40:57 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
378
+
379
+ * lib/xmlscan/scanner.rb (XMLScanner#inspect): changed the format.
380
+
381
+ Tue Dec 24 09:35:52 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
382
+
383
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_content): store a value of
384
+ an instance variable to a local variable in advance for speed.
385
+ (XMLScanner#scan_prolog): ditto.
386
+
387
+ Mon Dec 23 17:18:10 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
388
+
389
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_chardata): a whitespace
390
+ between `&' and `;' should cause an error.
391
+ (XMLScanner#scan_attvalue): ditto.
392
+
393
+ * tests/testscanner.rb: likewise.
394
+
395
+ Mon Dec 23 16:50:10 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
396
+
397
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_chardata): prevent dynamic
398
+ variable allocation in a block.
399
+ (XMLScanner#scan_attvalue): ditto.
400
+
401
+ Mon Dec 23 16:26:05 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
402
+
403
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_chardata): replaced
404
+ split(/&/n) with split('&').
405
+ (XMLScanner#scan_attvalue): ditto.
406
+
407
+ Mon Dec 23 16:22:58 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
408
+
409
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_doctype): took out the
410
+ generation of regular expression to outside of the loop.
411
+
412
+ Mon Dec 23 15:31:37 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
413
+
414
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_stag): prevent dynamic
415
+ variable allocation in a block.
416
+
417
+ Mon Dec 23 01:34:42 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
418
+
419
+ * install.rb: new file.
420
+
421
+ Fri Dec 20 17:49:12 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
422
+
423
+ * lib/xmlscan/encoding.rb: new file.
424
+
425
+ * tests/testencoding.rb: new file. testcases for encoding.rb.
426
+
427
+ Fri Dec 20 02:29:54 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
428
+
429
+ * lib/xmlscan/scanner.rb: in considerations for charsets,
430
+ charset -> character encoding.
431
+
432
+ Fri Dec 20 00:39:57 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
433
+
434
+ * lib/xmlscan/version.rb: renamed Version to VERSION, and added
435
+ XMLScan::RELEASE_DATE.
436
+
437
+ Wed Dec 18 12:43:28 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
438
+
439
+ * lib/xmlscan/scanner.rb (XMLScanner#kcode=): third argument of
440
+ Regexp::new must not be nil.
441
+
442
+ Wed Dec 18 12:41:51 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
443
+
444
+ * tests/testscanner.rb (TestXMLScanner): added testcases for
445
+ XMLScanner#kcode, XMLScanner#lineno and XMLScanner#path.
446
+
447
+ Wed Dec 18 03:30:37 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
448
+
449
+ * tests/testscanner.rb (TestXMLScanner): added
450
+ TestXMLScanner#test_emptyhstring and TextXMLScanner#test_nil.
451
+
452
+ Wed Dec 18 03:25:07 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
453
+
454
+ * lib/xmlscan/scanner.rb (XMLSource): removed XMLSource#first_get and
455
+ added XMLSource#prepare.
456
+
457
+ Tue Dec 10 20:15:39 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
458
+
459
+ * lib/xmlscan/namespace.rb: added 'n' flags to all $KCODE-independent
460
+ regular expressions.
461
+
462
+ Tue Dec 10 20:14:09 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
463
+
464
+ * lib/xmlscan/htmlscan.rb: added 'n' flags to all $KCODE-independent
465
+ regular expressions.
466
+
467
+ Tue Dec 10 20:12:15 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
468
+
469
+ * lib/xmlscan/scanner.rb (Source#inspect,Source#each): new methods
470
+ for debug.
471
+
472
+ Tue Dec 10 20:05:10 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
473
+
474
+ * lib/xmlscan/scanner.rb: added considerations for charsets.
475
+
476
+ * lib/xmlscan/scanner.rb: added 'n' flags to all $KCODE-independent
477
+ regular expressions.
478
+
479
+ * lib/xmlscan/scanner.rb (XMLScanner#regexp): new method.
480
+ $KCODE-dependent regular expressions are generated in run time
481
+ by this method.
482
+
483
+ * lib/xmlscan/scanner.rb (XMLScanner#kcode,XMLScanner#kcode=):
484
+ new method.
485
+
486
+ Tue Dec 3 09:20:01 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
487
+
488
+ * lib/xmlscan/scanner.rb (Input#initialize): @src should keep original
489
+ source object, so don't modify @src.
490
+
491
+ Tue Dec 3 08:49:57 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
492
+
493
+ * lib/xmlscan/scanner.rb (PrivateArray): keep common methods (defined
494
+ in Kernel) public.
495
+
496
+ Tue Dec 3 08:34:49 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
497
+
498
+ * lib/xmlscan/scanner.rb (XMLScanner#close_tag): a comment has
499
+ been contradicting the code.
500
+
501
+ Mon Dec 2 23:10:12 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
502
+
503
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_stag): use /[\S\s]*/ instead
504
+ of /.*/ in order to make the regex match the whole of a string even
505
+ if the string includes a broken character.
506
+
507
+ Mon Dec 2 21:21:52 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
508
+
509
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_cdata): ?] may appear as
510
+ the second octet of a multi-byte character in Shift_JIS.
511
+ cdata[-1] == ?] should be replaced with /\]\z/ =~ cdata.
512
+
513
+ Mon Oct 14 03:43:38 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
514
+
515
+ * lib/xmlscan/scanner.rb (XMLScanner#make_source): new method.
516
+ (XMLScanner#parse_document): use the new factory method to make an
517
+ instance of Source.
518
+
519
+ Fri Oct 11 10:29:41 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
520
+
521
+ * lib/xmlscan/scanner.rb: separated Error, Visitor, Decoration to
522
+ visitor.rb.
523
+
524
+ * lib/xmlscan/visitor.rb: new file. derived from scanner.rb.
525
+
526
+ Thu Oct 10 13:27:04 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
527
+
528
+ * lib/xmlscan/scanner.rb (XMLScanner#initialize, XMLScanner#decorate):
529
+ new decoration framework.
530
+
531
+ * lib/xmlscan/namespace.rb (XMLNamespaceDecoration): renamed
532
+ XMLNamespace class to XMLNamespaceDecoration.
533
+
534
+ * lib/xmlscan/namespace.rb (XMLParserNS): new class. replacement of
535
+ namespace option for XMLParser.
536
+
537
+ * tests/testnamespace.rb (TestXMLNamespace#setup): use XMLParserNS.
538
+
539
+ Thu Oct 10 13:19:19 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
540
+
541
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_xmldecl): if an unterminated
542
+ literal is found, call parse_error method at first, and then call
543
+ on_xmldecl_* method.
544
+
545
+ Thu Oct 10 13:11:06 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
546
+
547
+ * lib/xmlscan/namespace.rb (NSVisitor): merged NSVisitor#on_namespace
548
+ and NSVisitor#on_stag_end into NSVisitor#on_stag_end_ns.
549
+ (XMLNamespace#on_stag_end): likewise.
550
+
551
+ * tests/testnamespace.rb (TestXMLNamespace): likewise.
552
+
553
+ Thu Oct 10 08:23:46 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
554
+
555
+ * unstable version 0.2.0 started.
556
+
557
+ Thu Oct 10 03:05:34 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
558
+
559
+ * stable version 0.1.1 released.
560
+
561
+ Wed Oct 9 23:40:47 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
562
+
563
+ * doc/manual.rd.src: added subterfuge about XML Namespaces.
564
+
565
+ Wed Oct 9 12:15:47 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
566
+
567
+ * doc/conformance.rd.src: added descriptions for linebreaks.
568
+
569
+ * doc/manual.rd.src: updated descriptions for XMLScan::Visitor#warning.
570
+
571
+ Tue Oct 8 18:30:26 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
572
+
573
+ * doc/manual.rd.src: updated and added explanations for HTMLScanner.
574
+
575
+ Mon Oct 7 20:23:33 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
576
+
577
+ * doc/conformance.rd.src: added $Id: $.
578
+
579
+ * doc/manual.rd.src: ditto.
580
+
581
+ Mon Oct 7 20:21:08 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
582
+
583
+ * doc/manual.rd.src: new file.
584
+ * doc/conformance.rd.src: new file.
585
+ * doc/langsplit.rb: new file.
586
+ * doc/Makefile.rb: new file.
587
+ * doc/.cvsignore: new file.
588
+
589
+ Sat Oct 5 10:40:25 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
590
+
591
+ * CONFORMANCE, memo/CONFORMANCE: moved CONFORMANCE into memo/.
592
+
593
+ * PRODUCTIONS, memo/PRODUCTIONS: moved PRODUCTIONS into memo/.
594
+
595
+ Tue Oct 1 15:27:46 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
596
+
597
+ * lib/xmlscan/namespace.rb (XMLNamespace#on_stag): prefix `xmlns' may
598
+ not appear as a part of an element type name.
599
+
600
+ * tests/testnamespace.rb (TestXMLNamespace): likewise.
601
+
602
+ Tue Oct 1 15:12:51 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
603
+
604
+ * lib/xmlscan/namespace.rb (XMLNamespace): each reserved namespace
605
+ prefix is considered to be declared implicitly at where the prefix is
606
+ used, not at first.
607
+
608
+ * tests/testnamespace.rb (TestXMLNamespace): likewise.
609
+
610
+ Mon Sep 30 17:23:43 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
611
+
612
+ * release candidate version 0.1.0rc2 released.
613
+
614
+ Mon Sep 30 17:10:25 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
615
+
616
+ * lib/xmlscan/namespace.rb (XMLNamespace): don't make a hash par a
617
+ start tag for a namespace scope, push nil instead.
618
+
619
+ Mon Sep 30 14:31:55 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
620
+
621
+ * lib/xmlscan/namespace.rb (XMLNamespace): tune up.
622
+
623
+ Mon Sep 30 10:19:23 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
624
+
625
+ * tests/testnamespace.rb (TextXMLNamespace): added a testcase for
626
+ doubled localpart in the same namespace.
627
+
628
+ Mon Sep 30 07:23:36 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
629
+
630
+ * tests/testnamespace.rb (TestXMLNamespace): renamed TestXMLNamespaces
631
+ to TestXMLNamespace.
632
+
633
+ * tests/testnamespace.rb (TestXMLNamespace): added a testcase for
634
+ a triple-colon attribute.
635
+
636
+ Mon Sep 30 07:21:26 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
637
+
638
+ * lib/xmlscan/namespace.rb (XMLNamespace): tune up.
639
+ added XMLNamespace::NamespaceDeclaration class and moved some method
640
+ from XMLNamespace to the new class.
641
+
642
+ Mon Sep 30 00:54:57 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
643
+
644
+ * samples/rexml.rb: new file.
645
+
646
+ * samples/xmlbench.rb: added samples/rexml.rb.
647
+
648
+ Sun Sep 29 15:04:21 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
649
+
650
+ * lib/xmlscan/scanner.rb (XMLScanner#on_xmldecl): new method, called
651
+ when the parser meets XML declaration.
652
+ (XMLScanner#on_xmldecl_end): new method, called when the parser meets
653
+ the end of XML declaration.
654
+ (Visitor#on_xmldecl,Visitor#on_xmldecl_end): also added.
655
+
656
+ * lib/xmlscan/htmlscan.rb: adapted to the above changes.
657
+
658
+ * tests/testscanner.rb, tests/testparser.rb: likewise.
659
+
660
+ Sun Sep 29 14:14:13 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
661
+
662
+ * lib/xmlscan/scanner.rb (XMLScanner.apply_options): raises
663
+ ArgumentError if an undefined option is specified.
664
+
665
+ Sat Sep 28 20:47:14 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
666
+
667
+ * release candidate version 0.1.0rc1 released.
668
+
669
+ Sat Sep 28 19:56:50 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
670
+
671
+ * samples/xmlbench.rb: defined dummy entity resolver for
672
+ xmlscan-0.0.10.
673
+
674
+ Sat Sep 28 19:50:43 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
675
+
676
+ * samples/chibixml.rb: new file.
677
+
678
+ * samples/xmlbench.rb: new file.
679
+
680
+ * samples/xmlconftest.rb: new file.
681
+
682
+ Sat Sep 28 18:39:56 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
683
+
684
+ * lib/xmlscan/scanner.rb (Source#first_get): nil can be returned from
685
+ Source#get.
686
+
687
+ Sat Sep 28 16:24:53 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
688
+
689
+ * CONFORMANCE: updated.
690
+
691
+ Sat Sep 28 16:20:55 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
692
+
693
+ * lib/xmlscan/namespace.rb: new file.
694
+
695
+ * tests/testnamespace.rb: new file. testcases for namespace.rb.
696
+
697
+ * tests/testall.rb: added testnamespace.rb
698
+
699
+ Sat Sep 28 14:16:05 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
700
+
701
+ * lib/xmlscan/scanner.rb (XMLScanner#decorate): new private method.
702
+
703
+ Sat Sep 28 14:13:54 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
704
+
705
+ * lib/xmlscan/scanner.rb (Decoration): Decoration should be a class,
706
+ not a module.
707
+
708
+ Sat Sep 28 14:07:08 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
709
+
710
+ * lib/xmlscan/parser.rb (XMLParser#on_stag_end_empty): expand
711
+ on_stag_end_empty to on_stag_end and on_etag_end. XMLParser never
712
+ calls Visitor#on_stag_end_empty.
713
+
714
+ * lib/xmlscan/parser.rb (XMLParser#on_charref_hex): forward to
715
+ Visitor#on_charref. XMLParser never calls Visitor#on_charref_hex.
716
+ (XMLParser#on_attr_charref_hex): ditto.
717
+
718
+ * tests/testparser.rb: likewise.
719
+
720
+ Sat Sep 28 14:01:01 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
721
+
722
+ * tests/testparser.rb (TestXMLParser): added testcases for ignorable
723
+ spaces.
724
+
725
+ Sat Sep 28 03:43:58 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
726
+
727
+ * lib/xmlscan/scanner.rb (XMLScanner#on_end_document): renamed
728
+ XMLScanner#on_eof to XMLScanner#on_end_document.
729
+ (XMLScanner#on_start_document): added new method.
730
+ (Visitor#on_start_document): ditto.
731
+
732
+ * lib/xmlscan/parser.rb: adapted to the above change.
733
+
734
+ * tests/testscanner.rb: adapted to the above change.
735
+ * tests/testparser.rb: ditto.
736
+ * tests/testhtmlscan.rb: ditto.
737
+
738
+ Sat Sep 28 02:16:10 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
739
+
740
+ * CONFORMANCE: added quotations from ``Namespaces in XML'' Section
741
+ 5.1-3 and their translation.
742
+
743
+ Sat Sep 28 01:51:53 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
744
+
745
+ * CONFORMANCE: corrected mistranslation.
746
+
747
+ Sat Sep 28 00:31:02 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
748
+
749
+ * lib/xmlscan/scanner.rb (XMLScanner): replaced almost all /\s/ with
750
+ /[ \t\n\r]/, because /\s/ matches not only #x20, #x9, #xA and #xD,
751
+ but also #xC.
752
+
753
+ * tests/testscanner.rb (TestXMLScanner): added testcases for checking
754
+ for "\f".
755
+
756
+ * PRODUCTIONS: updated.
757
+
758
+ Fri Sep 27 23:45:49 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
759
+
760
+ * lib/xmlscan/scanner.rb (XMLScanner): s/expansion/option/
761
+
762
+ * lib/xmlscan/xmlchar.rb (XMLScanner): ditto.
763
+
764
+ Fri Sep 27 12:08:42 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
765
+
766
+ * PRODUCTIONS: updated.
767
+
768
+ Fri Sep 27 12:02:55 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
769
+
770
+ * lib/xmlscan/parser.rb (XMLParser#on_doctype): check whether public
771
+ external ID have both public ID and system ID.
772
+
773
+ * tests/testparser.rb (TestXMLParser): added testcases for doctype.
774
+
775
+ Fri Sep 27 11:49:10 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
776
+
777
+ * lib/xmlscan/parser.rb (XMLParser#on_xmldecl_version): check version.
778
+ (XMLParser#on_xmldecl_standalone): check either yes or no and save
779
+ the value.
780
+
781
+ * tests/testparser.rb (TestXMLParser): added testcases for xmldecl.
782
+
783
+ Fri Sep 27 11:38:54 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
784
+
785
+ * lib/xmlscan/xmlchar.rb: new file.
786
+
787
+ * tests/testxmlchar.rb: new file. testcases for xmlchar.rb.
788
+
789
+ * tests/testall.rb: added testxmlchar.rb.
790
+
791
+ Fri Sep 27 11:33:08 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
792
+
793
+ * samples/getxmlchar.rb: changed the format of output.
794
+
795
+ Fri Sep 27 11:31:17 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
796
+
797
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#on_xmldecl_version):
798
+ calling this method raises RuntimeError exception.
799
+ (HTMLScanner#on_xmldecl_encoding): ditto.
800
+ (HTMLScanner#on_xmldecl_standalone): ditto.
801
+ (HTMLScanner#on_xmldecl_other): ditto.
802
+ (HTMLScanner#on_stag_end_empty): ditto.
803
+
804
+ Fri Sep 27 11:29:28 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
805
+
806
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_xmldecl): check the order
807
+ of `version', `encoding' and `standalone'.
808
+ (XMLScanner#on_xmldecl): replaced by new methods;
809
+ XMLScanner#on_xmldecl_version, XMLScanner#on_xmldecl_encoding,
810
+ XMLScanner#on_xmldecl_standalone and XMLScanner#on_xmldecl_other.
811
+ (Visitor#on_xmldecl): ditto.
812
+
813
+ * tests/testscanner.rb (TestXMLScanner): rewrote testcases for xmldecl.
814
+
815
+ * lib/xmlscan/htmlscan.rb: adapted to the above changes.
816
+
817
+ Fri Sep 27 03:21:42 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
818
+
819
+ * lib/xmlscan/parser.rb (XMLParser#on_pi): check reserved PI target.
820
+
821
+ * tests/testparser.rb (TestXMLParser): likewise.
822
+
823
+ Thu Sep 26 12:46:18 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
824
+
825
+ * tests/testparser.rb: wrong filename was commented.
826
+
827
+ Thu Sep 26 12:30:16 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
828
+
829
+ * samples/getxmlchar.rb: new file.
830
+
831
+ Thu Sep 26 12:28:20 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
832
+
833
+ * lib/xmlscan/scanner.rb (XMLScanner#initialize): corrected garbages.
834
+
835
+ Thu Sep 26 12:16:35 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
836
+
837
+ * lib/xmlscan/scanner.rb (XMLScanner): added expansible framework;
838
+ added new methods XMLScanner::provided_expansions,
839
+ XMLScanner::apply_expansion and XMLScanner::apply_expansions,
840
+ and overrided XMLScanner::new.
841
+
842
+ Thu Sep 26 07:28:22 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
843
+
844
+ * tests/testparser.rb (TestXMLParser): added testcases for doubled
845
+ attribute.
846
+
847
+ Thu Sep 26 03:07:59 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
848
+
849
+ * lib/xmlscan/parser.rb: new file.
850
+
851
+ * tests/testparser.rb: new file. testcase for parser.rb.
852
+
853
+ * tests/testall.rb: added testparser.rb.
854
+
855
+ * CONFORMANCE, PRODUCTIONS: updated.
856
+
857
+ Thu Sep 26 00:25:22 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
858
+
859
+ * lib/xmlscan/scanner.rb (XMLScanner#warning): new method.
860
+ (XMLScanner#scan_internal_dtd): it is not parse error that DTD subset
861
+ is not supported. It should be warning.
862
+
863
+ * tests/testscanner.rb (TestVisitor,TestXMLScanner): likewise.
864
+
865
+ Wed Sep 25 23:26:59 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
866
+
867
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#scan_xml_pi): save
868
+ XMLScanner#scan_pi as HTMLScanner#scan_xml_pi.
869
+
870
+ Wed Sep 25 23:18:41 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
871
+
872
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_etag): calls found_empty_etag
873
+ only when the parser meets just `</>'. `</<' is not a empty end tag.
874
+
875
+ * lib/xmlscan/scanner.rb (XMLScanner#found_empty_etag): an empty end
876
+ tag is reported as character data.
877
+ (XMLScanner#found_empty_stag): ditto.
878
+
879
+ * tests/testscanner.rb (TestXMLScanner): added testcases for empty
880
+ tags.
881
+
882
+ * tests/testhtmlscan.rb (TestHTMLScanner): adapted to the above
883
+ changes.
884
+
885
+ Wed Sep 25 08:23:49 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
886
+
887
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#scan_bang_tag): <!> is a legal
888
+ comment in SGML.
889
+
890
+ * tests/testhtmlscan.rb (TestHTMLScanner): likewise.
891
+
892
+ Wed Sep 25 07:46:25 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
893
+
894
+ * CONFORMANCE: updated the translation.
895
+
896
+ Wed Sep 25 07:28:25 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
897
+
898
+ * lib/xmlscan/htmlscan.rb: forgot to rename RawVisitor to Visitor in
899
+ sample script.
900
+
901
+ Wed Sep 25 07:23:41 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
902
+
903
+ * lib/xmlscan/scanner.rb (Input#test): bugfix.
904
+
905
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#get_cdata_content): new method.
906
+
907
+ * tests/testhtmlscan.rb: added testcases for CDATA content.
908
+
909
+ Wed Sep 25 06:56:24 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
910
+
911
+ * lib/xmlscan/scanner.rb (Input#test): new method.
912
+
913
+ Wed Sep 25 06:46:12 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
914
+
915
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#scan_cdata): removed.
916
+ HTMLScanner now parses CDATA sections, which HTML recommends to avoid
917
+ to use, without any warnings.
918
+
919
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#scan_cdata): changed an error
920
+ message.
921
+
922
+ * tests/testhtmlscan.rb (TestHTMLScanner): likewise.
923
+
924
+ Wed Sep 25 06:31:27 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
925
+
926
+ * lib/xmlscan/scanner.rb: renamed RawVisitor to Visitor.
927
+
928
+ * tests/testscanner.rb: likewise.
929
+
930
+ * tests/visitor.rb: rewrote. new module RecordingVisitor.
931
+
932
+ * tests/testscanner.rb: use RecordingVisitor.
933
+
934
+ * tests/testhtmlscan.rb: ditto.
935
+
936
+ Wed Sep 25 01:50:15 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
937
+
938
+ * lib/xmlscan/scanner.rb: sample script caused errors when $VERBOSE is
939
+ true.
940
+
941
+ * lib/xmlscan/htmlscan.rb: ditto.
942
+
943
+ Wed Sep 25 01:40:39 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
944
+
945
+ * tests/testhtmlscan.rb (TestHTMLScanner): added testcases for doctype.
946
+
947
+ Tue Sep 24 23:43:25 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
948
+
949
+ * tests/testscanner.rb: '$id: $' is typo of '$Id: $'. fixed.
950
+ * tests/testhtmlscan.rb: ditto.
951
+ * tests/visitor.rb: ditto.
952
+
953
+ Tue Sep 24 23:42:06 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
954
+
955
+ * tests/testscanner.rb (TestXMLScanner): added some testcases for
956
+ prolog.
957
+
958
+ Tue Sep 24 23:37:46 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
959
+
960
+ * lib/xmlscan/htmlscan.rb (HTMLScanner): doesn't take care of XHTML.
961
+
962
+ * tests/testhtmlscan.rb (TestHTMLScanner): likewise.
963
+
964
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#scan_prolog): added.
965
+ In HTML, XML declaration doesn't appear and DOCTYPE is
966
+ case-insensitive.
967
+ (HTMLScanner#found_invalid_pubsys): added. In HTML, PUBLIC and SYSTEM
968
+ are case-insensitive.
969
+
970
+ * tests/testhtmlscan.rb (TestHTMLScanner): added testcases for prolog
971
+ and doctype.
972
+
973
+ Tue Sep 24 23:23:45 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
974
+
975
+ * lib/xmlscan/scanner.rb (XMLScanner#found_invalid_pubsys): added a
976
+ templete method called from XMLScanner#scan_doctype.
977
+
978
+ * tests/testscanner.rb (TestXMLScanner): add some testcases for
979
+ doctype.
980
+
981
+ Tue Sep 24 23:02:21 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
982
+
983
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_prolog): improved
984
+ readability.
985
+
986
+ Tue Sep 24 22:59:35 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
987
+
988
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_prolog): document type
989
+ declaration can appear only one time in a XML document.
990
+
991
+ * tests/testscanner.rb (TestXMLScanner): add testcases for the above.
992
+
993
+ Tue Sep 24 22:14:28 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
994
+
995
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#scan_stag): rewrote based on
996
+ old XMLScanner#scan_stag. The syntax of HTML start tag is similar to
997
+ XML one, but is not same.
998
+
999
+ * tests/testhtmlscan.rb (TestHTMLScanner): added testcase for stag
1000
+ and some ones for attribute.
1001
+
1002
+ Tue Sep 24 21:45:05 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1003
+
1004
+ * lib/xmlscan/scanner.rb (XMLScanner#get_until_qmark): improved.
1005
+
1006
+ Tue Sep 24 21:25:02 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1007
+
1008
+ * lib/xmlscan/scanner.rb (XMLScanner#scan): rewrote.
1009
+ XMLScanner now doesn't recover foo=bar as foo="bar".
1010
+ (XMLScanner#found_unquoted_attvalue): removed.
1011
+ (XMLScanner#found_omitted_attvalue): removed.
1012
+ (XMLScanner#found_lt_in_attvalue): removed.
1013
+ (XMLScanner#found_stag_error): added.
1014
+
1015
+ * tests/testscanner.rb: likewise.
1016
+
1017
+ Tue Sep 24 19:35:12 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1018
+
1019
+ * tests/runtest.rb (suite): bugfix.
1020
+
1021
+ Tue Sep 24 19:18:42 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1022
+
1023
+ * PRODUCTIONS: updated.
1024
+
1025
+ Mon Sep 23 00:01:45 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1026
+
1027
+ * lib/xmlscan/scanner.rb (XMLScanner#valid_error): added.
1028
+
1029
+ * tests/testscanner.rb (TestRawVisitor#test_method_defined): added
1030
+ valid_error.
1031
+
1032
+ Sun Sep 22 16:06:37 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1033
+
1034
+ * lib/xmlscan/scanner.rb (Decoration): new mix-in.
1035
+
1036
+ Sun Sep 22 14:32:30 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1037
+
1038
+ * lib/xmlscan/scanner.rb (NotValidError): new exception.
1039
+ (RawVisitor#valid_error): added.
1040
+
1041
+ Sun Sep 22 14:30:53 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1042
+
1043
+ * lib/xmlscan/scanner.rb (Input): removed Input#send and added
1044
+ Input#src, Input::unwrap.
1045
+ (Source#source, XMLScanner#source): added.
1046
+
1047
+ Sun Sep 22 14:25:40 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1048
+
1049
+ * PRODUCTIONS: new file.
1050
+
1051
+ Sun Sep 22 08:17:08 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1052
+
1053
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_chardata): renamed
1054
+ XMLScanner#scan_content to XMLScanner#scan_chardata.
1055
+
1056
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_chardata): renamed
1057
+ XMLScanner#scan_body to XMLScanner#scan_content.
1058
+
1059
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_document): rename
1060
+ XMLScanner#scan_doc to XMLScanner#scan_document.
1061
+
1062
+ * lib/xmlscan/scanner.rb (XMLScanner#parse_document): rename
1063
+ XMLScanner#parse to XMLScanner#parse_document. XMLScanner#parse
1064
+ is alias to XMLScanner#parse_document.
1065
+
1066
+ * tests/testscanner.rb (TestXMLScanner): renamed testcase 'content' to
1067
+ 'chardata'.
1068
+
1069
+ Sun Sep 22 07:58:25 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1070
+
1071
+ * lib/xmlscan/scanner.rb (RawVisitor): new mix-in.
1072
+
1073
+ * lib/xmlscan/scanner.rb (XMLScanner): applied Visitor pattern.
1074
+ (XMLScanner#initialize): get visitor as first argument.
1075
+
1076
+ * lib/xmlscan/htmlscan.rb: likewise.
1077
+ (HTMLScanner#on_omitted_attribute): removed. use on_attr_value(nil)
1078
+ instead.
1079
+
1080
+ * tests/visitor.rb: new file.
1081
+
1082
+ * tests/testscanner.rb (TestRawVisitor): new test class.
1083
+
1084
+ * tests/testscanner.rb (TestXMLScanner): use RawVisitor instead of
1085
+ creating subclass.
1086
+ * tests/testhtmlscan.rb (TestHTMLScanner): ditto.
1087
+
1088
+ Sun Sep 22 04:39:35 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1089
+
1090
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_xmldecl): removed unused
1091
+ variables.
1092
+
1093
+ Sun Sep 22 02:22:21 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1094
+
1095
+ * lib/xmlscan/htmlscan.rb (HTMLScanner#found_lt_in_attvalue):
1096
+ `<' in attribute value occurs no error in HTML mode.
1097
+ (HTMLScanner#on_stag_end_empty): empty element tag is not allowed in
1098
+ HTML.
1099
+
1100
+ * tests/testhtmlscan.rb: likewise.
1101
+
1102
+ Sun Sep 22 02:21:00 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1103
+
1104
+ * tests/testscanner.rb (TestXMLScanner): removed deprecated method
1105
+ on_emptyelem.
1106
+
1107
+ Sun Sep 22 01:59:29 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1108
+
1109
+ * tests/deftestcase.rb: get filename from caller instead of __FILE__.
1110
+
1111
+ Sun Sep 22 00:14:21 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1112
+
1113
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_stag): calls on_stag_end or
1114
+ on_stag_end_empty when parser meets the end of start tag.
1115
+
1116
+ * tests/testscanner.rb, tests/testhtmlscan.rb: likewise.
1117
+
1118
+ Sat Sep 21 21:10:40 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1119
+
1120
+ * lib/xmlscan/scanner.rb: removed debugging codes.
1121
+
1122
+ Sat Sep 21 20:55:56 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1123
+
1124
+ * lib/xmlscan/scanner.rb (XMLScanner): on_* method must do nothing
1125
+ by default.
1126
+
1127
+ Sat Sep 21 14:43:49 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1128
+
1129
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_stag): changed the behavior.
1130
+ see the comment for on_stag in scanner.rb for details.
1131
+
1132
+ * tests/testscanner.rb: likewise.
1133
+
1134
+ * lib/xmlscan/htmlscan.rb: adapted to the above change.
1135
+
1136
+ * tests/testhtmlscan.rb: likewise.
1137
+
1138
+ * CONFORMANCE: `Unique Att Spec' is not checked by XMLScanner now.
1139
+
1140
+ Sat Sep 21 12:59:43 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1141
+
1142
+ * lib/xmlscan/scanner.rb: added the description of on_attr_* method.
1143
+
1144
+ * lib/xmlscan/scanner.rb (XMLScanner#on_attr_name): should do nothing
1145
+ by default.
1146
+ (XMLScanner#on_attr_value): ditto.
1147
+ (XMLScanner#on_attribure): returns nil by default.
1148
+
1149
+ Fri Sep 20 04:08:45 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1150
+
1151
+ * tests/runtest.rb: improvement.
1152
+
1153
+ Fri Sep 20 04:06:07 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1154
+
1155
+ * tests/deftestcase.rb: tiny improvement.
1156
+
1157
+ Fri Sep 20 04:05:20 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1158
+
1159
+ * CONFORMANCE: minor change.
1160
+
1161
+ Fri Sep 20 03:19:25 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1162
+
1163
+ * unstable version 0.1.0 released.
1164
+
1165
+ Fri Sep 20 03:19:01 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1166
+
1167
+ * lib/xmlscan/version.rb: new file.
1168
+
1169
+ Thu Sep 19 04:28:12 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1170
+
1171
+ * lib/xmlscan/scanner.rb: renamed WellFormednessConstraintViolation
1172
+ exception to NotWellFormedError.
1173
+
1174
+ * lib/xmlscan/scanner.rb (XMLScanner#path): fixed typo.
1175
+
1176
+ Thu Sep 19 03:06:24 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1177
+
1178
+ * tests/testscanner.rb (TestXMLScanner): added one testcase for
1179
+ attribute.
1180
+
1181
+ Thu Sep 19 03:05:16 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1182
+
1183
+ * lib/xmlscan/htmlscan.rb: new file.
1184
+
1185
+ * tests/testhtmlscan.rb: new file. testcases for htmlscan.rb.
1186
+
1187
+ * tests/testall.rb: added require 'testhtmlscan'.
1188
+
1189
+ Thu Sep 19 02:18:17 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1190
+
1191
+ * tests/deftestcase.rb: fixed typo.
1192
+
1193
+ Thu Sep 19 02:16:47 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1194
+
1195
+ * tests/deftestcase.rb: new file. derived from tests/testscanner.rb.
1196
+
1197
+ Thu Sep 19 01:16:00 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1198
+
1199
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_comment): a comment ending in
1200
+ `--->' is not allowed in XML 1.0 specification second edition, and
1201
+ `-- >' is not recognized as a end of a comment.
1202
+ (XMLScanner#found_sgml_comment): removed.
1203
+
1204
+ * tests/testscanner.rb (TestXMLScanner): updated testcases about
1205
+ comments ending in `--->' or `-- >'.
1206
+
1207
+ Wed Sep 18 14:08:02 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1208
+
1209
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_comment): assumes that
1210
+ comment is always terminated with `-->' or `-- >' even if an error
1211
+ occurs.
1212
+ (XMLScanner#found_sgml_comment): new method, which calls when a
1213
+ comment terminated with `-- >' is found.
1214
+
1215
+ * tests/testscanner.rb: updated and added some testcases.
1216
+
1217
+ Wed Sep 18 11:34:29 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1218
+
1219
+ * tests/testscanner.rb: renamed TestScanner to TestXMLScanner, and
1220
+ moved ScannerForTest into inside of TestXMLScanner.
1221
+
1222
+ Wed Sep 18 11:30:26 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1223
+
1224
+ * lib/xmlscan/scanner.rb (XMLScanner#skip_internal_dtd): derived from
1225
+ XMLScanner#scan_internal_dtd.
1226
+
1227
+ Wed Sep 18 03:53:16 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1228
+
1229
+ * CONFORMANCE: updated.
1230
+
1231
+ Wed Sep 18 02:45:28 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1232
+
1233
+ * CONFORMANCE: added Namespace constraints.
1234
+
1235
+ Tue Sep 17 23:23:54 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1236
+
1237
+ * lib/xmlscan/scanner.rb (XMLScanner#on_prolog_space): added.
1238
+
1239
+ * tests/testscanner.rb (TestScanner): likewise.
1240
+
1241
+ Tue Sep 17 21:15:20 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1242
+
1243
+ * CONFORMANCE: updated.
1244
+
1245
+ Tue Sep 17 20:56:26 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1246
+
1247
+ * tests/testscanner.rb (TestScanner): added testcases for scan_prolog.
1248
+
1249
+ Tue Sep 17 20:55:52 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1250
+
1251
+ * lib/xmlscan/scanner.rb (XMLScanner#get_plain): optimized.
1252
+
1253
+ Tue Sep 17 20:17:30 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1254
+
1255
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_stag): improved.
1256
+
1257
+ Tue Sep 17 10:27:45 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1258
+
1259
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_stag): improved.
1260
+
1261
+ * tests/testscanner.rb: added a few tests.
1262
+
1263
+ Tue Sep 17 09:30:04 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1264
+
1265
+ * lib/xmlscan/scanner.rb (XMLScanner#scan_stag): doubled attribute and
1266
+ including `<' in an attribute value is well-formedness constraint
1267
+ violation, not parse error.
1268
+
1269
+ * tests/testscanner.rb: likewise.
1270
+
1271
+ Tue Sep 17 09:24:10 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1272
+
1273
+ * lib/xmlscan/scanner.rb (Input#lineno): typo fixed.
1274
+ (Input#path): ditto.
1275
+
1276
+ * lib/xmlscan/scanner.rb (TestScanner): prints error messages if
1277
+ $VERBOSE is true.
1278
+
1279
+ Tue Sep 17 09:19:58 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1280
+
1281
+ * lib/xmlscan/scanner.rb (Input): removed old Input#close_tag.
1282
+
1283
+ * lib/xmlscan/scanner.rb (Input#close_tag): improved.
1284
+
1285
+ Tue Sep 17 09:01:20 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1286
+
1287
+ * test.rb: new file.
1288
+
1289
+ * tests/runtest.rb: new file.
1290
+
1291
+ * tests/testall.rb: new file.
1292
+
1293
+ * tests/testscanner.rb: new file. testcases for scanner.rb.
1294
+
1295
+ Tue Sep 17 09:00:40 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1296
+
1297
+ * lib/xmlscan/scanner.rb: rewrote.
1298
+
1299
+ Thu Sep 12 05:41:46 2002 UENO Katsuhiro <katsu@blue.sky.or.jp>
1300
+
1301
+ * restart the project.