linmeric 0.2.0 → 0.2.1
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/README.md +5 -5
- data/Rakefile +31 -0
- data/bin/linmeric +6 -3
- data/doc/Archive.html +3 -2
- data/doc/Calculator.html +2 -1
- data/doc/Calculator/Evaluator.html +3 -2
- data/doc/Calculator/Lexer.html +3 -2
- data/doc/Calculator/Token.html +3 -2
- data/doc/Dim.html +6 -5
- data/doc/Filename.html +5 -4
- data/doc/Fixnum.html +13 -152
- data/doc/Float.html +6 -5
- data/doc/Function.html +3 -2
- data/doc/InputError.html +2 -1
- data/doc/IntNum.html +249 -0
- data/doc/Integer.html +114 -0
- data/doc/Integrators.html +2 -1
- data/doc/LU.html +2 -1
- data/doc/Lexer.html +3 -2
- data/doc/Linmeric.html +2 -1
- data/doc/Listener.html +3 -2
- data/doc/Matrix.html +37 -36
- data/doc/MyArgError.html +2 -1
- data/doc/NilClass.html +5 -4
- data/doc/Numeric.html +6 -5
- data/doc/Object.html +117 -0
- data/doc/Parser.html +9 -8
- data/doc/PrintError.html +2 -1
- data/doc/README_md.html +16 -14
- data/doc/Scp.html +3 -2
- data/doc/Sizer.html +9 -5
- data/doc/String.html +12 -11
- data/doc/Token.html +3 -2
- data/doc/Tool.html +2 -1
- data/doc/created.rid +18 -18
- data/doc/css/fonts.css +6 -6
- data/doc/index.html +22 -14
- data/doc/js/darkfish.js +7 -7
- data/doc/js/jquery.js +4 -9404
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +3 -2
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +23 -13
- data/lib/linmeric/CnGal_Matrix_class.rb +11 -5
- data/lib/linmeric/CnGal_new_classes.rb +14 -2
- data/lib/linmeric/Parser.rb +6 -6
- data/lib/linmeric/Sizer.rb +3 -0
- data/lib/linmeric/version.rb +1 -1
- data/lib/linmeric_bin.rb +2 -1
- metadata +9 -6
- data/doc/Instructions_en.txt +0 -207
- data/doc/Instructions_it.txt +0 -211
data/doc/Numeric.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -145,7 +146,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
145
146
|
|
|
146
147
|
|
|
147
148
|
<div class="method-source-code" id="can_divide-3F-source">
|
|
148
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
149
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 34</span>
|
|
149
150
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">can_divide?</span>(<span class="ruby-identifier">obj</span>)
|
|
150
151
|
(<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> ((<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>))
|
|
151
152
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -184,7 +185,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
184
185
|
|
|
185
186
|
|
|
186
187
|
<div class="method-source-code" id="can_multiply-3F-source">
|
|
187
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
188
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 26</span>
|
|
188
189
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">can_multiply?</span>(<span class="ruby-identifier">obj</span>)
|
|
189
190
|
(<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> ((<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Matrix</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>))
|
|
190
191
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -223,7 +224,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
223
224
|
|
|
224
225
|
|
|
225
226
|
<div class="method-source-code" id="is_similar-3F-source">
|
|
226
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
227
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 18</span>
|
|
227
228
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_similar?</span>(<span class="ruby-identifier">obj</span>)
|
|
228
229
|
(<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Numeric</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>)
|
|
229
230
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -245,7 +246,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
245
246
|
|
|
246
247
|
<footer id="validator-badges" role="contentinfo">
|
|
247
248
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
248
|
-
<p>Generated by <a href="
|
|
249
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
249
250
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
250
251
|
</footer>
|
|
251
252
|
|
data/doc/Object.html
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>class Object - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<script type="text/javascript">
|
|
10
|
+
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<script src="./js/jquery.js"></script>
|
|
15
|
+
<script src="./js/darkfish.js"></script>
|
|
16
|
+
|
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<body id="top" role="document" class="class">
|
|
23
|
+
<nav role="navigation">
|
|
24
|
+
<div id="project-navigation">
|
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
26
|
+
<h2>
|
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
|
28
|
+
</h2>
|
|
29
|
+
|
|
30
|
+
<div id="table-of-contents-navigation">
|
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
39
|
+
<div id="search-field-wrapper">
|
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
|
47
|
+
aria-busy="false" aria-expanded="false"
|
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
49
|
+
</form>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
<div id="class-metadata">
|
|
57
|
+
|
|
58
|
+
<div id="parent-class-section" class="nav-section">
|
|
59
|
+
<h3>Parent</h3>
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
<p class="link">BasicObject
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
</div>
|
|
70
|
+
</nav>
|
|
71
|
+
|
|
72
|
+
<main role="main" aria-labelledby="class-Object">
|
|
73
|
+
<h1 id="class-Object" class="class">
|
|
74
|
+
class Object
|
|
75
|
+
</h1>
|
|
76
|
+
|
|
77
|
+
<section class="description">
|
|
78
|
+
|
|
79
|
+
</section>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<section class="constants-list">
|
|
91
|
+
<header>
|
|
92
|
+
<h3>Constants</h3>
|
|
93
|
+
</header>
|
|
94
|
+
<dl>
|
|
95
|
+
|
|
96
|
+
<dt id="Int">Int
|
|
97
|
+
|
|
98
|
+
<dd>
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
</dl>
|
|
102
|
+
</section>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</section>
|
|
109
|
+
</main>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
<footer id="validator-badges" role="contentinfo">
|
|
113
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
114
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
115
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
116
|
+
</footer>
|
|
117
|
+
|
data/doc/Parser.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -308,16 +309,16 @@ and stop the parser</p>
|
|
|
308
309
|
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">array</span>.<span class="ruby-identifier">pop</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">c</span>
|
|
309
310
|
<span class="ruby-identifier">array</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">x</span>
|
|
310
311
|
<span class="ruby-keyword">when</span> <span class="ruby-regexp">/\p{Alnum}/</span>
|
|
311
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">expr</span>[<span class="ruby-ivar">@d</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp">/[0-9
|
|
312
|
-
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">array</span>.<span class="ruby-identifier">pop</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">c</span>
|
|
312
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">expr</span>[<span class="ruby-ivar">@d</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp">/[0-9]/</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">array</span>.<span class="ruby-identifier">count</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
313
|
+
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">array</span>.<span class="ruby-identifier">pop</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">c</span>
|
|
313
314
|
<span class="ruby-identifier">array</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_n</span>
|
|
314
|
-
<span class="ruby-keyword">elsif</span> (<span class="ruby-identifier">expr</span>[<span class="ruby-ivar">@d</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp">/[a-
|
|
315
|
+
<span class="ruby-keyword">elsif</span> (<span class="ruby-identifier">expr</span>[<span class="ruby-ivar">@d</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp">/[a-zA-Z]/</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">expr</span>[<span class="ruby-ivar">@d</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-string">'_'</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">array</span>.<span class="ruby-identifier">count</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
315
316
|
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">array</span>.<span class="ruby-identifier">pop</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">c</span>
|
|
316
|
-
<span class="ruby-identifier">array</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">x</span>
|
|
317
|
+
<span class="ruby-identifier">array</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">x</span>
|
|
317
318
|
<span class="ruby-keyword">else</span>
|
|
318
|
-
<span class="ruby-identifier">array</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_n</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/[0-9
|
|
319
|
+
<span class="ruby-identifier">array</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_n</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/[0-9]/</span>
|
|
319
320
|
<span class="ruby-identifier">array</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">c</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/[a-zA-Z]/</span>
|
|
320
|
-
<span class="ruby-keyword">end</span>
|
|
321
|
+
<span class="ruby-keyword">end</span>
|
|
321
322
|
<span class="ruby-ivar">@d</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
|
322
323
|
<span class="ruby-keyword">else</span>
|
|
323
324
|
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@error</span>
|
|
@@ -383,7 +384,7 @@ and stop the parser</p>
|
|
|
383
384
|
|
|
384
385
|
<footer id="validator-badges" role="contentinfo">
|
|
385
386
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
386
|
-
<p>Generated by <a href="
|
|
387
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
387
388
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
388
389
|
</footer>
|
|
389
390
|
|
data/doc/PrintError.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -616,7 +617,7 @@ found</p>
|
|
|
616
617
|
|
|
617
618
|
<footer id="validator-badges" role="contentinfo">
|
|
618
619
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
619
|
-
<p>Generated by <a href="
|
|
620
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
620
621
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
621
622
|
</footer>
|
|
622
623
|
|
data/doc/README_md.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -85,34 +86,35 @@
|
|
|
85
86
|
<h1 id="label-Linmeric"><a href="Linmeric.html">Linmeric</a><span><a href="#label-Linmeric">¶</a> <a href="#top">↑</a></span></h1>
|
|
86
87
|
|
|
87
88
|
<p>This simple numeric calulator provides an easy command line user interface
|
|
88
|
-
to make operations with matrices and functions (integration)
|
|
89
|
+
to make operations with matrices and functions (integration).</p>
|
|
89
90
|
|
|
90
91
|
<h2 id="label-Installation">Installation<span><a href="#label-Installation">¶</a> <a href="#top">↑</a></span></h2>
|
|
91
92
|
|
|
92
|
-
<p>
|
|
93
|
-
or click here to go to the
|
|
94
|
-
|
|
95
|
-
line and type: <code>sh $
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
<p>From the command line type: <code>sh $ sudo gem install linmeric </code>
|
|
94
|
+
or click <a href="https://rubygems.org/gems/linmeric">here</a> to go to the
|
|
95
|
+
linmeric rubygems page and download the .gem file. Then open the directory
|
|
96
|
+
where the .gem file is saved on the commend line and type: <code>sh $
|
|
97
|
+
sudo gem install ./linmeric-<version>.gem </code>
|
|
98
|
+
<code><version></code> must be replaced by the version number of the
|
|
99
|
+
gem you downloaded</p>
|
|
98
100
|
|
|
99
101
|
<h2 id="label-Usage">Usage<span><a href="#label-Usage">¶</a> <a href="#top">↑</a></span></h2>
|
|
100
102
|
|
|
101
|
-
<p>
|
|
102
|
-
href="https://max-codeware.github.io/linmeric/">linmeric page</a>
|
|
103
|
-
can use the following commands to display the guides:</p>
|
|
103
|
+
<p>A whole tutorial is available on the <a
|
|
104
|
+
href="https://max-codeware.github.io/linmeric/">linmeric page</a> otherwise
|
|
105
|
+
you can use the following commands to display the guides:</p>
|
|
104
106
|
|
|
105
107
|
<h3 id="label-Displaying+the+command+line+guide-3A">Displaying the command line guide:<span><a href="#label-Displaying+the+command+line+guide-3A">¶</a> <a href="#top">↑</a></span></h3>
|
|
106
108
|
|
|
107
109
|
<p>From the command line type: <code>sh $ linmeric -h </code> or <code>sh
|
|
108
|
-
$ linmeric --help </code> and a quick help menu will
|
|
109
|
-
|
|
110
|
+
$ linmeric --help </code> and a quick help menu will run. Choose the option
|
|
111
|
+
you’re most interested in!</p>
|
|
110
112
|
|
|
111
113
|
<h3 id="label-Viewing+the+linmeric+guide+on+gedit-3A">Viewing the linmeric guide on gedit:<span><a href="#label-Viewing+the+linmeric+guide+on+gedit-3A">¶</a> <a href="#top">↑</a></span></h3>
|
|
112
114
|
|
|
113
115
|
<p>From the command line type: <code>sh $ linguide <lang> </code> to
|
|
114
116
|
open the user guide on gedit. <code><lang></code> must be replaced by
|
|
115
|
-
the language you want. The supported languages are:
|
|
117
|
+
the language you want. The supported languages are: * en (English) * it
|
|
116
118
|
(Italian)</p>
|
|
117
119
|
|
|
118
120
|
<p>Linguide is also provided by a <code>-h</code> command to view its help
|
|
@@ -136,7 +138,7 @@ href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
|
|
|
136
138
|
|
|
137
139
|
<footer id="validator-badges" role="contentinfo">
|
|
138
140
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
139
|
-
<p>Generated by <a href="
|
|
141
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
140
142
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
141
143
|
</footer>
|
|
142
144
|
|
data/doc/Scp.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -524,7 +525,7 @@ necessary.</p>
|
|
|
524
525
|
|
|
525
526
|
<footer id="validator-badges" role="contentinfo">
|
|
526
527
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
527
|
-
<p>Generated by <a href="
|
|
528
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
528
529
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
529
530
|
</footer>
|
|
530
531
|
|
data/doc/Sizer.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -407,6 +408,9 @@ to find the</p>
|
|
|
407
408
|
<span class="ruby-keyword">end</span>
|
|
408
409
|
<span class="ruby-keyword">end</span>
|
|
409
410
|
<span class="ruby-identifier">state</span> = <span class="ruby-value">2</span>
|
|
411
|
+
<span class="ruby-keyword">else</span>
|
|
412
|
+
<span class="ruby-constant">PrintError</span>.<span class="ruby-identifier">missmatch</span>(<span class="ruby-identifier">token</span>[<span class="ruby-ivar">@i</span>],<span class="ruby-identifier">@@string</span>,<span class="ruby-string">"keyword 'from:' or block"</span>)
|
|
413
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>
|
|
410
414
|
<span class="ruby-keyword">end</span>
|
|
411
415
|
|
|
412
416
|
<span class="ruby-comment"># checking integ arguments (full check)</span>
|
|
@@ -511,7 +515,7 @@ to find the</p>
|
|
|
511
515
|
|
|
512
516
|
|
|
513
517
|
<div class="method-source-code" id="count-source">
|
|
514
|
-
<pre><span class="ruby-comment"># File lib/linmeric/Sizer.rb, line
|
|
518
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Sizer.rb, line 315</span>
|
|
515
519
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">count</span>
|
|
516
520
|
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@i</span>
|
|
517
521
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -558,7 +562,7 @@ to find the</p>
|
|
|
558
562
|
|
|
559
563
|
|
|
560
564
|
<div class="method-source-code" id="balanced_brackets-3F-source">
|
|
561
|
-
<pre><span class="ruby-comment"># File lib/linmeric/Sizer.rb, line
|
|
565
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Sizer.rb, line 325</span>
|
|
562
566
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">balanced_brackets?</span>(<span class="ruby-identifier">exp</span>)
|
|
563
567
|
<span class="ruby-identifier">open_b</span> = <span class="ruby-value">0</span>
|
|
564
568
|
<span class="ruby-keyword">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword">in</span> <span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">exp</span>.<span class="ruby-identifier">size</span>
|
|
@@ -602,7 +606,7 @@ to find the</p>
|
|
|
602
606
|
|
|
603
607
|
|
|
604
608
|
<div class="method-source-code" id="check_block-source">
|
|
605
|
-
<pre><span class="ruby-comment"># File lib/linmeric/Sizer.rb, line
|
|
609
|
+
<pre><span class="ruby-comment"># File lib/linmeric/Sizer.rb, line 338</span>
|
|
606
610
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">check_block</span>(<span class="ruby-identifier">token</span>)
|
|
607
611
|
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">token</span>[<span class="ruby-ivar">@i</span>].<span class="ruby-identifier">attribute</span> <span class="ruby-operator">==</span> <span class="ruby-string">"QUOTES"</span> <span class="ruby-keyword">then</span>
|
|
608
612
|
<span class="ruby-constant">PrintError</span>.<span class="ruby-identifier">missmatch</span>(<span class="ruby-identifier">token</span>[<span class="ruby-ivar">@i</span>],<span class="ruby-identifier">@@string</span>,<span class="ruby-string">"quotes for block"</span>)
|
|
@@ -646,7 +650,7 @@ to find the</p>
|
|
|
646
650
|
|
|
647
651
|
<footer id="validator-badges" role="contentinfo">
|
|
648
652
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
649
|
-
<p>Generated by <a href="
|
|
653
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
650
654
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
651
655
|
</footer>
|
|
652
656
|
|
data/doc/String.html
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
11
|
+
var index_rel_prefix = "./";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<script src="./js/jquery.js"></script>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<h3>Parent</h3>
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
@@ -156,7 +157,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
156
157
|
|
|
157
158
|
|
|
158
159
|
<div class="method-source-code" id="2D-source">
|
|
159
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
160
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 196</span>
|
|
160
161
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">str</span>)
|
|
161
162
|
<span class="ruby-identifier">myStr</span> = <span class="ruby-identifier">str</span>.<span class="ruby-identifier">to_s</span>
|
|
162
163
|
<span class="ruby-identifier">temp</span> = <span class="ruby-string">''</span>
|
|
@@ -207,7 +208,7 @@ href="mailto:max.codeware@gmail.com">max.codeware@gmail.com</a>)</p>
|
|
|
207
208
|
|
|
208
209
|
|
|
209
210
|
<div class="method-source-code" id="compact-source">
|
|
210
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
211
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 184</span>
|
|
211
212
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compact</span>()
|
|
212
213
|
<span class="ruby-identifier">nstr</span> = <span class="ruby-string">''</span>
|
|
213
214
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">each_char</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ch</span><span class="ruby-operator">|</span>
|
|
@@ -250,7 +251,7 @@ found; <code>false</code> else.</p>
|
|
|
250
251
|
|
|
251
252
|
|
|
252
253
|
<div class="method-source-code" id="contain-3F-source">
|
|
253
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
254
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 152</span>
|
|
254
255
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">contain?</span>(<span class="ruby-identifier">str</span>)
|
|
255
256
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">''</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">str</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
|
|
256
257
|
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">each_char</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ch</span><span class="ruby-operator">|</span>
|
|
@@ -299,7 +300,7 @@ chars of the argument;</p>
|
|
|
299
300
|
|
|
300
301
|
|
|
301
302
|
<div class="method-source-code" id="contain_all-3F-source">
|
|
302
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
303
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 169</span>
|
|
303
304
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">contain_all?</span>(<span class="ruby-identifier">str</span>)
|
|
304
305
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">''</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">str</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
|
|
305
306
|
<span class="ruby-identifier">str</span>.<span class="ruby-identifier">each_char</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ch</span><span class="ruby-operator">|</span>
|
|
@@ -344,7 +345,7 @@ chars of the argument;</p>
|
|
|
344
345
|
|
|
345
346
|
|
|
346
347
|
<div class="method-source-code" id="float-3F-source">
|
|
347
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
348
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 234</span>
|
|
348
349
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">float?</span>
|
|
349
350
|
<span class="ruby-identifier">pat</span> = <span class="ruby-regexp">/^[-+]?[1-9]([0-9]*)?\.[0-9]+$/</span>
|
|
350
351
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span><span class="ruby-operator">=~</span><span class="ruby-identifier">pat</span>
|
|
@@ -383,7 +384,7 @@ chars of the argument;</p>
|
|
|
383
384
|
|
|
384
385
|
|
|
385
386
|
<div class="method-source-code" id="integer-3F-source">
|
|
386
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
387
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 218</span>
|
|
387
388
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">integer?</span>
|
|
388
389
|
[ <span class="ruby-comment"># In descending order of likeliness:</span>
|
|
389
390
|
<span class="ruby-regexp">/^[-+]?[1-9]([0-9]*)?$/</span>, <span class="ruby-comment"># decimal</span>
|
|
@@ -429,7 +430,7 @@ number; <code>false</code> else</p>
|
|
|
429
430
|
|
|
430
431
|
|
|
431
432
|
<div class="method-source-code" id="number-3F-source">
|
|
432
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
433
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 243</span>
|
|
433
434
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">number?</span>
|
|
434
435
|
(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">integer?</span> <span class="ruby-keyword">or</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">float?</span>) <span class="ruby-operator">?</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>) <span class="ruby-operator">:</span> (<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>)
|
|
435
436
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -467,7 +468,7 @@ number; <code>false</code> else</p>
|
|
|
467
468
|
|
|
468
469
|
|
|
469
470
|
<div class="method-source-code" id="remove-source">
|
|
470
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
471
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 261</span>
|
|
471
472
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">index</span>)
|
|
472
473
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">index</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
|
473
474
|
<span class="ruby-identifier">n_str</span> = <span class="ruby-string">''</span>
|
|
@@ -510,7 +511,7 @@ number; <code>false</code> else</p>
|
|
|
510
511
|
|
|
511
512
|
|
|
512
513
|
<div class="method-source-code" id="to_n-source">
|
|
513
|
-
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line
|
|
514
|
+
<pre><span class="ruby-comment"># File lib/linmeric/CnGal_new_classes.rb, line 251</span>
|
|
514
515
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_n</span>
|
|
515
516
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">float?</span>
|
|
516
517
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">integer?</span>
|
|
@@ -534,7 +535,7 @@ number; <code>false</code> else</p>
|
|
|
534
535
|
|
|
535
536
|
<footer id="validator-badges" role="contentinfo">
|
|
536
537
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
537
|
-
<p>Generated by <a href="
|
|
538
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
|
538
539
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
539
540
|
</footer>
|
|
540
541
|
|