kwartz 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/ChangeLog +36 -1
  2. data/LGPL +504 -0
  3. data/README.txt +16 -2
  4. data/bin/kwartz +1 -1
  5. data/doc-api/classes/Kwartz.html +47 -1
  6. data/doc-api/classes/Kwartz/Assertion.html +6 -6
  7. data/doc-api/classes/Kwartz/AssertionError.html +6 -6
  8. data/doc-api/classes/Kwartz/AttrInfo.html +42 -42
  9. data/doc-api/classes/Kwartz/BaseError.html +12 -12
  10. data/doc-api/classes/Kwartz/BaseTranslator.html +210 -43
  11. data/doc-api/classes/Kwartz/CharacterType.html +24 -24
  12. data/doc-api/classes/Kwartz/CommandOptionError.html +7 -7
  13. data/doc-api/classes/Kwartz/CommandOptions.html +49 -49
  14. data/doc-api/classes/Kwartz/Config.html +6 -1
  15. data/doc-api/classes/Kwartz/ConvertError.html +14 -14
  16. data/doc-api/classes/Kwartz/Converter.html +31 -30
  17. data/doc-api/classes/Kwartz/CssStyleParser.html +79 -57
  18. data/doc-api/classes/Kwartz/Defun.html +313 -0
  19. data/doc-api/classes/Kwartz/DocumentRuleset.html +58 -58
  20. data/doc-api/classes/Kwartz/ElementExpander.html +32 -32
  21. data/doc-api/classes/Kwartz/ElementInfo.html +29 -29
  22. data/doc-api/classes/Kwartz/ElementRuleset.html +126 -96
  23. data/doc-api/classes/Kwartz/EperlHandler.html +108 -84
  24. data/doc-api/classes/Kwartz/EperlTranslator.html +7 -7
  25. data/doc-api/classes/Kwartz/ErubisHandler.html +2 -2
  26. data/doc-api/classes/Kwartz/ErubisTranslator.html +8 -8
  27. data/doc-api/classes/Kwartz/ErubyHandler.html +2 -220
  28. data/doc-api/classes/Kwartz/ErubyTranslator.html +7 -7
  29. data/doc-api/classes/Kwartz/ExpandStatement.html +20 -20
  30. data/doc-api/classes/Kwartz/Handler.html +122 -117
  31. data/doc-api/classes/Kwartz/HandlerArgument.html +215 -0
  32. data/doc-api/classes/Kwartz/Helper.html +112 -0
  33. data/doc-api/classes/Kwartz/Helper/ActionViewHelper.html +221 -0
  34. data/doc-api/classes/Kwartz/Helper/RailsTemplate.html +630 -0
  35. data/doc-api/classes/Kwartz/JstlHandler.html +208 -193
  36. data/doc-api/classes/Kwartz/JstlTranslator.html +15 -15
  37. data/doc-api/classes/Kwartz/KwartzError.html +6 -6
  38. data/doc-api/classes/Kwartz/Main.html +39 -23
  39. data/doc-api/classes/Kwartz/NativeExpression.html +18 -18
  40. data/doc-api/classes/Kwartz/NativeStatement.html +25 -25
  41. data/doc-api/classes/Kwartz/Node.html +6 -6
  42. data/doc-api/classes/Kwartz/PIErubisHandler.html +113 -0
  43. data/doc-api/classes/Kwartz/PIErubisTranslator.html +200 -0
  44. data/doc-api/classes/Kwartz/ParseError.html +6 -6
  45. data/doc-api/classes/Kwartz/PhpHandler.html +102 -83
  46. data/doc-api/classes/Kwartz/PhpTranslator.html +14 -14
  47. data/doc-api/classes/Kwartz/PresentationLogicParser.html +136 -128
  48. data/doc-api/classes/Kwartz/PrintStatement.html +19 -19
  49. data/doc-api/classes/Kwartz/RailsHandler.html +121 -118
  50. data/doc-api/classes/Kwartz/RailsTranslator.html +7 -7
  51. data/doc-api/classes/Kwartz/RubyHandler.html +349 -0
  52. data/doc-api/classes/Kwartz/RubyStyleParser.html +85 -85
  53. data/doc-api/classes/Kwartz/RubyTranslator.html +218 -0
  54. data/doc-api/classes/Kwartz/StatementHelper.html +479 -0
  55. data/doc-api/classes/Kwartz/StrutsTranslator.html +12 -12
  56. data/doc-api/classes/Kwartz/TagInfo.html +28 -28
  57. data/doc-api/classes/Kwartz/TextConverter.html +28 -28
  58. data/doc-api/classes/Kwartz/Translator.html +42 -42
  59. data/doc-api/classes/Kwartz/Util.html +284 -0
  60. data/doc-api/created.rid +1 -1
  61. data/doc-api/files/__/README_txt.html +30 -3
  62. data/doc-api/files/kwartz/assert_rb.html +1 -1
  63. data/doc-api/files/kwartz/binding/eperl_rb.html +2 -2
  64. data/doc-api/files/kwartz/binding/erubis_rb.html +3 -3
  65. data/doc-api/files/kwartz/binding/eruby_rb.html +3 -2
  66. data/doc-api/files/kwartz/binding/jstl_rb.html +2 -2
  67. data/doc-api/files/kwartz/binding/php_rb.html +2 -2
  68. data/doc-api/files/kwartz/binding/pierubis_rb.html +116 -0
  69. data/doc-api/files/kwartz/binding/rails_rb.html +2 -2
  70. data/doc-api/files/kwartz/binding/ruby_rb.html +115 -0
  71. data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
  72. data/doc-api/files/kwartz/config_rb.html +2 -2
  73. data/doc-api/files/kwartz/converter_rb.html +3 -2
  74. data/doc-api/files/kwartz/defun_rb.html +116 -0
  75. data/doc-api/files/kwartz/error_rb.html +1 -1
  76. data/doc-api/files/kwartz/helper/rails_rb.html +123 -0
  77. data/doc-api/files/kwartz/main_rb.html +5 -2
  78. data/doc-api/files/kwartz/node_rb.html +2 -2
  79. data/doc-api/files/kwartz/parser_rb.html +2 -2
  80. data/doc-api/files/kwartz/translator_rb.html +2 -2
  81. data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
  82. data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
  83. data/doc-api/files/kwartz/util_rb.html +107 -0
  84. data/doc-api/files/kwartz_rb.html +3 -2
  85. data/doc-api/fr_class_index.html +11 -0
  86. data/doc-api/fr_file_index.html +5 -0
  87. data/doc-api/fr_method_index.html +242 -190
  88. data/doc/p-pattern.html +94 -94
  89. data/doc/reference.html +847 -612
  90. data/doc/users-guide.html +744 -241
  91. data/examples/rails1/README +2 -2
  92. data/examples/rails1/application_helper.rb +2 -27
  93. data/examples/rails1/link_to.plogic +5 -5
  94. data/examples/rails1/list.plogic +2 -2
  95. data/examples/rails2/app/controllers/application.rb +14 -0
  96. data/examples/rails2/app/controllers/groups_controller.rb +47 -0
  97. data/examples/rails2/app/controllers/members_controller.rb +56 -0
  98. data/examples/rails2/app/helpers/application_helper.rb +6 -0
  99. data/examples/rails2/app/helpers/groups_helper.rb +2 -0
  100. data/examples/rails2/app/helpers/members_helper.rb +2 -0
  101. data/examples/rails2/app/models/group.rb +2 -0
  102. data/examples/rails2/app/models/member.rb +3 -0
  103. data/examples/rails2/app/views/groups/_form.html +30 -0
  104. data/examples/rails2/app/views/groups/_form.plogic +11 -0
  105. data/examples/rails2/app/views/groups/_link.plogic +19 -0
  106. data/examples/rails2/app/views/groups/_read.plogic +7 -0
  107. data/examples/rails2/app/views/groups/edit.cfg.yaml +2 -0
  108. data/examples/rails2/app/views/groups/edit.html +26 -0
  109. data/examples/rails2/app/views/groups/edit.plogic +9 -0
  110. data/examples/rails2/app/views/groups/list.html +48 -0
  111. data/examples/rails2/app/views/groups/list.plogic +32 -0
  112. data/examples/rails2/app/views/groups/new.cfg.yaml +2 -0
  113. data/examples/rails2/app/views/groups/new.html +27 -0
  114. data/examples/rails2/app/views/groups/new.plogic +9 -0
  115. data/examples/rails2/app/views/groups/show.html +27 -0
  116. data/examples/rails2/app/views/groups/show.plogic +2 -0
  117. data/examples/rails2/app/views/layouts/groups.html +23 -0
  118. data/examples/rails2/app/views/layouts/groups.plogic +11 -0
  119. data/examples/rails2/app/views/layouts/members.html +23 -0
  120. data/examples/rails2/app/views/layouts/members.plogic +11 -0
  121. data/examples/rails2/app/views/layouts/members2.html +24 -0
  122. data/examples/rails2/app/views/layouts/members2.plogic +11 -0
  123. data/examples/rails2/app/views/members/_form.plogic +27 -0
  124. data/examples/rails2/app/views/members/_link.plogic +19 -0
  125. data/examples/rails2/app/views/members/_read.plogic +29 -0
  126. data/examples/rails2/app/views/members/edit.cfg.yaml +6 -0
  127. data/examples/rails2/app/views/members/edit.html +27 -0
  128. data/examples/rails2/app/views/members/edit.plogic +10 -0
  129. data/examples/rails2/app/views/members/list.html +53 -0
  130. data/examples/rails2/app/views/members/list.plogic +32 -0
  131. data/examples/rails2/app/views/members/new.html +61 -0
  132. data/examples/rails2/app/views/members/new.plogic +17 -0
  133. data/examples/rails2/app/views/members/show.html +41 -0
  134. data/examples/rails2/app/views/members/show.plogic +3 -0
  135. data/examples/rails2/db/create-tables.mysql.sql +27 -0
  136. data/examples/rails2/db/create-tables.pgsql.sql +27 -0
  137. data/examples/rails2/db/insert-data.sql +21 -0
  138. data/examples/rails2/db/tabledef.yaml +51 -0
  139. data/kwartz.gemspec +4 -4
  140. data/lib/kwartz.rb +10 -2
  141. data/lib/kwartz/assert.rb +1 -1
  142. data/lib/kwartz/binding/eperl.rb +85 -61
  143. data/lib/kwartz/binding/erubis.rb +6 -8
  144. data/lib/kwartz/binding/eruby.rb +5 -120
  145. data/lib/kwartz/binding/jstl.rb +116 -101
  146. data/lib/kwartz/binding/php.rb +79 -60
  147. data/lib/kwartz/binding/pierubis.rb +58 -0
  148. data/lib/kwartz/binding/rails.rb +45 -42
  149. data/lib/kwartz/binding/ruby.rb +193 -0
  150. data/lib/kwartz/binding/struts.rb +1 -1
  151. data/lib/kwartz/config.rb +4 -3
  152. data/lib/kwartz/converter.rb +231 -68
  153. data/lib/kwartz/defun.rb +126 -0
  154. data/lib/kwartz/error.rb +1 -1
  155. data/lib/kwartz/helper/rails.rb +437 -0
  156. data/lib/kwartz/main.rb +30 -38
  157. data/lib/kwartz/node.rb +46 -31
  158. data/lib/kwartz/parser.rb +43 -15
  159. data/lib/kwartz/translator.rb +104 -6
  160. data/lib/kwartz/util.rb +113 -0
  161. data/lib/kwartz/util/assert-text-equal.rb +1 -1
  162. data/lib/kwartz/util/testcase-helper.rb +26 -8
  163. data/test/test-compile.rb +3 -3
  164. data/test/test-compile.yaml +135 -5
  165. data/test/test-converter.rb +16 -8
  166. data/test/test-converter.yaml +307 -76
  167. data/test/test-directives.rb +1 -1
  168. data/test/test-directives.yaml +964 -979
  169. data/test/test-main.rb +61 -146
  170. data/test/test-main.yaml +235 -0
  171. data/test/test-parser.rb +10 -12
  172. data/test/test-parser.yaml +484 -326
  173. data/test/test-rails.rb +1 -1
  174. data/test/test-rails.yaml +37 -37
  175. data/test/test-ruleset.rb +1 -1
  176. data/test/test-ruleset.yaml +34 -40
  177. data/test/test.rb +1 -1
  178. metadata +82 -3
  179. data/COPYING +0 -340
@@ -94,8 +94,8 @@ translator for php
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000137">new</a>&nbsp;&nbsp;
98
- <a href="#M000138">translate_native_expr</a>&nbsp;&nbsp;
97
+ <a href="#M000186">new</a>&nbsp;&nbsp;
98
+ <a href="#M000187">translate_native_expr</a>&nbsp;&nbsp;
99
99
  </div>
100
100
  </div>
101
101
 
@@ -117,19 +117,19 @@ translator for php
117
117
  <div id="methods">
118
118
  <h3 class="section-bar">Public Class methods</h3>
119
119
 
120
- <div id="method-M000137" class="method-detail">
121
- <a name="M000137"></a>
120
+ <div id="method-M000186" class="method-detail">
121
+ <a name="M000186"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000137" class="method-signature">
124
+ <a href="#M000186" class="method-signature">
125
125
  <span class="method-name">new</span><span class="method-args">(properties={})</span>
126
126
  </a>
127
127
  </div>
128
128
 
129
129
  <div class="method-description">
130
130
  <p><a class="source-toggle" href="#"
131
- onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000137-source">
131
+ onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
132
+ <div class="method-source-code" id="M000186-source">
133
133
  <pre>
134
134
  <span class="ruby-comment cmt"># File kwartz/binding/struts.rb, line 84</span>
135
135
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">properties</span>={})
@@ -145,19 +145,19 @@ translator for php
145
145
 
146
146
  <h3 class="section-bar">Public Instance methods</h3>
147
147
 
148
- <div id="method-M000138" class="method-detail">
149
- <a name="M000138"></a>
148
+ <div id="method-M000187" class="method-detail">
149
+ <a name="M000187"></a>
150
150
 
151
151
  <div class="method-heading">
152
- <a href="#M000138" class="method-signature">
152
+ <a href="#M000187" class="method-signature">
153
153
  <span class="method-name">translate_native_expr</span><span class="method-args">(expr)</span>
154
154
  </a>
155
155
  </div>
156
156
 
157
157
  <div class="method-description">
158
158
  <p><a class="source-toggle" href="#"
159
- onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
160
- <div class="method-source-code" id="M000138-source">
159
+ onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
160
+ <div class="method-source-code" id="M000187-source">
161
161
  <pre>
162
162
  <span class="ruby-comment cmt"># File kwartz/binding/struts.rb, line 92</span>
163
163
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate_native_expr</span>(<span class="ruby-identifier">expr</span>)
@@ -86,10 +86,10 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000153">_inspect</a>&nbsp;&nbsp;
90
- <a href="#M000150">new</a>&nbsp;&nbsp;
91
- <a href="#M000152">rebuild_tag_text</a>&nbsp;&nbsp;
92
- <a href="#M000151">tagname=</a>&nbsp;&nbsp;
89
+ <a href="#M000202">_inspect</a>&nbsp;&nbsp;
90
+ <a href="#M000199">new</a>&nbsp;&nbsp;
91
+ <a href="#M000201">rebuild_tag_text</a>&nbsp;&nbsp;
92
+ <a href="#M000200">tagname=</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -187,21 +187,21 @@
187
187
  <div id="methods">
188
188
  <h3 class="section-bar">Public Class methods</h3>
189
189
 
190
- <div id="method-M000150" class="method-detail">
191
- <a name="M000150"></a>
190
+ <div id="method-M000199" class="method-detail">
191
+ <a name="M000199"></a>
192
192
 
193
193
  <div class="method-heading">
194
- <a href="#M000150" class="method-signature">
194
+ <a href="#M000199" class="method-signature">
195
195
  <span class="method-name">new</span><span class="method-args">(matched, linenum=nil)</span>
196
196
  </a>
197
197
  </div>
198
198
 
199
199
  <div class="method-description">
200
200
  <p><a class="source-toggle" href="#"
201
- onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
202
- <div class="method-source-code" id="M000150-source">
201
+ onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
202
+ <div class="method-source-code" id="M000199-source">
203
203
  <pre>
204
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 46</span>
204
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 47</span>
205
205
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">matched</span>, <span class="ruby-identifier">linenum</span>=<span class="ruby-keyword kw">nil</span>)
206
206
  <span class="ruby-ivar">@prev_text</span> = <span class="ruby-identifier">matched</span>[<span class="ruby-value">1</span>]
207
207
  <span class="ruby-ivar">@tag_text</span> = <span class="ruby-identifier">matched</span>[<span class="ruby-value">2</span>]
@@ -221,21 +221,21 @@
221
221
 
222
222
  <h3 class="section-bar">Public Instance methods</h3>
223
223
 
224
- <div id="method-M000153" class="method-detail">
225
- <a name="M000153"></a>
224
+ <div id="method-M000202" class="method-detail">
225
+ <a name="M000202"></a>
226
226
 
227
227
  <div class="method-heading">
228
- <a href="#M000153" class="method-signature">
228
+ <a href="#M000202" class="method-signature">
229
229
  <span class="method-name">_inspect</span><span class="method-args">()</span>
230
230
  </a>
231
231
  </div>
232
232
 
233
233
  <div class="method-description">
234
234
  <p><a class="source-toggle" href="#"
235
- onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
236
- <div class="method-source-code" id="M000153-source">
235
+ onclick="toggleCode('M000202-source');return false;">[Source]</a></p>
236
+ <div class="method-source-code" id="M000202-source">
237
237
  <pre>
238
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 85</span>
238
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 86</span>
239
239
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_inspect</span>
240
240
  <span class="ruby-keyword kw">return</span> [ <span class="ruby-ivar">@prev_text</span>, <span class="ruby-ivar">@head_space</span>, <span class="ruby-ivar">@is_etag</span>, <span class="ruby-ivar">@tagname</span>, <span class="ruby-ivar">@attr_str</span>, <span class="ruby-ivar">@extra_space</span>, <span class="ruby-ivar">@is_empty</span>, <span class="ruby-ivar">@tail_space</span> ]
241
241
  <span class="ruby-keyword kw">end</span>
@@ -244,21 +244,21 @@
244
244
  </div>
245
245
  </div>
246
246
 
247
- <div id="method-M000152" class="method-detail">
248
- <a name="M000152"></a>
247
+ <div id="method-M000201" class="method-detail">
248
+ <a name="M000201"></a>
249
249
 
250
250
  <div class="method-heading">
251
- <a href="#M000152" class="method-signature">
251
+ <a href="#M000201" class="method-signature">
252
252
  <span class="method-name">rebuild_tag_text</span><span class="method-args">(attr_info=nil)</span>
253
253
  </a>
254
254
  </div>
255
255
 
256
256
  <div class="method-description">
257
257
  <p><a class="source-toggle" href="#"
258
- onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
259
- <div class="method-source-code" id="M000152-source">
258
+ onclick="toggleCode('M000201-source');return false;">[Source]</a></p>
259
+ <div class="method-source-code" id="M000201-source">
260
260
  <pre>
261
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 73</span>
261
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 74</span>
262
262
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rebuild_tag_text</span>(<span class="ruby-identifier">attr_info</span>=<span class="ruby-keyword kw">nil</span>)
263
263
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attr_info</span>
264
264
  <span class="ruby-identifier">sb</span> = <span class="ruby-value str">''</span>
@@ -274,21 +274,21 @@
274
274
  </div>
275
275
  </div>
276
276
 
277
- <div id="method-M000151" class="method-detail">
278
- <a name="M000151"></a>
277
+ <div id="method-M000200" class="method-detail">
278
+ <a name="M000200"></a>
279
279
 
280
280
  <div class="method-heading">
281
- <a href="#M000151" class="method-signature">
281
+ <a href="#M000200" class="method-signature">
282
282
  <span class="method-name">tagname=</span><span class="method-args">(tagname)</span>
283
283
  </a>
284
284
  </div>
285
285
 
286
286
  <div class="method-description">
287
287
  <p><a class="source-toggle" href="#"
288
- onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
289
- <div class="method-source-code" id="M000151-source">
288
+ onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
289
+ <div class="method-source-code" id="M000200-source">
290
290
  <pre>
291
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 66</span>
291
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 67</span>
292
292
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tagname=</span>(<span class="ruby-identifier">tagname</span>)
293
293
  <span class="ruby-ivar">@tagname</span> = <span class="ruby-identifier">tagname</span>
294
294
  <span class="ruby-identifier">rebuild_tag_text</span>()
@@ -97,10 +97,10 @@ format, not html format.
97
97
  <h3 class="section-bar">Methods</h3>
98
98
 
99
99
  <div class="name-list">
100
- <a href="#M000035">convert</a>&nbsp;&nbsp;
101
- <a href="#M000036">fetch_pattern=</a>&nbsp;&nbsp;
102
- <a href="#M000033">new</a>&nbsp;&nbsp;
103
- <a href="#M000034">reset</a>&nbsp;&nbsp;
100
+ <a href="#M000071">convert</a>&nbsp;&nbsp;
101
+ <a href="#M000072">fetch_pattern=</a>&nbsp;&nbsp;
102
+ <a href="#M000069">new</a>&nbsp;&nbsp;
103
+ <a href="#M000070">reset</a>&nbsp;&nbsp;
104
104
  </div>
105
105
  </div>
106
106
 
@@ -140,21 +140,21 @@ format, not html format.
140
140
  <div id="methods">
141
141
  <h3 class="section-bar">Public Class methods</h3>
142
142
 
143
- <div id="method-M000033" class="method-detail">
144
- <a name="M000033"></a>
143
+ <div id="method-M000069" class="method-detail">
144
+ <a name="M000069"></a>
145
145
 
146
146
  <div class="method-heading">
147
- <a href="#M000033" class="method-signature">
147
+ <a href="#M000069" class="method-signature">
148
148
  <span class="method-name">new</span><span class="method-args">(handler, properties={})</span>
149
149
  </a>
150
150
  </div>
151
151
 
152
152
  <div class="method-description">
153
153
  <p><a class="source-toggle" href="#"
154
- onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
155
- <div class="method-source-code" id="M000033-source">
154
+ onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
155
+ <div class="method-source-code" id="M000069-source">
156
156
  <pre>
157
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 695</span>
157
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 854</span>
158
158
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">handler</span>, <span class="ruby-identifier">properties</span>={})
159
159
  <span class="ruby-keyword kw">super</span>
160
160
  <span class="ruby-identifier">include_properties</span>(<span class="ruby-identifier">properties</span>) <span class="ruby-comment cmt"># set @delspan and @dattr</span>
@@ -166,21 +166,21 @@ format, not html format.
166
166
 
167
167
  <h3 class="section-bar">Protected Class methods</h3>
168
168
 
169
- <div id="method-M000036" class="method-detail">
170
- <a name="M000036"></a>
169
+ <div id="method-M000072" class="method-detail">
170
+ <a name="M000072"></a>
171
171
 
172
172
  <div class="method-heading">
173
- <a href="#M000036" class="method-signature">
173
+ <a href="#M000072" class="method-signature">
174
174
  <span class="method-name">fetch_pattern=</span><span class="method-args">(regexp)</span>
175
175
  </a>
176
176
  </div>
177
177
 
178
178
  <div class="method-description">
179
179
  <p><a class="source-toggle" href="#"
180
- onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
181
- <div class="method-source-code" id="M000036-source">
180
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
181
+ <div class="method-source-code" id="M000072-source">
182
182
  <pre>
183
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 735</span>
183
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 894</span>
184
184
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fetch_pattern=</span>(<span class="ruby-identifier">regexp</span>)
185
185
  <span class="ruby-ivar">@@fetch_pattern</span> = <span class="ruby-identifier">regexp</span>
186
186
  <span class="ruby-keyword kw">end</span>
@@ -191,21 +191,21 @@ format, not html format.
191
191
 
192
192
  <h3 class="section-bar">Public Instance methods</h3>
193
193
 
194
- <div id="method-M000035" class="method-detail">
195
- <a name="M000035"></a>
194
+ <div id="method-M000071" class="method-detail">
195
+ <a name="M000071"></a>
196
196
 
197
197
  <div class="method-heading">
198
- <a href="#M000035" class="method-signature">
198
+ <a href="#M000071" class="method-signature">
199
199
  <span class="method-name">convert</span><span class="method-args">(input, filename='')</span>
200
200
  </a>
201
201
  </div>
202
202
 
203
203
  <div class="method-description">
204
204
  <p><a class="source-toggle" href="#"
205
- onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
206
- <div class="method-source-code" id="M000035-source">
205
+ onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
206
+ <div class="method-source-code" id="M000071-source">
207
207
  <pre>
208
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 715</span>
208
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 874</span>
209
209
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-value str">''</span>)
210
210
  <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">filename</span>)
211
211
  <span class="ruby-identifier">stmt_list</span> = []
@@ -224,11 +224,11 @@ format, not html format.
224
224
 
225
225
  <h3 class="section-bar">Protected Instance methods</h3>
226
226
 
227
- <div id="method-M000034" class="method-detail">
228
- <a name="M000034"></a>
227
+ <div id="method-M000070" class="method-detail">
228
+ <a name="M000070"></a>
229
229
 
230
230
  <div class="method-heading">
231
- <a href="#M000034" class="method-signature">
231
+ <a href="#M000070" class="method-signature">
232
232
  <span class="method-name">reset</span><span class="method-args">(input, filename)</span>
233
233
  </a>
234
234
  </div>
@@ -238,10 +238,10 @@ format, not html format.
238
238
  called from convert() and initialize converter object
239
239
  </p>
240
240
  <p><a class="source-toggle" href="#"
241
- onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
242
- <div class="method-source-code" id="M000034-source">
241
+ onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
242
+ <div class="method-source-code" id="M000070-source">
243
243
  <pre>
244
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 702</span>
244
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 861</span>
245
245
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">filename</span>)
246
246
  <span class="ruby-ivar">@scanner</span> = <span class="ruby-constant">StringScanner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">input</span>)
247
247
  <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
@@ -93,13 +93,13 @@ target code (eRuby, PHP, &#8230;)
93
93
  <h3 class="section-bar">Methods</h3>
94
94
 
95
95
  <div class="name-list">
96
- <a href="#M000096">get_class</a>&nbsp;&nbsp;
97
- <a href="#M000095">register_class</a>&nbsp;&nbsp;
98
- <a href="#M000090">translate</a>&nbsp;&nbsp;
99
- <a href="#M000093">translate_native_expr</a>&nbsp;&nbsp;
100
- <a href="#M000091">translate_native_stmt</a>&nbsp;&nbsp;
101
- <a href="#M000092">translate_print_stmt</a>&nbsp;&nbsp;
102
- <a href="#M000094">translate_string</a>&nbsp;&nbsp;
96
+ <a href="#M000138">get_class</a>&nbsp;&nbsp;
97
+ <a href="#M000137">register_class</a>&nbsp;&nbsp;
98
+ <a href="#M000132">translate</a>&nbsp;&nbsp;
99
+ <a href="#M000135">translate_native_expr</a>&nbsp;&nbsp;
100
+ <a href="#M000133">translate_native_stmt</a>&nbsp;&nbsp;
101
+ <a href="#M000134">translate_print_stmt</a>&nbsp;&nbsp;
102
+ <a href="#M000136">translate_string</a>&nbsp;&nbsp;
103
103
  </div>
104
104
  </div>
105
105
 
@@ -121,19 +121,19 @@ target code (eRuby, PHP, &#8230;)
121
121
  <div id="methods">
122
122
  <h3 class="section-bar">Public Class methods</h3>
123
123
 
124
- <div id="method-M000096" class="method-detail">
125
- <a name="M000096"></a>
124
+ <div id="method-M000138" class="method-detail">
125
+ <a name="M000138"></a>
126
126
 
127
127
  <div class="method-heading">
128
- <a href="#M000096" class="method-signature">
128
+ <a href="#M000138" class="method-signature">
129
129
  <span class="method-name">get_class</span><span class="method-args">(lang)</span>
130
130
  </a>
131
131
  </div>
132
132
 
133
133
  <div class="method-description">
134
134
  <p><a class="source-toggle" href="#"
135
- onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000096-source">
135
+ onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
136
+ <div class="method-source-code" id="M000138-source">
137
137
  <pre>
138
138
  <span class="ruby-comment cmt"># File kwartz/translator.rb, line 66</span>
139
139
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_class</span>(<span class="ruby-identifier">lang</span>)
@@ -144,19 +144,19 @@ target code (eRuby, PHP, &#8230;)
144
144
  </div>
145
145
  </div>
146
146
 
147
- <div id="method-M000095" class="method-detail">
148
- <a name="M000095"></a>
147
+ <div id="method-M000137" class="method-detail">
148
+ <a name="M000137"></a>
149
149
 
150
150
  <div class="method-heading">
151
- <a href="#M000095" class="method-signature">
151
+ <a href="#M000137" class="method-signature">
152
152
  <span class="method-name">register_class</span><span class="method-args">(lang, klass)</span>
153
153
  </a>
154
154
  </div>
155
155
 
156
156
  <div class="method-description">
157
157
  <p><a class="source-toggle" href="#"
158
- onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
159
- <div class="method-source-code" id="M000095-source">
158
+ onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
159
+ <div class="method-source-code" id="M000137-source">
160
160
  <pre>
161
161
  <span class="ruby-comment cmt"># File kwartz/translator.rb, line 61</span>
162
162
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">register_class</span>(<span class="ruby-identifier">lang</span>, <span class="ruby-identifier">klass</span>)
@@ -169,11 +169,11 @@ target code (eRuby, PHP, &#8230;)
169
169
 
170
170
  <h3 class="section-bar">Public Instance methods</h3>
171
171
 
172
- <div id="method-M000090" class="method-detail">
173
- <a name="M000090"></a>
172
+ <div id="method-M000132" class="method-detail">
173
+ <a name="M000132"></a>
174
174
 
175
175
  <div class="method-heading">
176
- <a href="#M000090" class="method-signature">
176
+ <a href="#M000132" class="method-signature">
177
177
  <span class="method-name">translate</span><span class="method-args">(stmt_list)</span>
178
178
  </a>
179
179
  </div>
@@ -184,8 +184,8 @@ target code (eRuby, PHP, &#8230;)
184
184
  String and return it
185
185
  </p>
186
186
  <p><a class="source-toggle" href="#"
187
- onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
188
- <div class="method-source-code" id="M000090-source">
187
+ onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
188
+ <div class="method-source-code" id="M000132-source">
189
189
  <pre>
190
190
  <span class="ruby-comment cmt"># File kwartz/translator.rb, line 23</span>
191
191
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate</span>(<span class="ruby-identifier">stmt_list</span>)
@@ -196,11 +196,11 @@ String and return it
196
196
  </div>
197
197
  </div>
198
198
 
199
- <div id="method-M000093" class="method-detail">
200
- <a name="M000093"></a>
199
+ <div id="method-M000135" class="method-detail">
200
+ <a name="M000135"></a>
201
201
 
202
202
  <div class="method-heading">
203
- <a href="#M000093" class="method-signature">
203
+ <a href="#M000135" class="method-signature">
204
204
  <span class="method-name">translate_native_expr</span><span class="method-args">(expr)</span>
205
205
  </a>
206
206
  </div>
@@ -211,8 +211,8 @@ String and return it
211
211
  using visitor pattern
212
212
  </p>
213
213
  <p><a class="source-toggle" href="#"
214
- onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
215
- <div class="method-source-code" id="M000093-source">
214
+ onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
215
+ <div class="method-source-code" id="M000135-source">
216
216
  <pre>
217
217
  <span class="ruby-comment cmt"># File kwartz/translator.rb, line 41</span>
218
218
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate_native_expr</span>(<span class="ruby-identifier">expr</span>)
@@ -223,11 +223,11 @@ using visitor pattern
223
223
  </div>
224
224
  </div>
225
225
 
226
- <div id="method-M000091" class="method-detail">
227
- <a name="M000091"></a>
226
+ <div id="method-M000133" class="method-detail">
227
+ <a name="M000133"></a>
228
228
 
229
229
  <div class="method-heading">
230
- <a href="#M000091" class="method-signature">
230
+ <a href="#M000133" class="method-signature">
231
231
  <span class="method-name">translate_native_stmt</span><span class="method-args">(stmt)</span>
232
232
  </a>
233
233
  </div>
@@ -238,8 +238,8 @@ using visitor pattern
238
238
  using visitor pattern
239
239
  </p>
240
240
  <p><a class="source-toggle" href="#"
241
- onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
242
- <div class="method-source-code" id="M000091-source">
241
+ onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
242
+ <div class="method-source-code" id="M000133-source">
243
243
  <pre>
244
244
  <span class="ruby-comment cmt"># File kwartz/translator.rb, line 29</span>
245
245
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate_native_stmt</span>(<span class="ruby-identifier">stmt</span>)
@@ -250,11 +250,11 @@ using visitor pattern
250
250
  </div>
251
251
  </div>
252
252
 
253
- <div id="method-M000092" class="method-detail">
254
- <a name="M000092"></a>
253
+ <div id="method-M000134" class="method-detail">
254
+ <a name="M000134"></a>
255
255
 
256
256
  <div class="method-heading">
257
- <a href="#M000092" class="method-signature">
257
+ <a href="#M000134" class="method-signature">
258
258
  <span class="method-name">translate_print_stmt</span><span class="method-args">(stmt)</span>
259
259
  </a>
260
260
  </div>
@@ -265,8 +265,8 @@ using visitor pattern
265
265
  using visitor pattern
266
266
  </p>
267
267
  <p><a class="source-toggle" href="#"
268
- onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
269
- <div class="method-source-code" id="M000092-source">
268
+ onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
269
+ <div class="method-source-code" id="M000134-source">
270
270
  <pre>
271
271
  <span class="ruby-comment cmt"># File kwartz/translator.rb, line 35</span>
272
272
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate_print_stmt</span>(<span class="ruby-identifier">stmt</span>)
@@ -277,11 +277,11 @@ using visitor pattern
277
277
  </div>
278
278
  </div>
279
279
 
280
- <div id="method-M000094" class="method-detail">
281
- <a name="M000094"></a>
280
+ <div id="method-M000136" class="method-detail">
281
+ <a name="M000136"></a>
282
282
 
283
283
  <div class="method-heading">
284
- <a href="#M000094" class="method-signature">
284
+ <a href="#M000136" class="method-signature">
285
285
  <span class="method-name">translate_string</span><span class="method-args">(str)</span>
286
286
  </a>
287
287
  </div>
@@ -291,8 +291,8 @@ using visitor pattern
291
291
  .[abstract] translate String using visitor pattern
292
292
  </p>
293
293
  <p><a class="source-toggle" href="#"
294
- onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
295
- <div class="method-source-code" id="M000094-source">
294
+ onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
295
+ <div class="method-source-code" id="M000136-source">
296
296
  <pre>
297
297
  <span class="ruby-comment cmt"># File kwartz/translator.rb, line 47</span>
298
298
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate_string</span>(<span class="ruby-identifier">str</span>)