-
Notifications
You must be signed in to change notification settings - Fork 1
/
sij.rbnf
59 lines (48 loc) · 1022 Bytes
/
sij.rbnf
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
START :
<BOF>
'runtime' <ID>
[Attrs]
Instrs
<EOF>
;
Instrs : [Instrs] Instr;
Instr : 'load' <ID>
| 'store' <ID>
| 'deref' <ID>
| 'deref!' <ID>
| 'const' <PY>
| 'extern' <PY>
| 'glob' <ID>
| 'print'
| 'pop'
| 'prj'
| 'prj!'
| 'indir'
| 'rot' <INT>
| 'dup' <INT>
| 'goto' <ID>
| 'goto-if' <ID>
| 'goto-if-not' <ID>
| 'label' <ID>
| 'blockaddr' <ID>
| 'call' <INT>
| 'list' <INT>
| 'tuple' <INT>
| 'return'
| 'line' <INT>
| 'defun' [Attrs] '{' Instrs '}'
| 'switch' ['|'] JumpCases
;
JumpCase : <INT> '=>' <ID>;
JumpCase : '_' '=>' <ID>;
JumpCases : [JumpCases '|'] JumpCase;
Attrs : [Attrs] Attr;
Attr : 'document' <STRING>
| 'filename' <STRING>
| 'free' IDs
| 'name' <STRING>
| 'args' IDs
| 'firstlineno' <INT>
;
IDs : '[' [IDList] ']';
IDList : [IDList] <ID>;