kwartz 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +36 -1
- data/LGPL +504 -0
- data/README.txt +16 -2
- data/bin/kwartz +1 -1
- data/doc-api/classes/Kwartz.html +47 -1
- data/doc-api/classes/Kwartz/Assertion.html +6 -6
- data/doc-api/classes/Kwartz/AssertionError.html +6 -6
- data/doc-api/classes/Kwartz/AttrInfo.html +42 -42
- data/doc-api/classes/Kwartz/BaseError.html +12 -12
- data/doc-api/classes/Kwartz/BaseTranslator.html +210 -43
- data/doc-api/classes/Kwartz/CharacterType.html +24 -24
- data/doc-api/classes/Kwartz/CommandOptionError.html +7 -7
- data/doc-api/classes/Kwartz/CommandOptions.html +49 -49
- data/doc-api/classes/Kwartz/Config.html +6 -1
- data/doc-api/classes/Kwartz/ConvertError.html +14 -14
- data/doc-api/classes/Kwartz/Converter.html +31 -30
- data/doc-api/classes/Kwartz/CssStyleParser.html +79 -57
- data/doc-api/classes/Kwartz/Defun.html +313 -0
- data/doc-api/classes/Kwartz/DocumentRuleset.html +58 -58
- data/doc-api/classes/Kwartz/ElementExpander.html +32 -32
- data/doc-api/classes/Kwartz/ElementInfo.html +29 -29
- data/doc-api/classes/Kwartz/ElementRuleset.html +126 -96
- data/doc-api/classes/Kwartz/EperlHandler.html +108 -84
- data/doc-api/classes/Kwartz/EperlTranslator.html +7 -7
- data/doc-api/classes/Kwartz/ErubisHandler.html +2 -2
- data/doc-api/classes/Kwartz/ErubisTranslator.html +8 -8
- data/doc-api/classes/Kwartz/ErubyHandler.html +2 -220
- data/doc-api/classes/Kwartz/ErubyTranslator.html +7 -7
- data/doc-api/classes/Kwartz/ExpandStatement.html +20 -20
- data/doc-api/classes/Kwartz/Handler.html +122 -117
- data/doc-api/classes/Kwartz/HandlerArgument.html +215 -0
- data/doc-api/classes/Kwartz/Helper.html +112 -0
- data/doc-api/classes/Kwartz/Helper/ActionViewHelper.html +221 -0
- data/doc-api/classes/Kwartz/Helper/RailsTemplate.html +630 -0
- data/doc-api/classes/Kwartz/JstlHandler.html +208 -193
- data/doc-api/classes/Kwartz/JstlTranslator.html +15 -15
- data/doc-api/classes/Kwartz/KwartzError.html +6 -6
- data/doc-api/classes/Kwartz/Main.html +39 -23
- data/doc-api/classes/Kwartz/NativeExpression.html +18 -18
- data/doc-api/classes/Kwartz/NativeStatement.html +25 -25
- data/doc-api/classes/Kwartz/Node.html +6 -6
- data/doc-api/classes/Kwartz/PIErubisHandler.html +113 -0
- data/doc-api/classes/Kwartz/PIErubisTranslator.html +200 -0
- data/doc-api/classes/Kwartz/ParseError.html +6 -6
- data/doc-api/classes/Kwartz/PhpHandler.html +102 -83
- data/doc-api/classes/Kwartz/PhpTranslator.html +14 -14
- data/doc-api/classes/Kwartz/PresentationLogicParser.html +136 -128
- data/doc-api/classes/Kwartz/PrintStatement.html +19 -19
- data/doc-api/classes/Kwartz/RailsHandler.html +121 -118
- data/doc-api/classes/Kwartz/RailsTranslator.html +7 -7
- data/doc-api/classes/Kwartz/RubyHandler.html +349 -0
- data/doc-api/classes/Kwartz/RubyStyleParser.html +85 -85
- data/doc-api/classes/Kwartz/RubyTranslator.html +218 -0
- data/doc-api/classes/Kwartz/StatementHelper.html +479 -0
- data/doc-api/classes/Kwartz/StrutsTranslator.html +12 -12
- data/doc-api/classes/Kwartz/TagInfo.html +28 -28
- data/doc-api/classes/Kwartz/TextConverter.html +28 -28
- data/doc-api/classes/Kwartz/Translator.html +42 -42
- data/doc-api/classes/Kwartz/Util.html +284 -0
- data/doc-api/created.rid +1 -1
- data/doc-api/files/__/README_txt.html +30 -3
- data/doc-api/files/kwartz/assert_rb.html +1 -1
- data/doc-api/files/kwartz/binding/eperl_rb.html +2 -2
- data/doc-api/files/kwartz/binding/erubis_rb.html +3 -3
- data/doc-api/files/kwartz/binding/eruby_rb.html +3 -2
- data/doc-api/files/kwartz/binding/jstl_rb.html +2 -2
- data/doc-api/files/kwartz/binding/php_rb.html +2 -2
- data/doc-api/files/kwartz/binding/pierubis_rb.html +116 -0
- data/doc-api/files/kwartz/binding/rails_rb.html +2 -2
- data/doc-api/files/kwartz/binding/ruby_rb.html +115 -0
- data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
- data/doc-api/files/kwartz/config_rb.html +2 -2
- data/doc-api/files/kwartz/converter_rb.html +3 -2
- data/doc-api/files/kwartz/defun_rb.html +116 -0
- data/doc-api/files/kwartz/error_rb.html +1 -1
- data/doc-api/files/kwartz/helper/rails_rb.html +123 -0
- data/doc-api/files/kwartz/main_rb.html +5 -2
- data/doc-api/files/kwartz/node_rb.html +2 -2
- data/doc-api/files/kwartz/parser_rb.html +2 -2
- data/doc-api/files/kwartz/translator_rb.html +2 -2
- data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
- data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
- data/doc-api/files/kwartz/util_rb.html +107 -0
- data/doc-api/files/kwartz_rb.html +3 -2
- data/doc-api/fr_class_index.html +11 -0
- data/doc-api/fr_file_index.html +5 -0
- data/doc-api/fr_method_index.html +242 -190
- data/doc/p-pattern.html +94 -94
- data/doc/reference.html +847 -612
- data/doc/users-guide.html +744 -241
- data/examples/rails1/README +2 -2
- data/examples/rails1/application_helper.rb +2 -27
- data/examples/rails1/link_to.plogic +5 -5
- data/examples/rails1/list.plogic +2 -2
- data/examples/rails2/app/controllers/application.rb +14 -0
- data/examples/rails2/app/controllers/groups_controller.rb +47 -0
- data/examples/rails2/app/controllers/members_controller.rb +56 -0
- data/examples/rails2/app/helpers/application_helper.rb +6 -0
- data/examples/rails2/app/helpers/groups_helper.rb +2 -0
- data/examples/rails2/app/helpers/members_helper.rb +2 -0
- data/examples/rails2/app/models/group.rb +2 -0
- data/examples/rails2/app/models/member.rb +3 -0
- data/examples/rails2/app/views/groups/_form.html +30 -0
- data/examples/rails2/app/views/groups/_form.plogic +11 -0
- data/examples/rails2/app/views/groups/_link.plogic +19 -0
- data/examples/rails2/app/views/groups/_read.plogic +7 -0
- data/examples/rails2/app/views/groups/edit.cfg.yaml +2 -0
- data/examples/rails2/app/views/groups/edit.html +26 -0
- data/examples/rails2/app/views/groups/edit.plogic +9 -0
- data/examples/rails2/app/views/groups/list.html +48 -0
- data/examples/rails2/app/views/groups/list.plogic +32 -0
- data/examples/rails2/app/views/groups/new.cfg.yaml +2 -0
- data/examples/rails2/app/views/groups/new.html +27 -0
- data/examples/rails2/app/views/groups/new.plogic +9 -0
- data/examples/rails2/app/views/groups/show.html +27 -0
- data/examples/rails2/app/views/groups/show.plogic +2 -0
- data/examples/rails2/app/views/layouts/groups.html +23 -0
- data/examples/rails2/app/views/layouts/groups.plogic +11 -0
- data/examples/rails2/app/views/layouts/members.html +23 -0
- data/examples/rails2/app/views/layouts/members.plogic +11 -0
- data/examples/rails2/app/views/layouts/members2.html +24 -0
- data/examples/rails2/app/views/layouts/members2.plogic +11 -0
- data/examples/rails2/app/views/members/_form.plogic +27 -0
- data/examples/rails2/app/views/members/_link.plogic +19 -0
- data/examples/rails2/app/views/members/_read.plogic +29 -0
- data/examples/rails2/app/views/members/edit.cfg.yaml +6 -0
- data/examples/rails2/app/views/members/edit.html +27 -0
- data/examples/rails2/app/views/members/edit.plogic +10 -0
- data/examples/rails2/app/views/members/list.html +53 -0
- data/examples/rails2/app/views/members/list.plogic +32 -0
- data/examples/rails2/app/views/members/new.html +61 -0
- data/examples/rails2/app/views/members/new.plogic +17 -0
- data/examples/rails2/app/views/members/show.html +41 -0
- data/examples/rails2/app/views/members/show.plogic +3 -0
- data/examples/rails2/db/create-tables.mysql.sql +27 -0
- data/examples/rails2/db/create-tables.pgsql.sql +27 -0
- data/examples/rails2/db/insert-data.sql +21 -0
- data/examples/rails2/db/tabledef.yaml +51 -0
- data/kwartz.gemspec +4 -4
- data/lib/kwartz.rb +10 -2
- data/lib/kwartz/assert.rb +1 -1
- data/lib/kwartz/binding/eperl.rb +85 -61
- data/lib/kwartz/binding/erubis.rb +6 -8
- data/lib/kwartz/binding/eruby.rb +5 -120
- data/lib/kwartz/binding/jstl.rb +116 -101
- data/lib/kwartz/binding/php.rb +79 -60
- data/lib/kwartz/binding/pierubis.rb +58 -0
- data/lib/kwartz/binding/rails.rb +45 -42
- data/lib/kwartz/binding/ruby.rb +193 -0
- data/lib/kwartz/binding/struts.rb +1 -1
- data/lib/kwartz/config.rb +4 -3
- data/lib/kwartz/converter.rb +231 -68
- data/lib/kwartz/defun.rb +126 -0
- data/lib/kwartz/error.rb +1 -1
- data/lib/kwartz/helper/rails.rb +437 -0
- data/lib/kwartz/main.rb +30 -38
- data/lib/kwartz/node.rb +46 -31
- data/lib/kwartz/parser.rb +43 -15
- data/lib/kwartz/translator.rb +104 -6
- data/lib/kwartz/util.rb +113 -0
- data/lib/kwartz/util/assert-text-equal.rb +1 -1
- data/lib/kwartz/util/testcase-helper.rb +26 -8
- data/test/test-compile.rb +3 -3
- data/test/test-compile.yaml +135 -5
- data/test/test-converter.rb +16 -8
- data/test/test-converter.yaml +307 -76
- data/test/test-directives.rb +1 -1
- data/test/test-directives.yaml +964 -979
- data/test/test-main.rb +61 -146
- data/test/test-main.yaml +235 -0
- data/test/test-parser.rb +10 -12
- data/test/test-parser.yaml +484 -326
- data/test/test-rails.rb +1 -1
- data/test/test-rails.yaml +37 -37
- data/test/test-ruleset.rb +1 -1
- data/test/test-ruleset.yaml +34 -40
- data/test/test.rb +1 -1
- metadata +82 -3
- 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="#
|
98
|
-
<a href="#
|
97
|
+
<a href="#M000186">new</a>
|
98
|
+
<a href="#M000187">translate_native_expr</a>
|
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-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000186" class="method-detail">
|
121
|
+
<a name="M000186"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
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('
|
132
|
-
<div class="method-source-code" id="
|
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-
|
149
|
-
<a name="
|
148
|
+
<div id="method-M000187" class="method-detail">
|
149
|
+
<a name="M000187"></a>
|
150
150
|
|
151
151
|
<div class="method-heading">
|
152
|
-
<a href="#
|
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('
|
160
|
-
<div class="method-source-code" id="
|
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="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
89
|
+
<a href="#M000202">_inspect</a>
|
90
|
+
<a href="#M000199">new</a>
|
91
|
+
<a href="#M000201">rebuild_tag_text</a>
|
92
|
+
<a href="#M000200">tagname=</a>
|
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-
|
191
|
-
<a name="
|
190
|
+
<div id="method-M000199" class="method-detail">
|
191
|
+
<a name="M000199"></a>
|
192
192
|
|
193
193
|
<div class="method-heading">
|
194
|
-
<a href="#
|
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('
|
202
|
-
<div class="method-source-code" id="
|
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
|
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-
|
225
|
-
<a name="
|
224
|
+
<div id="method-M000202" class="method-detail">
|
225
|
+
<a name="M000202"></a>
|
226
226
|
|
227
227
|
<div class="method-heading">
|
228
|
-
<a href="#
|
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('
|
236
|
-
<div class="method-source-code" id="
|
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
|
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-
|
248
|
-
<a name="
|
247
|
+
<div id="method-M000201" class="method-detail">
|
248
|
+
<a name="M000201"></a>
|
249
249
|
|
250
250
|
<div class="method-heading">
|
251
|
-
<a href="#
|
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('
|
259
|
-
<div class="method-source-code" id="
|
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
|
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-
|
278
|
-
<a name="
|
277
|
+
<div id="method-M000200" class="method-detail">
|
278
|
+
<a name="M000200"></a>
|
279
279
|
|
280
280
|
<div class="method-heading">
|
281
|
-
<a href="#
|
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('
|
289
|
-
<div class="method-source-code" id="
|
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
|
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="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
100
|
+
<a href="#M000071">convert</a>
|
101
|
+
<a href="#M000072">fetch_pattern=</a>
|
102
|
+
<a href="#M000069">new</a>
|
103
|
+
<a href="#M000070">reset</a>
|
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-
|
144
|
-
<a name="
|
143
|
+
<div id="method-M000069" class="method-detail">
|
144
|
+
<a name="M000069"></a>
|
145
145
|
|
146
146
|
<div class="method-heading">
|
147
|
-
<a href="#
|
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('
|
155
|
-
<div class="method-source-code" id="
|
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
|
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-
|
170
|
-
<a name="
|
169
|
+
<div id="method-M000072" class="method-detail">
|
170
|
+
<a name="M000072"></a>
|
171
171
|
|
172
172
|
<div class="method-heading">
|
173
|
-
<a href="#
|
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('
|
181
|
-
<div class="method-source-code" id="
|
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
|
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-
|
195
|
-
<a name="
|
194
|
+
<div id="method-M000071" class="method-detail">
|
195
|
+
<a name="M000071"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="#
|
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('
|
206
|
-
<div class="method-source-code" id="
|
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
|
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-
|
228
|
-
<a name="
|
227
|
+
<div id="method-M000070" class="method-detail">
|
228
|
+
<a name="M000070"></a>
|
229
229
|
|
230
230
|
<div class="method-heading">
|
231
|
-
<a href="#
|
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('
|
242
|
-
<div class="method-source-code" id="
|
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
|
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, …)
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
96
|
+
<a href="#M000138">get_class</a>
|
97
|
+
<a href="#M000137">register_class</a>
|
98
|
+
<a href="#M000132">translate</a>
|
99
|
+
<a href="#M000135">translate_native_expr</a>
|
100
|
+
<a href="#M000133">translate_native_stmt</a>
|
101
|
+
<a href="#M000134">translate_print_stmt</a>
|
102
|
+
<a href="#M000136">translate_string</a>
|
103
103
|
</div>
|
104
104
|
</div>
|
105
105
|
|
@@ -121,19 +121,19 @@ target code (eRuby, PHP, …)
|
|
121
121
|
<div id="methods">
|
122
122
|
<h3 class="section-bar">Public Class methods</h3>
|
123
123
|
|
124
|
-
<div id="method-
|
125
|
-
<a name="
|
124
|
+
<div id="method-M000138" class="method-detail">
|
125
|
+
<a name="M000138"></a>
|
126
126
|
|
127
127
|
<div class="method-heading">
|
128
|
-
<a href="#
|
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('
|
136
|
-
<div class="method-source-code" id="
|
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, …)
|
|
144
144
|
</div>
|
145
145
|
</div>
|
146
146
|
|
147
|
-
<div id="method-
|
148
|
-
<a name="
|
147
|
+
<div id="method-M000137" class="method-detail">
|
148
|
+
<a name="M000137"></a>
|
149
149
|
|
150
150
|
<div class="method-heading">
|
151
|
-
<a href="#
|
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('
|
159
|
-
<div class="method-source-code" id="
|
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, …)
|
|
169
169
|
|
170
170
|
<h3 class="section-bar">Public Instance methods</h3>
|
171
171
|
|
172
|
-
<div id="method-
|
173
|
-
<a name="
|
172
|
+
<div id="method-M000132" class="method-detail">
|
173
|
+
<a name="M000132"></a>
|
174
174
|
|
175
175
|
<div class="method-heading">
|
176
|
-
<a href="#
|
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, …)
|
|
184
184
|
String and return it
|
185
185
|
</p>
|
186
186
|
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('
|
188
|
-
<div class="method-source-code" id="
|
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-
|
200
|
-
<a name="
|
199
|
+
<div id="method-M000135" class="method-detail">
|
200
|
+
<a name="M000135"></a>
|
201
201
|
|
202
202
|
<div class="method-heading">
|
203
|
-
<a href="#
|
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('
|
215
|
-
<div class="method-source-code" id="
|
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-
|
227
|
-
<a name="
|
226
|
+
<div id="method-M000133" class="method-detail">
|
227
|
+
<a name="M000133"></a>
|
228
228
|
|
229
229
|
<div class="method-heading">
|
230
|
-
<a href="#
|
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('
|
242
|
-
<div class="method-source-code" id="
|
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-
|
254
|
-
<a name="
|
253
|
+
<div id="method-M000134" class="method-detail">
|
254
|
+
<a name="M000134"></a>
|
255
255
|
|
256
256
|
<div class="method-heading">
|
257
|
-
<a href="#
|
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('
|
269
|
-
<div class="method-source-code" id="
|
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-
|
281
|
-
<a name="
|
280
|
+
<div id="method-M000136" class="method-detail">
|
281
|
+
<a name="M000136"></a>
|
282
282
|
|
283
283
|
<div class="method-heading">
|
284
|
-
<a href="#
|
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('
|
295
|
-
<div class="method-source-code" id="
|
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>)
|