Skip to content

Commit dc9b652

Browse files
committed
Add .eco files
1 parent 722484f commit dc9b652

File tree

4 files changed

+761
-0
lines changed

4 files changed

+761
-0
lines changed

ecr/benchmark.eco

Lines changed: 355 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,355 @@
1+
2,0,1,2:3,4:5,6:7,8:9,10:11,12:[,],13:5
2+
3,0,1,2:3,4:5,6:14,8:9,10:11,12:[,],13:5
3+
4,0,1,2:3,4:5,6:15,8:9,10:11,12:[,],13:5
4+
5,0,1,2:3,4:5,6:16,8:9,10:11,12:[,],13:5
5+
6,0,1,2:3,4:5,6:17,8:9,10:11,12:[,],13:5
6+
7,0,1,2:3,4:5,6:18,8:9,10:11,12:[,],13:5
7+
8,0,1,2:3,4:5,6:19,8:9,10:11,12:[,],13:5
8+
9,0,1,2:3,4:5,6:20,8:9,10:11,12:[,],13:5
9+
10,0,21,2:3,4:22,6:23,8:9,10:11,12:[,],13:5
10+
14,0,24,2:25,12:{,2:26,27:28,}
11+
15,0,29,2:25,12:{,30:0,2:31,},32:7
12+
16,0,29,2:25,12:{,2:33,27:11,},32:15
13+
17,0,34,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:38,39:{,2:33,27:40,},30:0,}
14+
17,0,41,42:43
15+
17,0,44,2:25,32:15
16+
17,0,41,42:45
17+
18,0,29,2:25,12:{,30:0,2:31,},32:14
18+
19,0,46,2:25,37:{,30:0,6:7,2:3,},39:{,30:0,6:14,2:3,},32:15
19+
20,0,24,2:25,12:{,2:47,48:22,49:[,50:{,30:0,6:15,2:3,},50:{,2:26,27:51,},],}
20+
22,0,24,2:25,12:{,2:26,27:52,}
21+
23,0,29,2:25,12:{,30:0,2:31,},32:7
22+
24,0,29,2:25,12:{,2:33,27:11,},32:15
23+
25,0,34,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:38,39:{,2:33,27:40,},30:0,}
24+
25,0,41,42:53
25+
27,0,54,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:55,39:{,2:33,27:56,},30:0,}
26+
27,0,41,42:57
27+
27,0,58,
28+
28,0,44,2:25,32:15
29+
25,0,41,42:59
30+
30,0,29,2:25,12:{,30:0,2:31,},32:14
31+
31,0,46,2:25,37:{,30:0,6:7,2:3,},39:{,30:0,6:14,2:3,},32:15
32+
32,0,24,2:25,12:{,2:47,48:22,49:[,50:{,30:0,6:15,2:3,},50:{,2:26,27:51,},],}
33+
34,0,24,2:25,12:{,2:26,27:60,}
34+
35,0,29,2:25,12:{,30:0,2:31,},32:7
35+
36,0,61,2:8,6:17,12:{,2:33,27:40,}
36+
37,0,29,2:25,12:{,2:33,27:11,},32:15
37+
38,0,34,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:38,39:{,2:33,27:40,},30:0,}
38+
38,0,41,42:62
39+
40,0,10,2:25,32:17,12:{,30:0,6:15,2:3,}
40+
41,0,29,2:25,12:{,30:0,6:15,2:3,},32:17
41+
42,0,44,2:25,32:15
42+
38,0,41,42:63
43+
44,0,29,2:25,12:{,30:0,2:31,},32:14
44+
45,0,46,2:25,37:{,30:0,6:7,2:3,},39:{,30:0,6:14,2:3,},32:15
45+
46,0,24,2:25,12:{,2:47,48:22,49:[,50:{,30:0,6:15,2:3,},50:{,2:26,27:51,},],}
46+
48,0,24,2:25,12:{,2:26,27:64,}
47+
49,0,29,2:25,12:{,30:0,2:65,27:{,2:26,27:66,},},32:20
48+
50,0,29,2:25,12:{,30:0,2:31,},32:7
49+
51,0,29,2:25,12:{,2:33,27:11,},32:15
50+
52,0,34,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:38,39:{,2:33,27:67,},30:0,}
51+
52,0,41,42:68
52+
54,0,29,2:25,12:{,2:33,27:11,},32:16
53+
55,0,34,2:25,35:{,36:22,37:{,30:0,6:16,2:3,},2:38,39:{,2:33,27:69,},30:0,}
54+
55,0,41,42:70
55+
57,0,61,2:71,37:{,2:47,48:22,49:[,50:{,30:0,6:15,2:3,},50:{,2:26,27:72,},50:{,30:0,6:16,2:3,},],},32:20,39:{,30:0,6:16,2:3,}
56+
58,0,44,2:25,32:16
57+
55,0,41,42:73
58+
60,0,44,2:25,32:15
59+
52,0,41,42:74
60+
62,0,29,2:25,12:{,30:0,2:31,},32:14
61+
63,0,46,2:25,37:{,30:0,6:7,2:3,},39:{,30:0,6:14,2:3,},32:15
62+
64,0,24,2:25,12:{,2:47,48:22,49:[,50:{,30:0,6:15,2:3,},50:{,2:26,27:51,},],}
63+
66,0,24,2:25,12:{,2:26,27:75,}
64+
67,0,29,2:25,12:{,2:33,27:76,},32:19
65+
68,0,29,2:25,12:{,2:33,27:77,},32:18
66+
69,0,78,2:25,37:{,30:0,6:19,2:3,},39:{,30:0,6:18,2:3,},32:19
67+
70,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:79,},50:{,30:0,6:19,2:3,},],}
68+
72,0,29,2:25,12:{,30:0,2:80,},32:18
69+
73,0,61,2:71,37:{,2:26,27:6,},32:18,39:{,2:26,27:81,}
70+
74,0,24,2:25,12:{,30:0,2:71,6:{,2:26,27:6,},32:18,}
71+
75,0,29,2:25,12:{,30:0,2:80,},32:19
72+
76,0,29,2:25,12:{,2:33,27:9,},32:15
73+
77,0,34,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:38,39:{,2:33,27:77,},30:0,}
74+
77,0,41,42:82
75+
79,0,83,2:25,12:{,30:0,6:15,2:3,},32:19
76+
80,0,44,2:25,32:15
77+
77,0,41,42:84
78+
82,0,61,2:85,37:{,2:33,27:86,},32:19,39:{,2:26,27:87,}
79+
83,0,24,2:25,12:{,30:0,2:85,10:{,2:33,27:86,},32:19,}
80+
84,0,54,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:48,30:0,}
81+
84,0,41,42:88
82+
84,0,24,2:25,12:{,2:26,27:89,}
83+
85,0,61,2:61,32:19
84+
86,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:90,},50:{,30:0,6:19,2:3,},],}
85+
87,0,91,2:25,32:19
86+
88,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:92,},50:{,30:0,6:19,2:3,},],}
87+
89,0,93,2:25,32:19
88+
90,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:94,},50:{,30:0,6:19,2:3,},],}
89+
91,0,93,2:25,32:19
90+
92,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:94,},50:{,30:0,6:19,2:3,},],}
91+
94,0,61,2:61,32:19
92+
95,0,54,2:25,35:{,36:22,37:{,30:0,6:19,2:3,},2:95,30:0,}
93+
95,0,41,42:96
94+
95,0,24,2:25,12:{,2:26,27:97,}
95+
95,0,41,42:98
96+
95,0,24,2:25,12:{,2:26,27:99,}
97+
96,0,29,2:25,12:{,2:33,27:100,},32:19
98+
97,0,54,2:25,35:{,36:22,37:{,30:0,6:19,2:3,},2:95,30:0,}
99+
97,0,41,42:101
100+
97,0,24,2:25,12:{,2:26,27:97,}
101+
97,0,41,42:102
102+
97,0,24,2:25,12:{,2:26,27:99,}
103+
98,0,29,2:25,12:{,2:26,27:103,},32:19
104+
99,0,54,2:25,35:{,36:22,37:{,30:0,6:19,2:3,},2:95,30:0,}
105+
99,0,41,42:104
106+
99,0,24,2:25,12:{,2:26,27:97,}
107+
99,0,41,42:105
108+
99,0,24,2:25,12:{,2:26,27:99,}
109+
101,0,29,2:25,12:{,2:33,27:11,},32:15
110+
102,0,34,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:38,39:{,2:33,27:106,},30:0,}
111+
102,0,41,42:107
112+
104,0,54,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:108,30:0,}
113+
104,0,41,42:109
114+
104,0,24,2:25,12:{,2:47,48:22,49:[,50:{,30:0,6:15,2:3,},50:{,2:26,27:110,},],}
115+
105,0,54,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:111,30:0,}
116+
105,0,41,42:112
117+
105,0,24,2:25,12:{,2:47,48:22,49:[,50:{,30:0,6:15,2:3,},50:{,2:26,27:113,},],}
118+
106,0,114,2:25,37:{,2:33,27:9,},32:15
119+
102,0,41,42:115
120+
109,0,29,2:25,12:{,2:33,27:116,},32:15
121+
110,0,34,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:38,39:{,2:33,27:117,},30:0,}
122+
110,0,41,42:118
123+
112,0,54,2:25,35:{,36:22,37:{,2:33,27:73,},2:119,39:{,30:0,6:15,2:3,},30:0,}
124+
112,0,41,42:120
125+
112,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:121,},50:{,30:0,6:15,2:3,},],}
126+
112,0,41,42:122
127+
112,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:123,},50:{,30:0,6:15,2:3,},],}
128+
113,0,54,2:25,35:{,36:22,37:{,2:33,27:73,},2:38,39:{,30:0,6:15,2:3,},30:0,}
129+
113,0,41,42:124
130+
113,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:125,},50:{,30:0,6:15,2:3,},],}
131+
113,0,41,42:126
132+
113,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:127,},50:{,30:0,6:15,2:3,},],}
133+
114,0,54,2:25,35:{,36:5,37:{,2:33,27:73,},2:119,39:{,30:0,6:15,2:3,},30:0,}
134+
114,0,41,42:128
135+
114,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:123,},50:{,30:0,6:15,2:3,},],}
136+
114,0,41,42:129
137+
114,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:121,},50:{,30:0,6:15,2:3,},],}
138+
115,0,54,2:25,35:{,36:5,37:{,2:33,27:73,},2:38,39:{,30:0,6:15,2:3,},30:0,}
139+
115,0,41,42:130
140+
115,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:127,},50:{,30:0,6:15,2:3,},],}
141+
115,0,41,42:131
142+
115,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:125,},50:{,30:0,6:15,2:3,},],}
143+
116,0,114,2:25,37:{,2:33,27:9,},32:15
144+
110,0,41,42:132
145+
119,0,24,2:25,12:{,2:26,27:133,}
146+
120,0,134,2:25,134:135
147+
121,0,29,2:25,12:{,2:33,27:11,},32:15
148+
122,50,136,2:3,4:22,6:137,8:9,10:11,12:[,],13:22
149+
123,0,138,2:25,138:139
150+
124,0,140,2:25,12:{,2:33,27:106,},141:106
151+
125,0,114,2:25,37:{,2:33,27:9,},32:15
152+
126,0,54,2:25,35:{,36:22,37:{,30:0,6:15,2:3,},2:38,39:{,2:33,27:106,},30:0,}
153+
126,0,41,42:142
154+
126,0,42,2:25,42:143
155+
128,0,24,2:25,12:{,2:26,27:144,}
156+
129,0,145,2:25,32:23,146:{,2:26,27:147,},148:149
157+
130,0,150,2:25,151:5,12:{,2:26,27:152,},21:23
158+
131,0,153,2:25,21:23
159+
132,0,145,2:25,32:23,146:{,2:26,27:147,},148:154
160+
133,0,155,2:25,151:22,32:18,21:23
161+
134,0,24,2:25,12:{,30:0,6:18,2:3,}
162+
135,0,153,2:25,21:23
163+
136,0,145,2:25,32:23,146:{,2:26,27:147,},148:156
164+
137,0,150,2:25,151:22,12:{,2:26,27:157,},21:23
165+
138,0,153,2:25,21:23
166+
139,0,145,2:25,32:23,146:{,2:26,27:147,},148:154
167+
140,0,155,2:25,151:22,32:18,21:23
168+
141,0,24,2:25,12:{,30:0,6:18,2:3,}
169+
142,0,153,2:25,21:23
170+
144,0,24,2:25,12:{,2:26,27:158,}
171+
145,0,159,2:25
172+
147,50,136,2:3,4:22,6:160,8:9,10:11,12:[,],13:22
173+
148,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:161,},50:{,30:0,6:15,2:3,},],}
174+
149,0,162,2:25
175+
151,50,136,2:3,4:22,6:163,8:9,10:11,12:[,],13:22
176+
152,0,29,2:25,12:{,2:33,27:11,},32:16
177+
153,50,136,2:3,4:22,6:164,8:9,10:11,12:[,],13:22
178+
154,0,24,2:25,12:{,2:47,48:22,49:[,50:{,2:26,27:165,},50:{,30:0,6:16,2:3,},],}
179+
155,0,140,2:25,12:{,2:33,27:76,},141:106
180+
156,0,114,2:25,37:{,2:33,27:9,},32:16
181+
157,0,54,2:25,35:{,36:22,37:{,30:0,6:16,2:3,},2:38,39:{,2:33,27:106,},30:0,}
182+
157,0,41,42:166
183+
157,0,42,2:25,42:167
184+
158,0,168,2:25
185+
186+
core
187+
variable
188+
type
189+
symbol
190+
valueHolder
191+
True
192+
name
193+
Start
194+
elements
195+
1
196+
index
197+
0
198+
value
199+
used
200+
Finish
201+
N
202+
M
203+
Array
204+
X
205+
Y
206+
Dictionary
207+
file
208+
False
209+
File
210+
print
211+
None
212+
text
213+
content
214+
FOR loop counting to 500,000
215+
put
216+
domain
217+
now
218+
target
219+
int
220+
while
221+
condition
222+
negate
223+
value1
224+
less
225+
value2
226+
500000
227+
gotoPC
228+
goto
229+
16
230+
increment
231+
12
232+
take
233+
cat
234+
numeric
235+
parts
236+
None
237+
seconds
238+
Compare 500,000 long integers for equality
239+
29
240+
if
241+
is
242+
1234567890
243+
27
244+
end
245+
22
246+
Allocate and initialize a 500,000 element array
247+
set
248+
42
249+
36
250+
Allocate and initialize a 5000 element dictionary
251+
json
252+
{}
253+
100
254+
59
255+
50
256+
57
257+
property
258+
259+
52
260+
49
261+
Test arithmetic
262+
20
263+
6
264+
multiply
265+
20 * 6 =
266+
empty
267+
Fred
268+
77
269+
append
270+
72
271+
element
272+
2
273+
Some data
274+
82
275+
Numeric
276+
Set:
277+
clear
278+
Clear:
279+
toggle
280+
Toggle:
281+
boolean
282+
95
283+
Boolean
284+
96
285+
Not Boolean
286+
5
287+
101
288+
102
289+
hello
290+
107
291+
108
292+
10
293+
119
294+
even
295+
114
296+
is even
297+
odd
298+
117
299+
is odd
300+
add
301+
109
302+
51
303+
54
304+
144
305+
greater
306+
126
307+
52 is greater than
308+
127
309+
52 is not greater than
310+
131
311+
52 is less than
312+
132
313+
52 is not less than
314+
136
315+
137
316+
141
317+
142
318+
120
319+
Test multitasking
320+
fork
321+
Concurrent
322+
label
323+
Loop1:
324+
gosub
325+
Print
326+
wait
327+
multiplier
328+
154
329+
Loop1
330+
Test file operations
331+
open
332+
path
333+
test.txt
334+
mode
335+
w
336+
write
337+
line
338+
Hello, world!
339+
close
340+
r
341+
read
342+
a
343+
I'm back!
344+
Exit!
345+
exit
346+
Print:
347+
N =
348+
return
349+
Concurrent:
350+
Loop2:
351+
M =
352+
183
353+
Loop2
354+
stop
355+

ecr/test.eco

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2,0,1,2:3,4:{,2:5,6:7,}
2+
3,0,8,2:3
3+
4+
core
5+
print
6+
type
7+
None
8+
value
9+
text
10+
content
11+
Hello: world!
12+
exit
13+

0 commit comments

Comments
 (0)