-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog.txt
154 lines (153 loc) · 4.7 KB
/
log.txt
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
Line# 1: Token <INT> Lexeme int found
Line# 1: Token <ID> Lexeme main found
ScopeTable# 1
4--> <main,ID>
Line# 1: Token <LPAREN> Lexeme ( found
Line# 1: Token <RPAREN> Lexeme ) found
Line# 1: Token <LCURL> Lexeme { found
Line# 2: Token <INT> Lexeme int found
Line# 2: Token <ID> Lexeme a found
ScopeTable# 2
8--> <a,ID>
ScopeTable# 1
4--> <main,ID>
Line# 2: Token <COMMA> Lexeme , found
Line# 2: Token <ID> Lexeme b found
ScopeTable# 2
8--> <a,ID>
9--> <b,ID>
ScopeTable# 1
4--> <main,ID>
Line# 2: Token <COMMA> Lexeme , found
Error at line# 2: INVALID_ID_SUFFIX_NUM_PREFIX 12abcd
Line# 2: Token <COMMA> Lexeme , found
Line# 2: Token <ID> Lexeme abdc1 found
ScopeTable# 2
8--> <a,ID> <abdc1,ID>
9--> <b,ID>
ScopeTable# 1
4--> <main,ID>
Line# 2: Token <COMMA> Lexeme , found
Line# 2: Token <ID> Lexeme _12abcd found
ScopeTable# 2
1--> <_12abcd,ID>
8--> <a,ID> <abdc1,ID>
9--> <b,ID>
ScopeTable# 1
4--> <main,ID>
Line# 2: Token <SEMICOLON> Lexeme ; found
Error at line# 3: UNRECOGNIZED_CHAR `
Line# 4: Token <ID> Lexeme ch found
ScopeTable# 2
1--> <_12abcd,ID>
6--> <ch,ID>
8--> <a,ID> <abdc1,ID>
9--> <b,ID>
ScopeTable# 1
4--> <main,ID>
Line# 4: Token <ASSIGNOP> Lexeme = found
Line# 4: Token <CONST_CHAR> Lexeme found
Line# 4: Token <SEMICOLON> Lexeme ; found
Line# 5: Token <ID> Lexeme a found
a already exists in the current ScopeTable
Line# 5: Token <ASSIGNOP> Lexeme = found
Line# 5: Token <CONST_INT> Lexeme 5 found
Line# 5: Token <SEMICOLON> Lexeme ; found
Line# 6: Token <ID> Lexeme b found
b already exists in the current ScopeTable
Line# 6: Token <ASSIGNOP> Lexeme = found
Line# 6: Token <ID> Lexeme a found
a already exists in the current ScopeTable
Line# 6: Token <MULOP> Lexeme * found
Line# 6: Token <CONST_FLOAT> Lexeme 3.5140 found
Line# 6: Token <SEMICOLON> Lexeme ; found
Line# 7: Token <ID> Lexeme b found
b already exists in the current ScopeTable
Line# 7: Token <ASSIGNOP> Lexeme = found
Error at line# 7: TOO_MANY_DECIMAL_POINTS 1.51.40
Line# 7: Token <SEMICOLON> Lexeme ; found
Line# 8: Token <ID> Lexeme b found
b already exists in the current ScopeTable
Line# 8: Token <ASSIGNOP> Lexeme = found
Error at line# 8: ILLFORMED_NUMBER 1E10.7
Line# 8: Token <SEMICOLON> Lexeme ; found
Line# 9: Token <ID> Lexeme a found
a already exists in the current ScopeTable
Line# 9: Token <ASSIGNOP> Lexeme = found
Line# 9: Token <ID> Lexeme a found
a already exists in the current ScopeTable
Line# 9: Token <ADDOP> Lexeme + found
Line# 9: Token <CONST_INT> Lexeme 1 found
Line# 9: Token <SEMICOLON> Lexeme ; found
Line# 10: Token <CHAR> Lexeme char found
Line# 10: Token <ID> Lexeme ch found
ch already exists in the current ScopeTable
Line# 10: Token <ASSIGNOP> Lexeme = found
Line# 10: Token <CONST_CHAR> Lexeme a found
Line# 10: Token <SEMICOLON> Lexeme ; found
Line# 11: Token <ID> Lexeme ch found
ch already exists in the current ScopeTable
Line# 11: Token <ASSIGNOP> Lexeme = found
Error at line# 11: MULTICHAR_CONST_CHAR 'ab'
Line# 11: Token <SEMICOLON> Lexeme ; found
Line# 12: Token <ID> Lexeme ch found
ch already exists in the current ScopeTable
Line# 12: Token <ASSIGNOP> Lexeme = found
Error at line# 12: UNFINISHED_CONST_CHAR 'a;
Line# 13: Token <CHAR> Lexeme char found
Line# 13: Token <ID> Lexeme ch found
ch already exists in the current ScopeTable
Line# 13: Token <ASSIGNOP> Lexeme = found
Error at line# 13: UNFINISHED_STRING "
Line# 14: Token <ID> Lexeme ch found
ch already exists in the current ScopeTable
Line# 14: Token <ASSIGNOP> Lexeme = found
Line# 14: Token <CONST_CHAR> Lexeme found
Line# 14: Token <SEMICOLON> Lexeme ; found
Line# 15: Token <CHAR> Lexeme char found
Line# 15: Token <ID> Lexeme c found
ScopeTable# 2
1--> <_12abcd,ID>
6--> <ch,ID>
8--> <a,ID> <abdc1,ID>
9--> <b,ID>
10--> <c,ID>
ScopeTable# 1
4--> <main,ID>
Line# 15: Token <LSQUARE> Lexeme [ found
Line# 15: Token <RSQUARE> Lexeme ] found
Line# 15: Token <ASSIGNOP> Lexeme = found
Error at line# 15: UNFINISHED_STRING "\t\;
Line# 16: Token <ID> Lexeme printf found
ScopeTable# 2
1--> <_12abcd,ID>
6--> <ch,ID>
8--> <a,ID> <abdc1,ID>
9--> <b,ID>
10--> <c,ID> <printf,ID>
ScopeTable# 1
4--> <main,ID>
Line# 16: Token <LPAREN> Lexeme ( found
Error at line# 18: UNFINISHED_STRING "\
\
\)
Line# 19: Token <SINGLE LINE COMMENT> Lexeme // a comment found
Line# 22: Token <MULTI LINE COMMENT> Lexeme /** another
*** multi line
//inserted
comment ***/ found
Line# 28: Token <RETURN> Lexeme return found
Line# 28: Token <CONST_INT> Lexeme 0 found
Line# 28: Token <SEMICOLON> Lexeme ; found
Error at line# 30: UNFINISHED_COMMENT /* unfinished
}
ScopeTable# 2
1--> <_12abcd,ID>
6--> <ch,ID>
8--> <a,ID> <abdc1,ID>
9--> <b,ID>
10--> <c,ID> <printf,ID>
ScopeTable# 1
4--> <main,ID>
Total lines: 30
Total errors: 10