nendo 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/Rakefile +2 -3
- data/VERSION.yml +1 -1
- data/lib/nendo/init.nnd +7 -3
- data/lib/nendo/init.nndc +62 -28
- data/lib/nendo/nendo/experimental.nndc +6 -6
- data/lib/nendo/ruby/builtin_functions.rb +13 -3
- data/lib/nendo/ruby/core.rb +1 -1
- data/lib/nendo/ruby/evaluator.rb +64 -24
- data/lib/nendo/ruby/out_of_module.rb +2 -5
- data/lib/nendo/ruby/reader.rb +1 -2
- data/lib/nendo/ruby/types.rb +24 -0
- data/lib/nendo/srfi-2.nndc +1 -1
- data/lib/nendo/srfi-26.nndc +3 -3
- data/lib/nendo/text/html-lite.nndc +1 -1
- data/lib/nendo/util/combinations.nndc +4 -4
- data/lib/nendo/util/list.nndc +1 -1
- data/lib/nendo/util/match.nndc +33 -33
- data/test/nendo_spec.rb +1 -2158
- data/test/nendo_spec_2.rb +2128 -0
- data/test/nendo_spec_3.rb +105 -0
- metadata +10 -92
data/lib/nendo/ruby/types.rb
CHANGED
@@ -245,6 +245,30 @@ module Nendo
|
|
245
245
|
attr_reader :originalSymbol, :renamedSymbol
|
246
246
|
end
|
247
247
|
|
248
|
+
class ParsedSymbol
|
249
|
+
attr_reader :sourcefile, :lineno
|
250
|
+
def initialize( sym, sourcefile, lineno )
|
251
|
+
@sym = sym
|
252
|
+
@sourcefile = sourcefile
|
253
|
+
@lineno = lineno
|
254
|
+
end
|
255
|
+
|
256
|
+
def to_s
|
257
|
+
@sym.to_s
|
258
|
+
end
|
259
|
+
|
260
|
+
def intern
|
261
|
+
@sym
|
262
|
+
end
|
263
|
+
|
264
|
+
def ==( other )
|
265
|
+
if (other.class == Symbol) or (other.class == ParsedSymbol)
|
266
|
+
@sym == other.intern
|
267
|
+
end
|
268
|
+
false
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
248
272
|
class SourceInfo
|
249
273
|
def initialize
|
250
274
|
@varname = nil
|
data/lib/nendo/srfi-2.nndc
CHANGED
data/lib/nendo/srfi-26.nndc
CHANGED
@@ -111,7 +111,7 @@ trampCall(
|
|
111
111
|
end
|
112
112
|
)
|
113
113
|
rescue => __e
|
114
|
-
__e.set_backtrace( ["
|
114
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
115
115
|
raise __e
|
116
116
|
end
|
117
117
|
)
|
@@ -2187,7 +2187,7 @@ trampCall(
|
|
2187
2187
|
end
|
2188
2188
|
)
|
2189
2189
|
rescue => __e
|
2190
|
-
__e.set_backtrace( ["
|
2190
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
2191
2191
|
raise __e
|
2192
2192
|
end
|
2193
2193
|
)
|
@@ -2344,7 +2344,7 @@ trampCall(
|
|
2344
2344
|
end
|
2345
2345
|
)
|
2346
2346
|
rescue => __e
|
2347
|
-
__e.set_backtrace( ["
|
2347
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
2348
2348
|
raise __e
|
2349
2349
|
end
|
2350
2350
|
)
|
@@ -1059,7 +1059,7 @@ trampCall(
|
|
1059
1059
|
begin raise RuntimeError,
|
1060
1060
|
"Error: match: no matching pattern"
|
1061
1061
|
rescue => __e
|
1062
|
-
__e.set_backtrace( ["
|
1062
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
1063
1063
|
raise __e
|
1064
1064
|
end
|
1065
1065
|
}
|
@@ -1657,7 +1657,7 @@ trampCall(
|
|
1657
1657
|
begin raise RuntimeError,
|
1658
1658
|
"Error: match: no matching pattern"
|
1659
1659
|
rescue => __e
|
1660
|
-
__e.set_backtrace( ["
|
1660
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
1661
1661
|
raise __e
|
1662
1662
|
end
|
1663
1663
|
}
|
@@ -2923,7 +2923,7 @@ trampCall(
|
|
2923
2923
|
begin raise RuntimeError,
|
2924
2924
|
"Error: match: no matching pattern"
|
2925
2925
|
rescue => __e
|
2926
|
-
__e.set_backtrace( ["
|
2926
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
2927
2927
|
raise __e
|
2928
2928
|
end
|
2929
2929
|
}
|
@@ -3508,7 +3508,7 @@ trampCall(
|
|
3508
3508
|
begin raise RuntimeError,
|
3509
3509
|
"Error: match: no matching pattern"
|
3510
3510
|
rescue => __e
|
3511
|
-
__e.set_backtrace( ["
|
3511
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
3512
3512
|
raise __e
|
3513
3513
|
end
|
3514
3514
|
}
|
data/lib/nendo/util/list.nndc
CHANGED
data/lib/nendo/util/match.nndc
CHANGED
@@ -56,7 +56,7 @@ trampCall(
|
|
56
56
|
end
|
57
57
|
)
|
58
58
|
rescue => __e
|
59
|
-
__e.set_backtrace( ["
|
59
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
60
60
|
raise __e
|
61
61
|
end
|
62
62
|
)
|
@@ -220,7 +220,7 @@ trampCall(
|
|
220
220
|
end
|
221
221
|
)
|
222
222
|
rescue => __e
|
223
|
-
__e.set_backtrace( ["
|
223
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
224
224
|
raise __e
|
225
225
|
end
|
226
226
|
)
|
@@ -1640,7 +1640,7 @@ trampCall(
|
|
1640
1640
|
end
|
1641
1641
|
)
|
1642
1642
|
rescue => __e
|
1643
|
-
__e.set_backtrace( ["
|
1643
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
1644
1644
|
raise __e
|
1645
1645
|
end
|
1646
1646
|
)
|
@@ -2694,7 +2694,7 @@ trampCall(
|
|
2694
2694
|
end
|
2695
2695
|
)
|
2696
2696
|
rescue => __e
|
2697
|
-
__e.set_backtrace( ["
|
2697
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
2698
2698
|
raise __e
|
2699
2699
|
end
|
2700
2700
|
)
|
@@ -3614,7 +3614,7 @@ trampCall(
|
|
3614
3614
|
end
|
3615
3615
|
)
|
3616
3616
|
rescue => __e
|
3617
|
-
__e.set_backtrace( ["
|
3617
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
3618
3618
|
raise __e
|
3619
3619
|
end
|
3620
3620
|
)
|
@@ -14461,7 +14461,7 @@ trampCall(
|
|
14461
14461
|
end
|
14462
14462
|
)
|
14463
14463
|
rescue => __e
|
14464
|
-
__e.set_backtrace( ["
|
14464
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
14465
14465
|
raise __e
|
14466
14466
|
end
|
14467
14467
|
)
|
@@ -18706,7 +18706,7 @@ trampCall(
|
|
18706
18706
|
end
|
18707
18707
|
)
|
18708
18708
|
rescue => __e
|
18709
|
-
__e.set_backtrace( ["
|
18709
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
18710
18710
|
raise __e
|
18711
18711
|
end
|
18712
18712
|
)
|
@@ -19180,7 +19180,7 @@ trampCall(
|
|
19180
19180
|
end
|
19181
19181
|
)
|
19182
19182
|
rescue => __e
|
19183
|
-
__e.set_backtrace( ["
|
19183
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
19184
19184
|
raise __e
|
19185
19185
|
end
|
19186
19186
|
)
|
@@ -19339,7 +19339,7 @@ trampCall(
|
|
19339
19339
|
end
|
19340
19340
|
)
|
19341
19341
|
rescue => __e
|
19342
|
-
__e.set_backtrace( ["
|
19342
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
19343
19343
|
raise __e
|
19344
19344
|
end
|
19345
19345
|
)
|
@@ -19532,7 +19532,7 @@ trampCall(
|
|
19532
19532
|
end
|
19533
19533
|
)
|
19534
19534
|
rescue => __e
|
19535
|
-
__e.set_backtrace( ["
|
19535
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
19536
19536
|
raise __e
|
19537
19537
|
end
|
19538
19538
|
)
|
@@ -20503,7 +20503,7 @@ trampCall(
|
|
20503
20503
|
end
|
20504
20504
|
)
|
20505
20505
|
rescue => __e
|
20506
|
-
__e.set_backtrace( ["
|
20506
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
20507
20507
|
raise __e
|
20508
20508
|
end
|
20509
20509
|
)
|
@@ -21500,7 +21500,7 @@ trampCall(
|
|
21500
21500
|
end
|
21501
21501
|
)
|
21502
21502
|
rescue => __e
|
21503
|
-
__e.set_backtrace( ["
|
21503
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
21504
21504
|
raise __e
|
21505
21505
|
end
|
21506
21506
|
)
|
@@ -24745,7 +24745,7 @@ trampCall(
|
|
24745
24745
|
end
|
24746
24746
|
)
|
24747
24747
|
rescue => __e
|
24748
|
-
__e.set_backtrace( ["
|
24748
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
24749
24749
|
raise __e
|
24750
24750
|
end
|
24751
24751
|
)
|
@@ -25348,7 +25348,7 @@ trampCall(
|
|
25348
25348
|
end
|
25349
25349
|
)
|
25350
25350
|
rescue => __e
|
25351
|
-
__e.set_backtrace( ["
|
25351
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
25352
25352
|
raise __e
|
25353
25353
|
end
|
25354
25354
|
)
|
@@ -27298,7 +27298,7 @@ trampCall(
|
|
27298
27298
|
end
|
27299
27299
|
)
|
27300
27300
|
rescue => __e
|
27301
|
-
__e.set_backtrace( ["
|
27301
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
27302
27302
|
raise __e
|
27303
27303
|
end
|
27304
27304
|
)
|
@@ -28382,7 +28382,7 @@ trampCall(
|
|
28382
28382
|
end
|
28383
28383
|
)
|
28384
28384
|
rescue => __e
|
28385
|
-
__e.set_backtrace( ["
|
28385
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
28386
28386
|
raise __e
|
28387
28387
|
end
|
28388
28388
|
)
|
@@ -29675,7 +29675,7 @@ trampCall(
|
|
29675
29675
|
end
|
29676
29676
|
)
|
29677
29677
|
rescue => __e
|
29678
|
-
__e.set_backtrace( ["
|
29678
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
29679
29679
|
raise __e
|
29680
29680
|
end
|
29681
29681
|
)
|
@@ -30721,7 +30721,7 @@ trampCall(
|
|
30721
30721
|
end
|
30722
30722
|
)
|
30723
30723
|
rescue => __e
|
30724
|
-
__e.set_backtrace( ["
|
30724
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
30725
30725
|
raise __e
|
30726
30726
|
end
|
30727
30727
|
)
|
@@ -31670,7 +31670,7 @@ trampCall(
|
|
31670
31670
|
end
|
31671
31671
|
)
|
31672
31672
|
rescue => __e
|
31673
|
-
__e.set_backtrace( ["
|
31673
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
31674
31674
|
raise __e
|
31675
31675
|
end
|
31676
31676
|
)
|
@@ -32187,7 +32187,7 @@ trampCall(
|
|
32187
32187
|
end
|
32188
32188
|
)
|
32189
32189
|
rescue => __e
|
32190
|
-
__e.set_backtrace( ["
|
32190
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
32191
32191
|
raise __e
|
32192
32192
|
end
|
32193
32193
|
)
|
@@ -33651,7 +33651,7 @@ trampCall(
|
|
33651
33651
|
end
|
33652
33652
|
)
|
33653
33653
|
rescue => __e
|
33654
|
-
__e.set_backtrace( ["
|
33654
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
33655
33655
|
raise __e
|
33656
33656
|
end
|
33657
33657
|
)
|
@@ -38084,7 +38084,7 @@ trampCall(
|
|
38084
38084
|
end
|
38085
38085
|
)
|
38086
38086
|
rescue => __e
|
38087
|
-
__e.set_backtrace( ["
|
38087
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
38088
38088
|
raise __e
|
38089
38089
|
end
|
38090
38090
|
)
|
@@ -38792,7 +38792,7 @@ trampCall(
|
|
38792
38792
|
end
|
38793
38793
|
)
|
38794
38794
|
rescue => __e
|
38795
|
-
__e.set_backtrace( ["
|
38795
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
38796
38796
|
raise __e
|
38797
38797
|
end
|
38798
38798
|
)
|
@@ -41996,7 +41996,7 @@ trampCall(
|
|
41996
41996
|
end
|
41997
41997
|
)
|
41998
41998
|
rescue => __e
|
41999
|
-
__e.set_backtrace( ["
|
41999
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
42000
42000
|
raise __e
|
42001
42001
|
end
|
42002
42002
|
)
|
@@ -42690,7 +42690,7 @@ trampCall(
|
|
42690
42690
|
end
|
42691
42691
|
)
|
42692
42692
|
rescue => __e
|
42693
|
-
__e.set_backtrace( ["
|
42693
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
42694
42694
|
raise __e
|
42695
42695
|
end
|
42696
42696
|
)
|
@@ -42884,7 +42884,7 @@ trampCall(
|
|
42884
42884
|
end
|
42885
42885
|
)
|
42886
42886
|
rescue => __e
|
42887
|
-
__e.set_backtrace( ["
|
42887
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
42888
42888
|
raise __e
|
42889
42889
|
end
|
42890
42890
|
)
|
@@ -43084,7 +43084,7 @@ trampCall(
|
|
43084
43084
|
end
|
43085
43085
|
)
|
43086
43086
|
rescue => __e
|
43087
|
-
__e.set_backtrace( ["
|
43087
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
43088
43088
|
raise __e
|
43089
43089
|
end
|
43090
43090
|
)
|
@@ -43396,7 +43396,7 @@ trampCall(
|
|
43396
43396
|
end
|
43397
43397
|
)
|
43398
43398
|
rescue => __e
|
43399
|
-
__e.set_backtrace( ["
|
43399
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
43400
43400
|
raise __e
|
43401
43401
|
end
|
43402
43402
|
)
|
@@ -43620,7 +43620,7 @@ trampCall(
|
|
43620
43620
|
end
|
43621
43621
|
)
|
43622
43622
|
rescue => __e
|
43623
|
-
__e.set_backtrace( ["
|
43623
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
43624
43624
|
raise __e
|
43625
43625
|
end
|
43626
43626
|
)
|
@@ -46623,7 +46623,7 @@ trampCall(
|
|
46623
46623
|
end
|
46624
46624
|
)
|
46625
46625
|
rescue => __e
|
46626
|
-
__e.set_backtrace( ["
|
46626
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
46627
46627
|
raise __e
|
46628
46628
|
end
|
46629
46629
|
)
|
@@ -47672,7 +47672,7 @@ trampCall(
|
|
47672
47672
|
end
|
47673
47673
|
)
|
47674
47674
|
rescue => __e
|
47675
|
-
__e.set_backtrace( ["
|
47675
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
47676
47676
|
raise __e
|
47677
47677
|
end
|
47678
47678
|
)
|
@@ -48131,7 +48131,7 @@ trampCall(
|
|
48131
48131
|
end
|
48132
48132
|
)
|
48133
48133
|
rescue => __e
|
48134
|
-
__e.set_backtrace( ["
|
48134
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
48135
48135
|
raise __e
|
48136
48136
|
end
|
48137
48137
|
)
|
@@ -49153,7 +49153,7 @@ trampCall(
|
|
49153
49153
|
end
|
49154
49154
|
)
|
49155
49155
|
rescue => __e
|
49156
|
-
__e.set_backtrace( ["
|
49156
|
+
__e.set_backtrace( [":1"] + __e.backtrace )
|
49157
49157
|
raise __e
|
49158
49158
|
end
|
49159
49159
|
)
|