This repository was archived by the owner on Feb 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.txt
More file actions
211 lines (203 loc) · 2.19 KB
/
output.txt
File metadata and controls
211 lines (203 loc) · 2.19 KB
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
int,16
ID, 0
(,-
),-
{,-
double,8
3,15 ERROR :expected unqualified-id before numeric constant: 0_
Comment: 非法符号0_p,
报错且跳过balabala进入下一行
double,8
ID, 1
=,-
NUM, 0
;,-
Comment:符号+正确的十六进制浮点数
Comment:保留字 + 正确的十六进制浮点数
auto,0
ID, 2
=,-
NUM, 1
;,-
Comment:非法数字
double,8
ID, 3
=,-
11,19 ERROR :no digits in hexadecimal floating constant: 0x;
Comment:缺位的十六进制浮点数
double,8
ID, 4
=,-
13,19 ERROR :no digits in hexadecimal floating constant: 0x.;
Comment:十六进制浮点数缺少指数
double,8
ID, 5
=,-
15,19 ERROR :hexadecimal floating constants require an exponent: 0x1b3.;
Comment:十六进制浮点数指数缺位
double,8
ID, 6
=,-
17,19 ERROR :exponent has no digits: 0x.Fap;
Comment:正确的八进制数
int,16
ID, 7
=,-
NUM, 2
;,-
Comment:非法的八进制数
int,16
ID, 8
=,-
21,16 ERROR :invalid digit in octal constant: 009
Comment:合法的十进制浮点数
double,8
ID, 9
=,-
NUM, 3
;,-
Comment:合法的十进制整数
int,16
ID, 10
=,-
NUM, 4
;,-
Comment:合法的十进制浮点数
int,16
ID, 11
=,-
NUM, 5
;,-
Comment:合法的十进制带指数浮点数
double,8
ID, 12
=,-
NUM, 6
;,-
Comment:十进制浮点数指数缺位
double,8
ID, 13
=,-
31,19 ERROR :exponent has no digits: 9.123e;
double,8
ID, 14
=,-
NUM, 7
,,-
ID, 15
=,-
NUM, 8
;,-
ID, 14
+=,-
ID, 1
>>,-
NUM, 9
;,-
ID, 15
&=,-
(,-
NUM, 10
^,-
NUM, 10
),-
?,-
ID, 7
:,-
ID, 10
;,-
ID, 16
ID, 17
=,-
STR, 0
ID, 18
=,-
STR, 1
;,-
if,15
(,-
ID, 18
==,-
STR, 2
),-
{,-
for,13
(,-
int,16
ID, 10
=,-
NUM, 4
;,-
ID, 10
<,-
NUM, 11
;,-
ID, 10
++,-
),-
ID, 19
<<,-
NUM, 12
;,-
},-
ID, 16
ID, 20
=,-
STR, 3
;,-
ID, 16
ID, 21
=,-
43,20 ERROR :missing terminating " character: this is a
ID, 22
ID, 16
44,38 ERROR :missing terminating " character: ;
},-
46:illegal end!
------Tables------
ID TABLE: 23
0 main
1 a
2 aa
3 b
4 c
5 d
6 e
7 f
8 g
9 h
10 i
11 j
12 k
13 l
14 m
15 n
16 string
17 o
18 p
19 cout
20 q
21 r
22 error
NUM TABLE: 13
0 0x.Fap-10
1 0x3.Fap+10
2 0071
3 012.34
4 0
5 .123
6 9.123E-999
7 7
8 15
9 11
10 1
11 3
12 6
STR TABLE: 4
0 i'm a "lex"
1 \x72
2 r
3 this is
a correct string
------Tables End------
Num of rows: 45