mucgly 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.rdoc +8 -0
  3. data/LICENSE +1 -1
  4. data/README.rdoc +160 -130
  5. data/bin/mucgly +4 -217
  6. data/doc/Mucgly.html +24 -82
  7. data/doc/_index.html +5 -153
  8. data/doc/class_list.html +7 -2
  9. data/doc/css/style.css +2 -1
  10. data/doc/file.CHANGELOG.html +16 -8
  11. data/doc/file.README.html +210 -187
  12. data/doc/file_list.html +6 -1
  13. data/doc/frames.html +5 -7
  14. data/doc/index.html +210 -187
  15. data/doc/js/app.js +7 -2
  16. data/doc/js/full_list.js +9 -6
  17. data/doc/method_list.html +7 -686
  18. data/doc/top-level-namespace.html +5 -5
  19. data/ext/mucgly/extconf.rb +11 -0
  20. data/ext/mucgly/mucgly.c +2095 -0
  21. data/lib/version.rb +6 -0
  22. data/test/golden/test_basic.txt +18 -0
  23. data/test/golden/test_specials_cli.txt +11 -0
  24. data/test/golden/test_specials_cmd.txt +36 -0
  25. data/test/result/test_basic.txt +18 -0
  26. data/test/result/test_specials_cli.txt +11 -0
  27. data/test/result/test_specials_cmd.txt +36 -0
  28. data/test/result/test_specials_cmd2.txt +1 -0
  29. data/test/test_basic.rx.txt +10 -6
  30. data/test/test_mucgly.rb +4 -6
  31. data/test/test_specials_cli.rx.txt +4 -4
  32. data/test/test_specials_cmd.rx.txt +5 -5
  33. metadata +45 -63
  34. data/Rakefile +0 -29
  35. data/doc/EasyFile/InOut.html +0 -2097
  36. data/doc/EasyFile/Read.html +0 -1334
  37. data/doc/EasyFile/ReadStack.html +0 -461
  38. data/doc/EasyFile/Stacked.html +0 -411
  39. data/doc/EasyFile/String.html +0 -570
  40. data/doc/EasyFile/Write.html +0 -1084
  41. data/doc/EasyFile/WriteStack.html +0 -305
  42. data/doc/EasyFile.html +0 -155
  43. data/doc/Mucgly/Env.html +0 -1675
  44. data/doc/Mucgly/MucglyFile/ParseState.html +0 -1662
  45. data/doc/Mucgly/MucglyFile/Token.html +0 -529
  46. data/doc/Mucgly/MucglyFile.html +0 -545
  47. data/doc/Mucgly/Separators.html +0 -521
  48. data/lib/easyfile.rb +0 -720
  49. data/lib/mucgly.rb +0 -627
  50. data/test/test_multi.rx.txt +0 -4
@@ -1,411 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: EasyFile::Stacked
8
-
9
- &mdash; Documentation by YARD 0.8.6.1
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../_index.html">Index (S)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../EasyFile.html" title="EasyFile (module)">EasyFile</a></span></span>
36
- &raquo;
37
- <span class="title">Stacked</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: EasyFile::Stacked
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- <dt class="r1">Included in:</dt>
81
- <dd class="r1"><span class='object_link'><a href="ReadStack.html" title="EasyFile::ReadStack (class)">ReadStack</a></span>, <span class='object_link'><a href="WriteStack.html" title="EasyFile::WriteStack (class)">WriteStack</a></span></dd>
82
-
83
-
84
-
85
- <dt class="r2 last">Defined in:</dt>
86
- <dd class="r2 last">lib/easyfile.rb</dd>
87
-
88
- </dl>
89
- <div class="clear"></div>
90
-
91
- <h2>Overview</h2><div class="docstring">
92
- <div class="discussion">
93
-
94
- <p>Stack of files.</p>
95
-
96
-
97
- </div>
98
- </div>
99
- <div class="tags">
100
-
101
-
102
- </div>
103
-
104
-
105
-
106
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
107
- <ul class="summary">
108
-
109
- <li class="public ">
110
- <span class="summary_signature">
111
-
112
- <a href="#stack-instance_method" title="#stack (instance method)">- (Object) <strong>stack</strong> </a>
113
-
114
-
115
-
116
- </span>
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
- <span class="summary_desc"><div class='inline'>
130
- <p>Returns the value of attribute stack.</p>
131
- </div></span>
132
-
133
- </li>
134
-
135
-
136
- </ul>
137
-
138
-
139
-
140
-
141
-
142
- <h2>
143
- Instance Method Summary
144
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
145
- </h2>
146
-
147
- <ul class="summary">
148
-
149
- <li class="public ">
150
- <span class="summary_signature">
151
-
152
- <a href="#method_missing-instance_method" title="#method_missing (instance method)">- (Object) <strong>method_missing</strong>(name, *args, &amp;block) </a>
153
-
154
-
155
-
156
- </span>
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
- <span class="summary_desc"><div class='inline'></div></span>
167
-
168
- </li>
169
-
170
-
171
- <li class="public ">
172
- <span class="summary_signature">
173
-
174
- <a href="#pop-instance_method" title="#pop (instance method)">- (Object) <strong>pop</strong> </a>
175
-
176
-
177
-
178
- (also: #close)
179
-
180
- </span>
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
- <span class="summary_desc"><div class='inline'></div></span>
191
-
192
- </li>
193
-
194
-
195
- <li class="public ">
196
- <span class="summary_signature">
197
-
198
- <a href="#setup-instance_method" title="#setup (instance method)">- (Object) <strong>setup</strong>(first = nil) </a>
199
-
200
-
201
-
202
- </span>
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
- <span class="summary_desc"><div class='inline'></div></span>
213
-
214
- </li>
215
-
216
-
217
- </ul>
218
-
219
-
220
- <div id="method_missing_details" class="method_details_list">
221
- <h2>Dynamic Method Handling</h2>
222
- <p class="notice this">
223
- This class handles dynamic methods through the <tt>method_missing</tt> method
224
-
225
- </p>
226
-
227
- <div class="method_details first">
228
- <h3 class="signature first" id="method_missing-instance_method">
229
-
230
- - (<tt>Object</tt>) <strong>method_missing</strong>(name, *args, &amp;block)
231
-
232
-
233
-
234
-
235
-
236
- </h3><table class="source_code">
237
- <tr>
238
- <td>
239
- <pre class="lines">
240
-
241
-
242
- 667
243
- 668
244
- 669
245
- 670
246
- 671
247
- 672
248
- 673
249
- 674</pre>
250
- </td>
251
- <td>
252
- <pre class="code"><span class="info file"># File 'lib/easyfile.rb', line 667</span>
253
-
254
- <span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span> <span class='rparen'>)</span>
255
- <span class='kw'>if</span> <span class='lbracket'>[</span> <span class='symbol'>:getc</span><span class='comma'>,</span> <span class='symbol'>:gets</span><span class='comma'>,</span> <span class='symbol'>:gets!</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span> <span class='rparen'>)</span>
256
- <span class='kw'>if</span> <span class='ivar'>@stack</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_eof?'>eof?</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@automode</span>
257
- <span class='id identifier rubyid_pop'>pop</span>
258
- <span class='kw'>end</span>
259
- <span class='kw'>end</span>
260
- <span class='ivar'>@stack</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span> <span class='rparen'>)</span>
261
- <span class='kw'>end</span></pre>
262
- </td>
263
- </tr>
264
- </table>
265
- </div>
266
-
267
- </div>
268
-
269
- <div id="instance_attr_details" class="attr_details">
270
- <h2>Instance Attribute Details</h2>
271
-
272
-
273
- <span id="stack=-instance_method"></span>
274
- <div class="method_details first">
275
- <h3 class="signature first" id="stack-instance_method">
276
-
277
- - (<tt>Object</tt>) <strong>stack</strong>
278
-
279
-
280
-
281
-
282
-
283
- </h3><div class="docstring">
284
- <div class="discussion">
285
-
286
- <p>Returns the value of attribute stack</p>
287
-
288
-
289
- </div>
290
- </div>
291
- <div class="tags">
292
-
293
-
294
- </div><table class="source_code">
295
- <tr>
296
- <td>
297
- <pre class="lines">
298
-
299
-
300
- 648
301
- 649
302
- 650</pre>
303
- </td>
304
- <td>
305
- <pre class="code"><span class="info file"># File 'lib/easyfile.rb', line 648</span>
306
-
307
- <span class='kw'>def</span> <span class='id identifier rubyid_stack'>stack</span>
308
- <span class='ivar'>@stack</span>
309
- <span class='kw'>end</span></pre>
310
- </td>
311
- </tr>
312
- </table>
313
- </div>
314
-
315
- </div>
316
-
317
-
318
- <div id="instance_method_details" class="method_details_list">
319
- <h2>Instance Method Details</h2>
320
-
321
-
322
- <div class="method_details first">
323
- <h3 class="signature first" id="pop-instance_method">
324
-
325
- - (<tt>Object</tt>) <strong>pop</strong>
326
-
327
-
328
-
329
- <span class="aliases">Also known as:
330
- <span class="names"><span id='close-instance_method'>close</span></span>
331
- </span>
332
-
333
-
334
-
335
- </h3><table class="source_code">
336
- <tr>
337
- <td>
338
- <pre class="lines">
339
-
340
-
341
- 660
342
- 661
343
- 662
344
- 663
345
- 664
346
- 665</pre>
347
- </td>
348
- <td>
349
- <pre class="code"><span class="info file"># File 'lib/easyfile.rb', line 660</span>
350
-
351
- <span class='kw'>def</span> <span class='id identifier rubyid_pop'>pop</span>
352
- <span class='kw'>if</span> <span class='ivar'>@stack</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>&gt;</span> <span class='int'>1</span>
353
- <span class='ivar'>@stack</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span>
354
- <span class='ivar'>@stack</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
355
- <span class='kw'>end</span>
356
- <span class='kw'>end</span></pre>
357
- </td>
358
- </tr>
359
- </table>
360
- </div>
361
-
362
- <div class="method_details ">
363
- <h3 class="signature " id="setup-instance_method">
364
-
365
- - (<tt>Object</tt>) <strong>setup</strong>(first = nil)
366
-
367
-
368
-
369
-
370
-
371
- </h3><table class="source_code">
372
- <tr>
373
- <td>
374
- <pre class="lines">
375
-
376
-
377
- 652
378
- 653
379
- 654
380
- 655
381
- 656
382
- 657
383
- 658</pre>
384
- </td>
385
- <td>
386
- <pre class="code"><span class="info file"># File 'lib/easyfile.rb', line 652</span>
387
-
388
- <span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span><span class='lparen'>(</span> <span class='id identifier rubyid_first'>first</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
389
- <span class='kw'>if</span> <span class='id identifier rubyid_first'>first</span>
390
- <span class='ivar'>@stack</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_first'>first</span> <span class='rbracket'>]</span>
391
- <span class='kw'>else</span>
392
- <span class='ivar'>@stack</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
393
- <span class='kw'>end</span>
394
- <span class='kw'>end</span></pre>
395
- </td>
396
- </tr>
397
- </table>
398
- </div>
399
-
400
- </div>
401
-
402
- </div>
403
-
404
- <div id="footer">
405
- Generated on Wed Jan 15 19:44:10 2014 by
406
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
407
- 0.8.6.1 (ruby-1.9.3).
408
- </div>
409
-
410
- </body>
411
- </html>