rgen 0.5.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. data/CHANGELOG +28 -0
  2. data/Rakefile +3 -4
  3. data/lib/ea_support/uml13_ea_metamodel.rb +3 -3
  4. data/lib/ea_support/uml13_ea_to_uml13.rb +33 -2
  5. data/lib/ea_support/uml13_to_uml13_ea.rb +7 -0
  6. data/lib/mmgen/mm_ext/ecore_mmgen_ext.rb +4 -4
  7. data/lib/mmgen/templates/metamodel_generator.tpl +143 -143
  8. data/lib/rgen/ecore/ecore.rb +11 -1
  9. data/lib/rgen/ecore/ecore_interface.rb +47 -0
  10. data/lib/rgen/ecore/ecore_to_ruby.rb +166 -0
  11. data/lib/rgen/ecore/{ecore_transformer.rb → ruby_to_ecore.rb} +11 -11
  12. data/lib/rgen/environment.rb +15 -2
  13. data/lib/rgen/fragment/dump_file_cache.rb +63 -0
  14. data/lib/rgen/fragment/fragmented_model.rb +139 -0
  15. data/lib/rgen/fragment/model_fragment.rb +268 -0
  16. data/lib/rgen/instantiator/abstract_xml_instantiator.rb +44 -72
  17. data/lib/rgen/instantiator/default_xml_instantiator.rb +2 -2
  18. data/lib/rgen/instantiator/ecore_xml_instantiator.rb +16 -1
  19. data/lib/rgen/instantiator/json_instantiator.rb +16 -2
  20. data/lib/rgen/instantiator/nodebased_xml_instantiator.rb +118 -138
  21. data/lib/rgen/instantiator/qualified_name_resolver.rb +5 -1
  22. data/lib/rgen/instantiator/reference_resolver.rb +126 -24
  23. data/lib/rgen/instantiator/xmi11_instantiator.rb +6 -2
  24. data/lib/rgen/metamodel_builder.rb +18 -6
  25. data/lib/rgen/metamodel_builder/builder_extensions.rb +431 -407
  26. data/lib/rgen/metamodel_builder/builder_runtime.rb +8 -8
  27. data/lib/rgen/metamodel_builder/constant_order_helper.rb +4 -4
  28. data/lib/rgen/metamodel_builder/data_types.rb +5 -1
  29. data/lib/rgen/metamodel_builder/intermediate/feature.rb +167 -0
  30. data/lib/rgen/metamodel_builder/module_extension.rb +2 -2
  31. data/lib/rgen/model_builder.rb +10 -5
  32. data/lib/rgen/model_builder/builder_context.rb +17 -1
  33. data/lib/rgen/serializer/opposite_reference_filter.rb +18 -0
  34. data/lib/rgen/serializer/qualified_name_provider.rb +45 -0
  35. data/lib/rgen/template_language/template_container.rb +3 -1
  36. data/lib/rgen/{auto_class_creator.rb → util/auto_class_creator.rb} +6 -1
  37. data/lib/rgen/util/cached_glob.rb +67 -0
  38. data/lib/rgen/util/file_cache_map.rb +104 -0
  39. data/lib/rgen/util/file_change_detector.rb +78 -0
  40. data/lib/rgen/{method_delegation.rb → util/method_delegation.rb} +18 -3
  41. data/lib/rgen/{model_comparator.rb → util/model_comparator.rb} +17 -5
  42. data/lib/rgen/{model_comparator_base.rb → util/model_comparator_base.rb} +6 -1
  43. data/lib/rgen/{model_dumper.rb → util/model_dumper.rb} +6 -1
  44. data/lib/rgen/{name_helper.rb → util/name_helper.rb} +6 -1
  45. data/lib/rgen/util/pattern_matcher.rb +329 -0
  46. data/lib/transformers/uml13_to_ecore.rb +103 -60
  47. data/test/ecore_self_test.rb +43 -42
  48. data/test/json_test.rb +15 -0
  49. data/test/metamodel_builder_test.rb +361 -206
  50. data/test/metamodel_from_ecore_test.rb +45 -0
  51. data/test/metamodel_order_test.rb +10 -4
  52. data/test/metamodel_roundtrip_test.rb +2 -2
  53. data/test/metamodel_roundtrip_test/TestModel_Regenerated.rb +1 -1
  54. data/test/metamodel_roundtrip_test/houseMetamodel_Regenerated.ecore +50 -50
  55. data/test/method_delegation_test.rb +9 -9
  56. data/test/model_builder/ecore_internal.rb +19 -9
  57. data/test/model_builder/serializer_test.rb +1 -1
  58. data/test/reference_resolver_test.rb +79 -12
  59. data/test/rgen_test.rb +2 -0
  60. data/test/template_language_test.rb +7 -0
  61. data/test/template_language_test/templates/callback_indent_test/a.tpl +12 -0
  62. data/test/template_language_test/templates/callback_indent_test/b.tpl +5 -0
  63. data/test/testmodel/ea_testmodel_regenerated.xml +588 -583
  64. data/test/transformer_test.rb +3 -3
  65. data/test/util/file_cache_map_test.rb +91 -0
  66. data/test/util/file_cache_map_test/testdir/fileA +1 -0
  67. data/test/util_test.rb +4 -0
  68. data/test/xml_instantiator_test.rb +139 -135
  69. metadata +49 -104
  70. data/lib/rgen/ecore/ecore_instantiator.rb +0 -31
  71. data/lib/rgen/metamodel_builder/metamodel_description.rb +0 -232
  72. data/redist/xmlscan/ChangeLog +0 -1301
  73. data/redist/xmlscan/README +0 -34
  74. data/redist/xmlscan/THANKS +0 -11
  75. data/redist/xmlscan/doc/changes.html +0 -74
  76. data/redist/xmlscan/doc/changes.rd +0 -80
  77. data/redist/xmlscan/doc/en/conformance.html +0 -136
  78. data/redist/xmlscan/doc/en/conformance.rd +0 -152
  79. data/redist/xmlscan/doc/en/manual.html +0 -356
  80. data/redist/xmlscan/doc/en/manual.rd +0 -402
  81. data/redist/xmlscan/doc/ja/conformance.ja.html +0 -118
  82. data/redist/xmlscan/doc/ja/conformance.ja.rd +0 -134
  83. data/redist/xmlscan/doc/ja/manual.ja.html +0 -325
  84. data/redist/xmlscan/doc/ja/manual.ja.rd +0 -370
  85. data/redist/xmlscan/doc/src/Makefile +0 -41
  86. data/redist/xmlscan/doc/src/conformance.rd.src +0 -256
  87. data/redist/xmlscan/doc/src/langsplit.rb +0 -110
  88. data/redist/xmlscan/doc/src/manual.rd.src +0 -614
  89. data/redist/xmlscan/install.rb +0 -41
  90. data/redist/xmlscan/lib/xmlscan/encoding.rb +0 -311
  91. data/redist/xmlscan/lib/xmlscan/htmlscan.rb +0 -289
  92. data/redist/xmlscan/lib/xmlscan/namespace.rb +0 -352
  93. data/redist/xmlscan/lib/xmlscan/parser.rb +0 -299
  94. data/redist/xmlscan/lib/xmlscan/scanner.rb +0 -1109
  95. data/redist/xmlscan/lib/xmlscan/version.rb +0 -22
  96. data/redist/xmlscan/lib/xmlscan/visitor.rb +0 -158
  97. data/redist/xmlscan/lib/xmlscan/xmlchar.rb +0 -441
  98. data/redist/xmlscan/memo/CONFORMANCE +0 -1249
  99. data/redist/xmlscan/memo/PRODUCTIONS +0 -195
  100. data/redist/xmlscan/memo/contentspec.ry +0 -335
  101. data/redist/xmlscan/samples/chibixml.rb +0 -105
  102. data/redist/xmlscan/samples/getxmlchar.rb +0 -122
  103. data/redist/xmlscan/samples/rexml.rb +0 -159
  104. data/redist/xmlscan/samples/xmlbench.rb +0 -88
  105. data/redist/xmlscan/samples/xmlbench/parser/chibixml.rb +0 -22
  106. data/redist/xmlscan/samples/xmlbench/parser/nqxml.rb +0 -29
  107. data/redist/xmlscan/samples/xmlbench/parser/rexml.rb +0 -62
  108. data/redist/xmlscan/samples/xmlbench/parser/xmlparser.rb +0 -22
  109. data/redist/xmlscan/samples/xmlbench/parser/xmlscan-0.0.10.rb +0 -62
  110. data/redist/xmlscan/samples/xmlbench/parser/xmlscan-chibixml.rb +0 -22
  111. data/redist/xmlscan/samples/xmlbench/parser/xmlscan-rexml.rb +0 -22
  112. data/redist/xmlscan/samples/xmlbench/parser/xmlscan.rb +0 -99
  113. data/redist/xmlscan/samples/xmlbench/xmlbench-lib.rb +0 -116
  114. data/redist/xmlscan/samples/xmlconftest.rb +0 -200
  115. data/redist/xmlscan/test.rb +0 -7
  116. data/redist/xmlscan/tests/deftestcase.rb +0 -73
  117. data/redist/xmlscan/tests/runtest.rb +0 -47
  118. data/redist/xmlscan/tests/testall.rb +0 -14
  119. data/redist/xmlscan/tests/testencoding.rb +0 -438
  120. data/redist/xmlscan/tests/testhtmlscan.rb +0 -752
  121. data/redist/xmlscan/tests/testnamespace.rb +0 -457
  122. data/redist/xmlscan/tests/testparser.rb +0 -591
  123. data/redist/xmlscan/tests/testscanner.rb +0 -1749
  124. data/redist/xmlscan/tests/testxmlchar.rb +0 -143
  125. data/redist/xmlscan/tests/visitor.rb +0 -34
@@ -1,31 +0,0 @@
1
- module RGen
2
-
3
- module ECore
4
-
5
- # Mixin to provide access to the ECore model describing a Ruby class or module
6
- # built using MetamodelBuilder.
7
- # The module should be used to +extend+ a class or module, i.e. to make its
8
- # methods class methods.
9
- #
10
- module ECoreInstantiator
11
-
12
- # This method will lazily build to ECore model element belonging to the calling
13
- # class or module using ECoreTransformer.
14
- #
15
- def ecore
16
- unless defined?(@@transformer)
17
- require 'rgen/ecore/ecore_transformer'
18
- @@transformer = ECoreTransformer.new
19
- end
20
- @@transformer.trans(self)
21
- end
22
-
23
- def self.clear_ecore_cache
24
- require 'rgen/ecore/ecore_transformer'
25
- @@transformer = ECoreTransformer.new
26
- end
27
- end
28
-
29
- end
30
-
31
- end
@@ -1,232 +0,0 @@
1
- require 'rgen/metamodel_builder'
2
-
3
- module RGen
4
-
5
- module MetamodelBuilder
6
-
7
- class MetamodelDescription
8
-
9
- attr_reader :etype, :impl_type
10
-
11
- def self.default_value(prop)
12
- checkProperty(prop)
13
- defaultValues[prop]
14
- end
15
-
16
- def self.has_default?(prop)
17
- checkProperty(prop)
18
- defaultValues.has_key?(prop)
19
- end
20
-
21
- def initialize(props)
22
- @props = props.dup
23
- end
24
-
25
- def value(prop)
26
- self.class.checkProperty(prop)
27
- @props[prop]
28
- end
29
-
30
- def annotations
31
- @annotations ||= []
32
- end
33
-
34
- def many?
35
- value(:upperBound) > 1 || value(:upperBound) == -1
36
- end
37
-
38
- protected
39
-
40
- def setupDefaults
41
- self.class.propertySet.each do |p|
42
- @props[p] = self.class.default_value(p) unless @props.has_key?(p)
43
- end
44
- end
45
-
46
- def checkAllPropertiesSet
47
- self.class.propertySet.each do |p|
48
- raise StandardError.new("'#{p}' property not set") if !self.class.optionalProperties.include?(p) && @props[p].nil?
49
- end
50
- end
51
-
52
- def checkForInvalidProperties
53
- @props.keys.each do |p|
54
- raise StandardError.new("invalid property #{p}") unless self.class.propertySet.include?(p)
55
- end
56
- end
57
-
58
- private
59
-
60
- def descendent?(clazz1, clazz2)
61
- return true if clazz1 == clazz2 || clazz1.superclass == clazz2
62
- return false if clazz1.superclass.nil?
63
- descendent?(clazz1.superclass, clazz2)
64
- end
65
-
66
- def self.checkProperty(prop)
67
- raise ArgumentError.new("Not a valid property: #{prop}") unless propertySet.include?(prop)
68
- end
69
-
70
- def to_s
71
- self.class.to_s + ": " +
72
- self.class.propertySet.collect{|p| "#{p}=>#{value(p)}"}.join(", ")
73
- end
74
-
75
- def self.propertySet
76
- [ :name ]
77
- end
78
-
79
-
80
- def self.optionalProperties
81
- []
82
- end
83
-
84
- def self.defaultValues
85
- { }
86
- end
87
-
88
- def self.typeMap
89
- { :EString => String,
90
- :EInt => Integer,
91
- :EFloat => Float,
92
- :EBoolean => RGen::MetamodelBuilder::DataTypes::Boolean,
93
- :EJavaObject => Object,
94
- :ERubyObject => Object,
95
- :EJavaClass => Class,
96
- :ERubyClass => Class }
97
- end
98
-
99
- end
100
-
101
- # DERIVED: ordered = true, unique = false, lowerBound = 0/1, upperBound = 1
102
- # DERIVED: when :derived : changeable= false, :volatile=true, transient=true
103
- class AttributeDescription < MetamodelDescription
104
-
105
- def initialize(type, props)
106
- super(props)
107
- # type default
108
- type ||= :EString
109
- setupType(type)
110
- # fixed values can not be changed by user
111
- setupDefaults
112
- checkForInvalidProperties
113
- if @props[:derived]
114
- @props[:changeable] = false
115
- @props[:volatile] = true
116
- @props[:transient] = true
117
- end
118
- checkAllPropertiesSet
119
- end
120
-
121
- private
122
-
123
- def setupType(type)
124
- if self.class.typeMap.keys.include?(type)
125
- @etype = type
126
- @impl_type = self.class.typeMap[type]
127
- elsif self.class.typeMap.invert.keys.include?(type)
128
- @etype = self.class.typeMap.invert[type]
129
- @impl_type = type
130
- elsif type.is_a?(RGen::MetamodelBuilder::DataTypes::Enum)
131
- @etype = :EEnumerable
132
- @impl_type = type
133
- else
134
- raise ArgumentError.new("Type invalid: " + type.to_s)
135
- end
136
- end
137
-
138
- def self.propertySet
139
- super | [
140
- :ordered,
141
- :unique,
142
- :changeable,
143
- :volatile,
144
- :transient,
145
- :unsettable,
146
- :derived,
147
- :lowerBound,
148
- :upperBound,
149
- :defaultValueLiteral ]
150
- end
151
-
152
- def self.optionalProperties
153
- super | [
154
- :defaultValueLiteral
155
- ]
156
- end
157
-
158
- def self.defaultValues
159
- super.merge(
160
- { :ordered => true,
161
- :unique => true,
162
- :changeable => true,
163
- :volatile => false,
164
- :transient => false,
165
- :unsettable => false,
166
- :derived => false,
167
- :lowerBound => 0 })
168
- end
169
-
170
- end
171
-
172
- # DERIVED default: lowerBound => 0/1 (required?), upperBound => 1/-1 (many?), containment (contains_xxx?),
173
- # DERIVED: when :derived : changeable= false, :volatile=true, transient=true
174
- class ReferenceDescription < MetamodelDescription
175
- attr_accessor :opposite
176
-
177
- def initialize(type, props)
178
- super(props)
179
- setupType(type)
180
- setupDefaults
181
- checkForInvalidProperties
182
- if @props[:derived]
183
- @props[:changeable] = false
184
- @props[:volatile] = true
185
- @props[:transient] = true
186
- end
187
- checkAllPropertiesSet
188
- end
189
-
190
- private
191
-
192
- def setupType(type)
193
- if type.is_a?(Class) && descendent?(type, RGen::MetamodelBuilder::MMBase)
194
- @etype = nil
195
- @impl_type = type
196
- else
197
- raise ArgumentError.new("Type is not a MMBase: " + type.to_s)
198
- end
199
- end
200
-
201
- def self.propertySet
202
- super | [
203
- :ordered,
204
- :unique,
205
- :changeable,
206
- :volatile,
207
- :transient,
208
- :unsettable,
209
- :derived,
210
- :lowerBound,
211
- :upperBound,
212
- :resolveProxies,
213
- :containment ]
214
- end
215
-
216
- def self.defaultValues
217
- super.merge({
218
- :ordered => true,
219
- :unique => true,
220
- :changeable => true,
221
- :volatile => false,
222
- :transient => false,
223
- :unsettable => false,
224
- :derived => false,
225
- :lowerBound => 0,
226
- :resolveProxies => true })
227
- end
228
- end
229
-
230
- end
231
-
232
- end
@@ -1,1301 +0,0 @@
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.