linmeric 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +51 -0
- data/Rakefile +10 -0
- data/bin/help/Help.rb +184 -0
- data/bin/help/Help_inst.rb +244 -0
- data/bin/linguide +23 -0
- data/bin/linmeric +36 -70
- data/doc/Archive.html +352 -0
- data/doc/Calculator/Evaluator.html +477 -0
- data/doc/Calculator/Lexer.html +186 -0
- data/doc/Calculator/Token.html +257 -0
- data/doc/Calculator.html +181 -0
- data/doc/Dim.html +257 -0
- data/doc/Filename.html +246 -0
- data/doc/Fixnum.html +253 -0
- data/doc/Float.html +253 -0
- data/doc/Function.html +784 -0
- data/doc/InputError.html +102 -0
- data/doc/Instructions_en.txt +6 -7
- data/doc/Instructions_it.txt +6 -9
- data/doc/Integrators.html +436 -0
- data/doc/LU.html +435 -0
- data/doc/Lexer.html +261 -0
- data/doc/Linmeric.html +109 -0
- data/doc/Listener.html +605 -0
- data/doc/Matrix.html +1719 -0
- data/doc/MyArgError.html +102 -0
- data/doc/NilClass.html +202 -0
- data/doc/Numeric.html +251 -0
- data/doc/Parser.html +389 -0
- data/doc/PrintError.html +622 -0
- data/doc/README_md.html +142 -0
- data/doc/Scp.html +530 -0
- data/doc/Sizer.html +652 -0
- data/doc/String.html +540 -0
- data/doc/Token.html +341 -0
- data/doc/Tool.html +394 -0
- data/doc/created.rid +18 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +190 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +9404 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +834 -0
- data/lib/linmeric/Archive.rb +22 -1
- data/lib/linmeric/Calculator.rb +252 -0
- data/lib/linmeric/CnGal_Matrix_class.rb +130 -49
- data/lib/linmeric/CnGal_new_classes.rb +139 -37
- data/lib/linmeric/CnGal_tools.rb +23 -40
- data/lib/linmeric/Error_print.rb +35 -1
- data/lib/linmeric/Function_class.rb +70 -11
- data/lib/linmeric/Integrators.rb +81 -35
- data/lib/linmeric/LU.rb +26 -5
- data/lib/linmeric/Lexer.rb +19 -1
- data/lib/linmeric/Listener.rb +25 -5
- data/lib/linmeric/Parser.rb +23 -1
- data/lib/linmeric/Scopify.rb +52 -31
- data/lib/linmeric/Sizer.rb +43 -10
- data/lib/linmeric/Token.rb +23 -4
- data/lib/linmeric/version.rb +3 -0
- data/lib/linmeric.rb +10 -8
- data/lib/linmeric_bin.rb +12 -0
- metadata +126 -22
- data/doc/Instructions_en.html +0 -231
- data/doc/Instructions_it.html +0 -231
- data/doc/README_en.html +0 -177
- data/doc/README_en.txt +0 -30
- data/doc/README_it.html +0 -187
- data/doc/README_it.txt +0 -32
data/doc/PrintError.html
ADDED
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>module PrintError - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<script type="text/javascript">
|
|
10
|
+
var rdoc_rel_prefix = "./";
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script src="./js/jquery.js"></script>
|
|
14
|
+
<script src="./js/darkfish.js"></script>
|
|
15
|
+
|
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<body id="top" role="document" class="module">
|
|
22
|
+
<nav role="navigation">
|
|
23
|
+
<div id="project-navigation">
|
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
25
|
+
<h2>
|
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
|
27
|
+
</h2>
|
|
28
|
+
|
|
29
|
+
<div id="table-of-contents-navigation">
|
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
38
|
+
<div id="search-field-wrapper">
|
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
|
46
|
+
aria-busy="false" aria-expanded="false"
|
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
48
|
+
</form>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<div id="class-metadata">
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
<!-- Method Quickref -->
|
|
61
|
+
<div id="method-list-section" class="nav-section">
|
|
62
|
+
<h3>Methods</h3>
|
|
63
|
+
|
|
64
|
+
<ul class="link-list" role="directory">
|
|
65
|
+
|
|
66
|
+
<li ><a href="#method-c-default">::default</a>
|
|
67
|
+
|
|
68
|
+
<li ><a href="#method-c-missing">::missing</a>
|
|
69
|
+
|
|
70
|
+
<li ><a href="#method-c-missing_expression_after_equal">::missing_expression_after_equal</a>
|
|
71
|
+
|
|
72
|
+
<li ><a href="#method-c-missing_general_string">::missing_general_string</a>
|
|
73
|
+
|
|
74
|
+
<li ><a href="#method-c-missing_integ_range">::missing_integ_range</a>
|
|
75
|
+
|
|
76
|
+
<li ><a href="#method-c-missmatch">::missmatch</a>
|
|
77
|
+
|
|
78
|
+
<li ><a href="#method-c-no_final_quotes">::no_final_quotes</a>
|
|
79
|
+
|
|
80
|
+
<li ><a href="#method-c-numPoint_missing">::numPoint_missing</a>
|
|
81
|
+
|
|
82
|
+
<li ><a href="#method-c-print">::print</a>
|
|
83
|
+
|
|
84
|
+
<li ><a href="#method-c-reduced">::reduced</a>
|
|
85
|
+
|
|
86
|
+
<li ><a href="#method-c-unexpected_token_in_solve">::unexpected_token_in_solve</a>
|
|
87
|
+
|
|
88
|
+
<li ><a href="#method-c-unknown">::unknown</a>
|
|
89
|
+
|
|
90
|
+
</ul>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
</div>
|
|
94
|
+
</nav>
|
|
95
|
+
|
|
96
|
+
<main role="main" aria-labelledby="module-PrintError">
|
|
97
|
+
<h1 id="module-PrintError" class="module">
|
|
98
|
+
module PrintError
|
|
99
|
+
</h1>
|
|
100
|
+
|
|
101
|
+
<section class="description">
|
|
102
|
+
|
|
103
|
+
<p>This modue provides a set of error messages for linmeric</p>
|
|
104
|
+
<dl class="rdoc-list note-list"><dt>Author
|
|
105
|
+
<dd>
|
|
106
|
+
<p>Massimiliano Dal Mas (<a
|
|
107
|
+
href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
108
|
+
</dd><dt>License
|
|
109
|
+
<dd>
|
|
110
|
+
<p>Distributed under MIT license</p>
|
|
111
|
+
</dd></dl>
|
|
112
|
+
|
|
113
|
+
</section>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
|
129
|
+
<header>
|
|
130
|
+
<h3>Public Class Methods</h3>
|
|
131
|
+
</header>
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
<div id="method-c-default" class="method-detail ">
|
|
135
|
+
|
|
136
|
+
<div class="method-heading">
|
|
137
|
+
<span class="method-name">default</span><span
|
|
138
|
+
class="method-args">(token,expression)</span>
|
|
139
|
+
|
|
140
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
141
|
+
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<div class="method-description">
|
|
146
|
+
|
|
147
|
+
<ul><li>
|
|
148
|
+
<p>*<strong>argument</strong>*: unexpected <a href="Token.html">Token</a></p>
|
|
149
|
+
</li><li>
|
|
150
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
151
|
+
found</p>
|
|
152
|
+
</li></ul>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
<div class="method-source-code" id="default-source">
|
|
158
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 24</span>
|
|
159
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">default</span>(<span class="ruby-identifier">token</span>,<span class="ruby-identifier">expression</span>)
|
|
160
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-node">" Sintax Error: unexpected #{token.attribute} token '#{token.me}' found"</span>
|
|
161
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">token</span>.<span class="ruby-identifier">position</span>)
|
|
162
|
+
<span class="ruby-keyword">end</span></pre>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<div id="method-c-missing" class="method-detail ">
|
|
174
|
+
|
|
175
|
+
<div class="method-heading">
|
|
176
|
+
<span class="method-name">missing</span><span
|
|
177
|
+
class="method-args">(token,expression)</span>
|
|
178
|
+
|
|
179
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
180
|
+
|
|
181
|
+
</div>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
<div class="method-description">
|
|
185
|
+
|
|
186
|
+
<ul><li>
|
|
187
|
+
<p>*<strong>argument</strong>*: <a href="Token.html">Token</a> arguments are
|
|
188
|
+
missing for</p>
|
|
189
|
+
</li><li>
|
|
190
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
191
|
+
found</p>
|
|
192
|
+
</li></ul>
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<div class="method-source-code" id="missing-source">
|
|
198
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 53</span>
|
|
199
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">missing</span>(<span class="ruby-identifier">token</span>,<span class="ruby-identifier">expression</span>)
|
|
200
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-node">" Sintax Error: missing argument for '#{token.me}' #{token.attribute}"</span>
|
|
201
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">token</span>.<span class="ruby-identifier">position</span>)
|
|
202
|
+
<span class="ruby-keyword">end</span></pre>
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
<div id="method-c-missing_expression_after_equal" class="method-detail ">
|
|
214
|
+
|
|
215
|
+
<div class="method-heading">
|
|
216
|
+
<span class="method-name">missing_expression_after_equal</span><span
|
|
217
|
+
class="method-args">(pos,expression)</span>
|
|
218
|
+
|
|
219
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
220
|
+
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
<div class="method-description">
|
|
225
|
+
|
|
226
|
+
<ul><li>
|
|
227
|
+
<p>*<strong>argument</strong>*: position where the error is located</p>
|
|
228
|
+
</li><li>
|
|
229
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
230
|
+
found</p>
|
|
231
|
+
</li></ul>
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
<div class="method-source-code" id="missing_expression_after_equal-source">
|
|
237
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 81</span>
|
|
238
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">missing_expression_after_equal</span>(<span class="ruby-identifier">pos</span>,<span class="ruby-identifier">expression</span>)
|
|
239
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-string">" Sintax Error: missing expression after EQUAL operator"</span>
|
|
240
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">pos</span>)
|
|
241
|
+
<span class="ruby-keyword">end</span></pre>
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
<div id="method-c-missing_general_string" class="method-detail ">
|
|
253
|
+
|
|
254
|
+
<div class="method-heading">
|
|
255
|
+
<span class="method-name">missing_general_string</span><span
|
|
256
|
+
class="method-args">(position,expression)</span>
|
|
257
|
+
|
|
258
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
259
|
+
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
<div class="method-description">
|
|
264
|
+
|
|
265
|
+
<ul><li>
|
|
266
|
+
<p>*<strong>argument</strong>*: position where the error is located</p>
|
|
267
|
+
</li><li>
|
|
268
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
269
|
+
found</p>
|
|
270
|
+
</li></ul>
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
<div class="method-source-code" id="missing_general_string-source">
|
|
276
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 67</span>
|
|
277
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">missing_general_string</span>(<span class="ruby-identifier">position</span>,<span class="ruby-identifier">expression</span>)
|
|
278
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-string">" Sintax Error: missing agument block"</span>
|
|
279
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">position</span>)
|
|
280
|
+
<span class="ruby-keyword">end</span></pre>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
<div id="method-c-missing_integ_range" class="method-detail ">
|
|
292
|
+
|
|
293
|
+
<div class="method-heading">
|
|
294
|
+
<span class="method-name">missing_integ_range</span><span
|
|
295
|
+
class="method-args">(pos,expression)</span>
|
|
296
|
+
|
|
297
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
298
|
+
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
<div class="method-description">
|
|
303
|
+
|
|
304
|
+
<ul><li>
|
|
305
|
+
<p>*<strong>argument</strong>*: position where the error is located</p>
|
|
306
|
+
</li><li>
|
|
307
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
308
|
+
found</p>
|
|
309
|
+
</li></ul>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
<div class="method-source-code" id="missing_integ_range-source">
|
|
315
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 95</span>
|
|
316
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">missing_integ_range</span>(<span class="ruby-identifier">pos</span>,<span class="ruby-identifier">expression</span>)
|
|
317
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-string">" Sintax Error: missing integration range for 'integ:' method"</span>
|
|
318
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">pos</span>)
|
|
319
|
+
<span class="ruby-keyword">end</span></pre>
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
<div id="method-c-missmatch" class="method-detail ">
|
|
331
|
+
|
|
332
|
+
<div class="method-heading">
|
|
333
|
+
<span class="method-name">missmatch</span><span
|
|
334
|
+
class="method-args">(token,expression,expectation)</span>
|
|
335
|
+
|
|
336
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
337
|
+
|
|
338
|
+
</div>
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
<div class="method-description">
|
|
342
|
+
|
|
343
|
+
<ul><li>
|
|
344
|
+
<p>*<strong>argument</strong>*: missmatched <a href="Token.html">Token</a>
|
|
345
|
+
found</p>
|
|
346
|
+
</li><li>
|
|
347
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
348
|
+
found</p>
|
|
349
|
+
</li><li>
|
|
350
|
+
<p>*<strong>argument</strong>*: token type (String) expected</p>
|
|
351
|
+
</li></ul>
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
<div class="method-source-code" id="missmatch-source">
|
|
357
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 46</span>
|
|
358
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">missmatch</span>(<span class="ruby-identifier">token</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">expectation</span>)
|
|
359
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-node">" Sintax Error: expecting #{expectation} but #{token.attribute} token '#{token.me}' found"</span>
|
|
360
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">token</span>.<span class="ruby-identifier">position</span>)
|
|
361
|
+
<span class="ruby-keyword">end</span></pre>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
</div>
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
</div>
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
<div id="method-c-no_final_quotes" class="method-detail ">
|
|
373
|
+
|
|
374
|
+
<div class="method-heading">
|
|
375
|
+
<span class="method-name">no_final_quotes</span><span
|
|
376
|
+
class="method-args">(expression,position)</span>
|
|
377
|
+
|
|
378
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
379
|
+
|
|
380
|
+
</div>
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
<div class="method-description">
|
|
384
|
+
|
|
385
|
+
<ul><li>
|
|
386
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
387
|
+
found</p>
|
|
388
|
+
</li><li>
|
|
389
|
+
<p>*<strong>argument</strong>*: position where the error is located</p>
|
|
390
|
+
</li></ul>
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
<div class="method-source-code" id="no_final_quotes-source">
|
|
396
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 60</span>
|
|
397
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">no_final_quotes</span>(<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">position</span>)
|
|
398
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-string">" Sintax Error: missing quotes for block"</span>
|
|
399
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">position</span>)
|
|
400
|
+
<span class="ruby-keyword">end</span></pre>
|
|
401
|
+
</div>
|
|
402
|
+
|
|
403
|
+
</div>
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
</div>
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
<div id="method-c-numPoint_missing" class="method-detail ">
|
|
412
|
+
|
|
413
|
+
<div class="method-heading">
|
|
414
|
+
<span class="method-name">numPoint_missing</span><span
|
|
415
|
+
class="method-args">(position,expression)</span>
|
|
416
|
+
|
|
417
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
418
|
+
|
|
419
|
+
</div>
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
<div class="method-description">
|
|
423
|
+
|
|
424
|
+
<ul><li>
|
|
425
|
+
<p>*<strong>argument</strong>*: position where the error is located</p>
|
|
426
|
+
</li><li>
|
|
427
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
428
|
+
found</p>
|
|
429
|
+
</li></ul>
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
<div class="method-source-code" id="numPoint_missing-source">
|
|
435
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 74</span>
|
|
436
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">numPoint_missing</span>(<span class="ruby-identifier">position</span>,<span class="ruby-identifier">expression</span>)
|
|
437
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-string">" Sintax Error: number of points is missing"</span>
|
|
438
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">position</span>)
|
|
439
|
+
<span class="ruby-keyword">end</span></pre>
|
|
440
|
+
</div>
|
|
441
|
+
|
|
442
|
+
</div>
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
</div>
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<div id="method-c-print" class="method-detail ">
|
|
451
|
+
|
|
452
|
+
<div class="method-heading">
|
|
453
|
+
<span class="method-name">print</span><span
|
|
454
|
+
class="method-args">(message,expression,pos)</span>
|
|
455
|
+
|
|
456
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
457
|
+
|
|
458
|
+
</div>
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
<div class="method-description">
|
|
462
|
+
|
|
463
|
+
<p>Main function that prints the error message</p>
|
|
464
|
+
<ul><li>
|
|
465
|
+
<p>*<strong>argument</strong>*: message to be printed (string)</p>
|
|
466
|
+
</li><li>
|
|
467
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
468
|
+
found</p>
|
|
469
|
+
</li><li>
|
|
470
|
+
<p>*<strong>argument</strong>*: error position</p>
|
|
471
|
+
</li></ul>
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
<div class="method-source-code" id="print-source">
|
|
477
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 16</span>
|
|
478
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">pos</span>)
|
|
479
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">message</span>
|
|
480
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">expression</span>
|
|
481
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">" "</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">pos</span> <span class="ruby-operator">+</span> <span class="ruby-string">"^"</span>
|
|
482
|
+
<span class="ruby-keyword">end</span></pre>
|
|
483
|
+
</div>
|
|
484
|
+
|
|
485
|
+
</div>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
</div>
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
<div id="method-c-reduced" class="method-detail ">
|
|
494
|
+
|
|
495
|
+
<div class="method-heading">
|
|
496
|
+
<span class="method-name">reduced</span><span
|
|
497
|
+
class="method-args">(token,expression)</span>
|
|
498
|
+
|
|
499
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
500
|
+
|
|
501
|
+
</div>
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
<div class="method-description">
|
|
505
|
+
|
|
506
|
+
<ul><li>
|
|
507
|
+
<p>*<strong>argument</strong>*: unexpected <a href="Token.html">Token</a></p>
|
|
508
|
+
</li><li>
|
|
509
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
510
|
+
found</p>
|
|
511
|
+
</li></ul>
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
<div class="method-source-code" id="reduced-source">
|
|
517
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 31</span>
|
|
518
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">reduced</span>(<span class="ruby-identifier">token</span>,<span class="ruby-identifier">expression</span>)
|
|
519
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-node">" Sintax Error: unexpected #{token.attribute} '#{token.me}' found"</span>
|
|
520
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">token</span>.<span class="ruby-identifier">position</span>)
|
|
521
|
+
<span class="ruby-keyword">end</span></pre>
|
|
522
|
+
</div>
|
|
523
|
+
|
|
524
|
+
</div>
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
</div>
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
<div id="method-c-unexpected_token_in_solve" class="method-detail ">
|
|
533
|
+
|
|
534
|
+
<div class="method-heading">
|
|
535
|
+
<span class="method-name">unexpected_token_in_solve</span><span
|
|
536
|
+
class="method-args">(token,expression)</span>
|
|
537
|
+
|
|
538
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
539
|
+
|
|
540
|
+
</div>
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
<div class="method-description">
|
|
544
|
+
|
|
545
|
+
<ul><li>
|
|
546
|
+
<p>*<strong>argument</strong>*: unexpected <a href="Token.html">Token</a>
|
|
547
|
+
found</p>
|
|
548
|
+
</li><li>
|
|
549
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
550
|
+
found</p>
|
|
551
|
+
</li></ul>
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
<div class="method-source-code" id="unexpected_token_in_solve-source">
|
|
557
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 88</span>
|
|
558
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">unexpected_token_in_solve</span>(<span class="ruby-identifier">token</span>,<span class="ruby-identifier">expression</span>)
|
|
559
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-node">" Sintax Error: unexpected #{token.attribute} token '#{token.me}' in 'solve:' args"</span>
|
|
560
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">token</span>.<span class="ruby-identifier">position</span>)
|
|
561
|
+
<span class="ruby-keyword">end</span></pre>
|
|
562
|
+
</div>
|
|
563
|
+
|
|
564
|
+
</div>
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
</div>
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
<div id="method-c-unknown" class="method-detail ">
|
|
573
|
+
|
|
574
|
+
<div class="method-heading">
|
|
575
|
+
<span class="method-name">unknown</span><span
|
|
576
|
+
class="method-args">(token,expression)</span>
|
|
577
|
+
|
|
578
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
579
|
+
|
|
580
|
+
</div>
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
<div class="method-description">
|
|
584
|
+
|
|
585
|
+
<ul><li>
|
|
586
|
+
<p>*<strong>argument</strong>*: unknown <a href="Token.html">Token</a> found</p>
|
|
587
|
+
</li><li>
|
|
588
|
+
<p>*<strong>argument</strong>*: expression (commands) where the error has been
|
|
589
|
+
found</p>
|
|
590
|
+
</li></ul>
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
<div class="method-source-code" id="unknown-source">
|
|
596
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Error_print.rb, line 38</span>
|
|
597
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">unknown</span>(<span class="ruby-identifier">token</span>,<span class="ruby-identifier">expression</span>)
|
|
598
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-node">" Sintax Error: unknown #{token.attribute} '#{token.me}' found"</span>
|
|
599
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">print</span>(<span class="ruby-identifier">message</span>,<span class="ruby-identifier">expression</span>,<span class="ruby-identifier">token</span>.<span class="ruby-identifier">position</span>)
|
|
600
|
+
<span class="ruby-keyword">end</span></pre>
|
|
601
|
+
</div>
|
|
602
|
+
|
|
603
|
+
</div>
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
</div>
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
</section>
|
|
612
|
+
|
|
613
|
+
</section>
|
|
614
|
+
</main>
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
<footer id="validator-badges" role="contentinfo">
|
|
618
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
619
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
|
620
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
621
|
+
</footer>
|
|
622
|
+
|