xasm.interp 7.21 KB
Newer Older
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
token literal names:
null
'__qpu__'
'void'
'('
'qbit'
','
')'
'{'
'}'
'['
'&'
'='
']'
'int'
'double'
'float'
'std::vector<double>'
';'
'return'
'+'
'-'
'*'
'/'
'^'
Mccaskey, Alex's avatar
Mccaskey, Alex committed
26
'pi'
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
'sin'
'cos'
'tan'
'exp'
'ln'
'sqrt'
null
null
null
null
null
null
null

token symbolic names:
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
COMMENT
ID
REAL
INT
STRING
WS
EOL

rule names:
xaccsrc
xacckernel
xacclambda
typedparam
type
mainprog
program
line
statement
comment
instruction
bufferIndex
Mccaskey, Alex's avatar
Mccaskey, Alex committed
94
bitsOrParamType
95
96
97
98
99
100
101
102
103
104
105
optionsMap
optionsType
explist
exp
unaryop
id
real
string


atn:
Mccaskey, Alex's avatar
Mccaskey, Alex committed
106
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 39, 219, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 3, 2, 3, 2, 5, 2, 47, 10, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 57, 10, 3, 12, 3, 14, 3, 60, 11, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 5, 4, 69, 10, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 7, 4, 77, 10, 4, 12, 4, 14, 4, 80, 11, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 6, 8, 95, 10, 8, 13, 8, 14, 8, 96, 3, 9, 6, 9, 100, 10, 9, 13, 9, 14, 9, 101, 3, 9, 5, 9, 105, 10, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 112, 10, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 121, 10, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 7, 14, 133, 10, 14, 12, 14, 14, 14, 136, 11, 14, 3, 14, 7, 14, 139, 10, 14, 12, 14, 14, 14, 142, 11, 14, 5, 14, 144, 10, 14, 3, 15, 3, 15, 3, 15, 3, 15, 7, 15, 150, 10, 15, 12, 15, 14, 15, 153, 11, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 7, 17, 166, 10, 17, 12, 17, 14, 17, 169, 11, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 5, 18, 189, 10, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 7, 18, 206, 10, 18, 12, 18, 14, 18, 209, 11, 18, 3, 19, 3, 19, 3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 2, 3, 34, 23, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 2, 5, 3, 2, 12, 13, 3, 2, 15, 18, 3, 2, 27, 32, 2, 224, 2, 46, 3, 2, 2, 2, 4, 48, 3, 2, 2, 2, 6, 66, 3, 2, 2, 2, 8, 86, 3, 2, 2, 2, 10, 89, 3, 2, 2, 2, 12, 91, 3, 2, 2, 2, 14, 94, 3, 2, 2, 2, 16, 104, 3, 2, 2, 2, 18, 111, 3, 2, 2, 2, 20, 113, 3, 2, 2, 2, 22, 115, 3, 2, 2, 2, 24, 124, 3, 2, 2, 2, 26, 143, 3, 2, 2, 2, 28, 145, 3, 2, 2, 2, 30, 156, 3, 2, 2, 2, 32, 162, 3, 2, 2, 2, 34, 188, 3, 2, 2, 2, 36, 210, 3, 2, 2, 2, 38, 212, 3, 2, 2, 2, 40, 214, 3, 2, 2, 2, 42, 216, 3, 2, 2, 2, 44, 47, 5, 4, 3, 2, 45, 47, 5, 6, 4, 2, 46, 44, 3, 2, 2, 2, 46, 45, 3, 2, 2, 2, 47, 3, 3, 2, 2, 2, 48, 49, 7, 3, 2, 2, 49, 50, 7, 4, 2, 2, 50, 51, 5, 38, 20, 2, 51, 52, 7, 5, 2, 2, 52, 53, 7, 6, 2, 2, 53, 58, 5, 38, 20, 2, 54, 55, 7, 7, 2, 2, 55, 57, 5, 8, 5, 2, 56, 54, 3, 2, 2, 2, 57, 60, 3, 2, 2, 2, 58, 56, 3, 2, 2, 2, 58, 59, 3, 2, 2, 2, 59, 61, 3, 2, 2, 2, 60, 58, 3, 2, 2, 2, 61, 62, 7, 8, 2, 2, 62, 63, 7, 9, 2, 2, 63, 64, 5, 12, 7, 2, 64, 65, 7, 10, 2, 2, 65, 5, 3, 2, 2, 2, 66, 68, 7, 11, 2, 2, 67, 69, 9, 2, 2, 2, 68, 67, 3, 2, 2, 2, 68, 69, 3, 2, 2, 2, 69, 70, 3, 2, 2, 2, 70, 71, 7, 14, 2, 2, 71, 72, 7, 5, 2, 2, 72, 73, 7, 6, 2, 2, 73, 78, 5, 38, 20, 2, 74, 75, 7, 7, 2, 2, 75, 77, 5, 8, 5, 2, 76, 74, 3, 2, 2, 2, 77, 80, 3, 2, 2, 2, 78, 76, 3, 2, 2, 2, 78, 79, 3, 2, 2, 2, 79, 81, 3, 2, 2, 2, 80, 78, 3, 2, 2, 2, 81, 82, 7, 8, 2, 2, 82, 83, 7, 9, 2, 2, 83, 84, 5, 12, 7, 2, 84, 85, 7, 10, 2, 2, 85, 7, 3, 2, 2, 2, 86, 87, 5, 10, 6, 2, 87, 88, 5, 38, 20, 2, 88, 9, 3, 2, 2, 2, 89, 90, 9, 3, 2, 2, 90, 11, 3, 2, 2, 2, 91, 92, 5, 14, 8, 2, 92, 13, 3, 2, 2, 2, 93, 95, 5, 16, 9, 2, 94, 93, 3, 2, 2, 2, 95, 96, 3, 2, 2, 2, 96, 94, 3, 2, 2, 2, 96, 97, 3, 2, 2, 2, 97, 15, 3, 2, 2, 2, 98, 100, 5, 18, 10, 2, 99, 98, 3, 2, 2, 2, 100, 101, 3, 2, 2, 2, 101, 99, 3, 2, 2, 2, 101, 102, 3, 2, 2, 2, 102, 105, 3, 2, 2, 2, 103, 105, 5, 20, 11, 2, 104, 99, 3, 2, 2, 2, 104, 103, 3, 2, 2, 2, 105, 17, 3, 2, 2, 2, 106, 107, 5, 22, 12, 2, 107, 108, 7, 19, 2, 2, 108, 112, 3, 2, 2, 2, 109, 110, 7, 20, 2, 2, 110, 112, 7, 19, 2, 2, 111, 106, 3, 2, 2, 2, 111, 109, 3, 2, 2, 2, 112, 19, 3, 2, 2, 2, 113, 114, 7, 33, 2, 2, 114, 21, 3, 2, 2, 2, 115, 116, 5, 38, 20, 2, 116, 117, 7, 5, 2, 2, 117, 120, 5, 32, 17, 2, 118, 119, 7, 7, 2, 2, 119, 121, 5, 28, 15, 2, 120, 118, 3, 2, 2, 2, 120, 121, 3, 2, 2, 2, 121, 122, 3, 2, 2, 2, 122, 123, 7, 8, 2, 2, 123, 23, 3, 2, 2, 2, 124, 125, 5, 38, 20, 2, 125, 126, 7, 11, 2, 2, 126, 127, 7, 36, 2, 2, 127, 128, 7, 14, 2, 2, 128, 25, 3, 2, 2, 2, 129, 134, 5, 24, 13, 2, 130, 131, 7, 7, 2, 2, 131, 133, 5, 24, 13, 2, 132, 130, 3, 2, 2, 2, 133, 136, 3, 2, 2, 2, 134, 132, 3, 2, 2, 2, 134, 135, 3, 2, 2, 2, 135, 144, 3, 2, 2, 2, 136, 134, 3, 2, 2, 2, 137, 139, 5, 34, 18, 2, 138, 137, 3, 2, 2, 2, 139, 142, 3, 2, 2, 2, 140, 138, 3, 2, 2, 2, 140, 141, 3, 2, 2, 2, 141, 144, 3, 2, 2, 2, 142, 140, 3, 2, 2, 2, 143, 129, 3, 2, 2, 2, 143, 140, 3, 2, 2, 2, 144, 27, 3, 2, 2, 2, 145, 146, 7, 9, 2, 2, 146, 151, 5, 30, 16, 2, 147, 148, 7, 7, 2, 2, 148, 150, 5, 30, 16, 2, 149, 147, 3, 2, 2, 2, 150, 153, 3, 2, 2, 2, 151, 149, 3, 2, 2, 2, 151, 152, 3, 2, 2, 2, 152, 154, 3, 2, 2, 2, 153, 151, 3, 2, 2, 2, 154, 155, 7, 10, 2, 2, 155, 29, 3, 2, 2, 2, 156, 157, 7, 9, 2, 2, 157, 158, 5, 42, 22, 2, 158, 159, 7, 7, 2, 2, 159, 160, 5, 34, 18, 2, 160, 161, 7, 10, 2, 2, 161, 31, 3, 2, 2, 2, 162, 167, 5, 34, 18, 2, 163, 164, 7, 7, 2, 2, 164, 166, 5, 34, 18, 2, 165, 163, 3, 2, 2, 2, 166, 169, 3, 2, 2, 2, 167, 165, 3, 2, 2, 2, 167, 168, 3, 2, 2, 2, 168, 33, 3, 2, 2, 2, 169, 167, 3, 2, 2, 2, 170, 171, 8, 18, 1, 2, 171, 189, 5, 38, 20, 2, 172, 173, 7, 22, 2, 2, 173, 189, 5, 34, 18, 11, 174, 175, 7, 5, 2, 2, 175, 176, 5, 34, 18, 2, 176, 177, 7, 8, 2, 2, 177, 189, 3, 2, 2, 2, 178, 179, 5, 36, 19, 2, 179, 180, 7, 5, 2, 2, 180, 181, 5, 34, 18, 2, 181, 182, 7, 8, 2, 2, 182, 189, 3, 2, 2, 2, 183, 189, 5, 42, 22, 2, 184, 189, 5, 40, 21, 2, 185, 189, 7, 36, 2, 2, 186, 189, 7, 26, 2, 2, 187, 189, 5, 24, 13, 2, 188, 170, 3, 2, 2, 2, 188, 172, 3, 2, 2, 2, 188, 174, 3, 2, 2, 2, 188, 178, 3, 2, 2, 2, 188, 183, 3, 2, 2, 2, 188, 184, 3, 2, 2, 2, 188, 185, 3, 2, 2, 2, 188, 186, 3, 2, 2, 2, 188, 187, 3, 2, 2, 2, 189, 207, 3, 2, 2, 2, 190, 191, 12, 15, 2, 2, 191, 192, 7, 21, 2, 2, 192, 206, 5, 34, 18, 16, 193, 194, 12, 14, 2, 2, 194, 195, 7, 22, 2, 2, 195, 206, 5, 34, 18, 15, 196, 197, 12, 13, 2, 2, 197, 198, 7, 23, 2, 2, 198, 206, 5, 34, 18, 14, 199, 200, 12, 12, 2, 2, 200, 201, 7, 24, 2, 2, 201, 206, 5, 34, 18, 13, 202, 203, 12, 10, 2, 2, 203, 204, 7, 25, 2, 2, 204, 206, 5, 34, 18, 11, 205, 190, 3, 2, 2, 2, 205, 193, 3, 2, 2, 2, 205, 196, 3, 2, 2, 2, 205, 199, 3, 2, 2, 2, 205, 202, 3, 2, 2, 2, 206, 209, 3, 2, 2, 2, 207, 205, 3, 2, 2, 2, 207, 208, 3, 2, 2, 2, 208, 35, 3, 2, 2, 2, 209, 207, 3, 2, 2, 2, 210, 211, 9, 4, 2, 2, 211, 37, 3, 2, 2, 2, 212, 213, 7, 34, 2, 2, 213, 39, 3, 2, 2, 2, 214, 215, 7, 35, 2, 2, 215, 41, 3, 2, 2, 2, 216, 217, 7, 37, 2, 2, 217, 43, 3, 2, 2, 2, 19, 46, 58, 68, 78, 96, 101, 104, 111, 120, 134, 140, 143, 151, 167, 188, 205, 207]