summaryrefslogtreecommitdiff
path: root/tests/lexers/ucode/example.txt
blob: 0267e9a83f285b71e514344c105dc772041575c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
---input---
version U12.1.00
uid     version.u1-1494453463-0
impl    local
global  1
        0,000005,version,0


proc version
        local   0,000000,tab
        local   1,000000,find
        local   2,000000,many
        con     0,010000,8,126,145,162,163,151,157,156,040
        con     1,002000,1,8
        con     2,020000,11,060,061,062,063,064,065,066,067,070,071,056
        con     3,002000,1,1
        declend
        filen   version.icn
        line    23
        colm    11
        synt    any
        mark    L1
        line    25
        colm    4
        synt    any
        keywd   version
        line    25
        colm    13
        synt    any
        bscan
        mark    L2
        mark    L3
        var     0
        pnull
        var     1
        str     0
        line    26
        colm    15
        synt    any
        invoke  1
        int     1
        line    26
        colm    28
        synt    any
        plus
        line    26
        colm    10
        synt    any
        invoke  1
        line    26
        colm    33
        synt    any
        esusp
        goto    L4
lab L3
        line    26
        colm    35
        synt    any
        pfail
lab L4
        unmark
lab L2
        var     0
        var     2
        cset    2
        line    27
        colm    15
        synt    any
        invoke  1
        line    27
        colm    10
        synt    any
        invoke  1
        line    27
        colm    32
        synt    any
        bscan
        mark    L5
        var     0
        pnull
        int     3
        line    27
        colm    45
        synt    any
        neg
        line    27
        colm    44
        synt    any
        invoke  1
        line    27
        colm    34
        synt    any
        pret
lab L5
        synt    any
        pfail
        line    27
        colm    32
        synt    any
        escan
        line    25
        colm    13
        synt    any
        escan
        unmark
lab L1
        pnull
        line    30
        colm    1
        synt    any
        pfail
        end

---tokens---
'version'     Name.Function
' '           Text
'U12'         Text
'.1'          Literal.Number.Float
'.00'         Literal.Number.Float
'\n'          Text

'uid'         Name.Function
'     '       Text
'version'     Name.Function
'.'           Punctuation
'u1-1494453463-0' Text
'\n'          Text

'impl'        Name.Function
'    '        Text
'local'       Name.Function
'\n'          Text

'global'      Name.Function
'  '          Text
'1\n        ' Literal.Number.Integer
'0'           Literal.Number.Integer
','           Punctuation
'000005'      Literal.Number.Integer
','           Punctuation
'version'     Name.Function
','           Punctuation
'0\n\n\n'     Literal.Number.Integer

'proc'        Keyword.Declaration
' '           Text
'version'     Name.Function
'\n        '  Text
'local'       Name.Function
'   '         Text
'0'           Literal.Number.Integer
','           Punctuation
'000000'      Literal.Number.Integer
','           Punctuation
'tab'         Text
'\n        '  Text
'local'       Name.Function
'   '         Text
'1'           Literal.Number.Integer
','           Punctuation
'000000'      Literal.Number.Integer
','           Punctuation
'find'        Text
'\n        '  Text
'local'       Name.Function
'   '         Text
'2'           Literal.Number.Integer
','           Punctuation
'000000'      Literal.Number.Integer
','           Punctuation
'many'        Text
'\n        '  Text
'con'         Name.Function
'     '       Text
'0'           Literal.Number.Integer
','           Punctuation
'010000'      Literal.Number.Integer
','           Punctuation
'8'           Literal.Number.Integer
','           Punctuation
'126'         Literal.Number.Integer
','           Punctuation
'145'         Literal.Number.Integer
','           Punctuation
'162'         Literal.Number.Integer
','           Punctuation
'163'         Literal.Number.Integer
','           Punctuation
'151'         Literal.Number.Integer
','           Punctuation
'157'         Literal.Number.Integer
','           Punctuation
'156'         Literal.Number.Integer
','           Punctuation
'040\n        ' Literal.Number.Integer
'con'         Name.Function
'     '       Text
'1'           Literal.Number.Integer
','           Punctuation
'002000'      Literal.Number.Integer
','           Punctuation
'1'           Literal.Number.Integer
','           Punctuation
'8\n        ' Literal.Number.Integer
'con'         Name.Function
'     '       Text
'2'           Literal.Number.Integer
','           Punctuation
'020000'      Literal.Number.Integer
','           Punctuation
'11'          Literal.Number.Integer
','           Punctuation
'060'         Literal.Number.Integer
','           Punctuation
'061'         Literal.Number.Integer
','           Punctuation
'062'         Literal.Number.Integer
','           Punctuation
'063'         Literal.Number.Integer
','           Punctuation
'064'         Literal.Number.Integer
','           Punctuation
'065'         Literal.Number.Integer
','           Punctuation
'066'         Literal.Number.Integer
','           Punctuation
'067'         Literal.Number.Integer
','           Punctuation
'070'         Literal.Number.Integer
','           Punctuation
'071'         Literal.Number.Integer
','           Punctuation
'056\n        ' Literal.Number.Integer
'con'         Name.Function
'     '       Text
'3'           Literal.Number.Integer
','           Punctuation
'002000'      Literal.Number.Integer
','           Punctuation
'1'           Literal.Number.Integer
','           Punctuation
'1\n        ' Literal.Number.Integer
'declend'     Name.Function
'\n        '  Text
'filen'       Comment
'   '         Text
'version'     Name.Function
'.'           Punctuation
'icn'         Text
'\n        '  Text
'line'        Comment
'    '        Text
'23\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'11\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'mark'        Keyword.Declaration
'    '        Text
'L1'          Text
'\n        '  Text
'line'        Comment
'    '        Text
'25\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'4\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'keywd'       Keyword.Declaration
'   '         Text
'version'     Name.Function
'\n        '  Text
'line'        Comment
'    '        Text
'25\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'13\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'bscan'       Keyword.Declaration
'\n        '  Text
'mark'        Keyword.Declaration
'    '        Text
'L2'          Text
'\n        '  Text
'mark'        Keyword.Declaration
'    '        Text
'L3'          Text
'\n        '  Text
'var'         Keyword.Declaration
'     '       Text
'0\n        ' Literal.Number.Integer
'pnull'       Keyword.Declaration
'\n        '  Text
'var'         Keyword.Declaration
'     '       Text
'1\n        ' Literal.Number.Integer
'str'         Keyword.Declaration
'     '       Text
'0\n        ' Literal.Number.Integer
'line'        Comment
'    '        Text
'26\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'15\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'invoke'      Keyword.Declaration
'  '          Text
'1\n        ' Literal.Number.Integer
'int'         Keyword.Declaration
'     '       Text
'1\n        ' Literal.Number.Integer
'line'        Comment
'    '        Text
'26\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'28\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'plus'        Keyword.Declaration
'\n        '  Text
'line'        Comment
'    '        Text
'26\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'10\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'invoke'      Keyword.Declaration
'  '          Text
'1\n        ' Literal.Number.Integer
'line'        Comment
'    '        Text
'26\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'33\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'esusp'       Keyword.Declaration
'\n        '  Text
'goto'        Keyword.Declaration
'    '        Text
'L4'          Text
'\n'          Text

'lab'         Name.Function
' '           Text
'L3'          Text
'\n        '  Text
'line'        Comment
'    '        Text
'26\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'35\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'pfail'       Keyword.Declaration
'\n'          Text

'lab'         Name.Function
' '           Text
'L4'          Text
'\n        '  Text
'unmark'      Keyword.Declaration
'\n'          Text

'lab'         Name.Function
' '           Text
'L2'          Text
'\n        '  Text
'var'         Keyword.Declaration
'     '       Text
'0\n        ' Literal.Number.Integer
'var'         Keyword.Declaration
'     '       Text
'2\n        ' Literal.Number.Integer
'cset'        Keyword.Declaration
'    '        Text
'2\n        ' Literal.Number.Integer
'line'        Comment
'    '        Text
'27\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'15\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'invoke'      Keyword.Declaration
'  '          Text
'1\n        ' Literal.Number.Integer
'line'        Comment
'    '        Text
'27\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'10\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'invoke'      Keyword.Declaration
'  '          Text
'1\n        ' Literal.Number.Integer
'line'        Comment
'    '        Text
'27\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'32\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'bscan'       Keyword.Declaration
'\n        '  Text
'mark'        Keyword.Declaration
'    '        Text
'L5'          Text
'\n        '  Text
'var'         Keyword.Declaration
'     '       Text
'0\n        ' Literal.Number.Integer
'pnull'       Keyword.Declaration
'\n        '  Text
'int'         Keyword.Declaration
'     '       Text
'3\n        ' Literal.Number.Integer
'line'        Comment
'    '        Text
'27\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'45\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'neg'         Keyword.Declaration
'\n        '  Text
'line'        Comment
'    '        Text
'27\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'44\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'invoke'      Keyword.Declaration
'  '          Text
'1\n        ' Literal.Number.Integer
'line'        Comment
'    '        Text
'27\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'34\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'pret'        Keyword.Declaration
'\n'          Text

'lab'         Name.Function
' '           Text
'L5'          Text
'\n        '  Text
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'pfail'       Keyword.Declaration
'\n        '  Text
'line'        Comment
'    '        Text
'27\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'32\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'escan'       Keyword.Declaration
'\n        '  Text
'line'        Comment
'    '        Text
'25\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'13\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'escan'       Keyword.Declaration
'\n        '  Text
'unmark'      Keyword.Declaration
'\n'          Text

'lab'         Name.Function
' '           Text
'L1'          Text
'\n        '  Text
'pnull'       Keyword.Declaration
'\n        '  Text
'line'        Comment
'    '        Text
'30\n        ' Literal.Number.Integer
'colm'        Comment
'    '        Text
'1\n        ' Literal.Number.Integer
'synt'        Comment
'    '        Text
'any'         Name.Constant
'\n        '  Text
'pfail'       Keyword.Declaration
'\n        '  Text
'end'         Name.Function
'\n'          Text