Bonjour ,

J'essaye de générer du code avec ANTLR pour la conception d'un langage.

Mais j'ai des erreurs et je ne parviens pas à le faire.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
error(50): :5:39: syntax error: missing RPAREN at ';' while looking for rule element
error(50): :5:41: syntax error: '|' came as a complete surprise to me
error(50): :5:50: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:65: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:82: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:113: syntax error: mismatched input ';' expecting COLON while matching a lexer rule
error(50): :5:125: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:134: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:165: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :7:0: syntax error: extraneous input 'ClauseDefault' expecting COLON while matching a lexer rule
error(50): :8:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :11:0: syntax error: unterminated rule (missing ';') detected at 'ClauseWhen :' while looking for lexer rule element
error(50): :12:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :15:0: syntax error: unterminated rule (missing ';') detected at 'ClauseDefault :' while looking for lexer rule element
error(50): :16:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :19:0: syntax error: unterminated rule (missing ';') detected at 'Statement :' while looking for lexer rule element
error(50): :21:0: syntax error: unterminated rule (missing ';') detected at 'ConditionalStmt :' while looking for lexer rule element
error(50): :23:0: syntax error: unterminated rule (missing ';') detected at 'Entier :' while looking for lexer rule element
error(50): :23:10: syntax error: '-' came as a complete surprise to me
error(50): :24:0: syntax error: unterminated rule (missing ';') detected at 'Chiffre :' while looking for lexer rule element
error(50): :26:0: syntax error: unterminated rule (missing ';') detected at 'Id :' while looking for lexer rule element
error(50): :27:0: syntax error: unterminated rule (missing ';') detected at 'Lettre :' while looking for lexer rule element
error(50): :29:0: syntax error: unterminated rule (missing ';') detected at 'Type :' while looking for lexer rule element
error(50): :30:0: syntax error: unterminated rule (missing ';') detected at 'Scalar :' while looking for lexer rule element
error(50): :31:0: syntax error: unterminated rule (missing ';') detected at 'Array :' while looking for lexer rule element
error(50): :33:0: syntax error: unterminated rule (missing ';') detected at 'VarDecl :' while looking for lexer rule element
error(50): :35:0: syntax error: unterminated rule (missing ';') detected at 'ExprD :' while looking for lexer rule element
error(50): :35:59: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :37:0: syntax error: unterminated rule (missing ';') detected at 'ExprEnt :' while looking for lexer rule element
error(50): :45:0: syntax error: unterminated rule (missing ';') detected at 'ExprBool :' while looking for lexer rule element
error(50): :55:0: syntax error: unterminated rule (missing ';') detected at 'ExprCase :' while looking for lexer rule element
error(50): :58:0: syntax error: unterminated rule (missing ';') detected at 'ExprG :' while looking for lexer rule element
error(50): :61:0: syntax error: unterminated rule (missing ';') detected at 'Instruction :' while looking for lexer rule element
error(50): :69:0: syntax error: unterminated rule (missing ';') detected at 'Action :' while looking for lexer rule element
error(50): :74:0: syntax error: unterminated rule (missing ';') detected at 'FctDecl :' while looking for lexer rule element
error(50): :74:38: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :74:51: syntax error: unterminated rule (missing ';') detected at ': (' while looking for lexer rule element
error(50): :74:61: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :74:67: syntax error: ')' came as a complete surprise to me while matching rule preamble
error(50): :75:26: syntax error: ')' came as a complete surprise to me while matching a lexer rule
error(50): :76:17: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :80:0: syntax error: unterminated rule (missing ';') detected at 'FileDecl :' while looking for lexer rule element
error(50): :81:0: syntax error: unterminated rule (missing ';') detected at 'FileName :' while looking for lexer rule element
error(50): :83:0: syntax error: unterminated rule (missing ';') detected at 'root :' while looking for lexer rule element
error(110): c.g4:3:7: can't find or load grammar Words
error(50): :5:39: syntax error: missing RPAREN at ';' while looking for rule element
error(50): :5:41: syntax error: '|' came as a complete surprise to me
error(50): :5:50: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:65: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:82: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:113: syntax error: mismatched input ';' expecting COLON while matching a lexer rule
error(50): :5:125: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:134: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:165: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :7:0: syntax error: extraneous input 'ClauseDefault' expecting COLON while matching a lexer rule
error(50): :8:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :11:0: syntax error: unterminated rule (missing ';') detected at 'ClauseWhen :' while looking for lexer rule element
error(50): :12:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :15:0: syntax error: unterminated rule (missing ';') detected at 'ClauseDefault :' while looking for lexer rule element
error(50): :16:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :19:0: syntax error: unterminated rule (missing ';') detected at 'Statement :' while looking for lexer rule element
error(50): :21:0: syntax error: unterminated rule (missing ';') detected at 'ConditionalStmt :' while looking for lexer rule element
error(50): :23:0: syntax error: unterminated rule (missing ';') detected at 'Entier :' while looking for lexer rule element
error(50): :23:10: syntax error: '-' came as a complete surprise to me
error(50): :24:0: syntax error: unterminated rule (missing ';') detected at 'Chiffre :' while looking for lexer rule element
error(50): :26:0: syntax error: unterminated rule (missing ';') detected at 'Id :' while looking for lexer rule element
error(50): :27:0: syntax error: unterminated rule (missing ';') detected at 'Lettre :' while looking for lexer rule element
error(50): :29:0: syntax error: unterminated rule (missing ';') detected at 'Type :' while looking for lexer rule element
error(50): :30:0: syntax error: unterminated rule (missing ';') detected at 'Scalar :' while looking for lexer rule element
error(50): :31:0: syntax error: unterminated rule (missing ';') detected at 'Array :' while looking for lexer rule element
error(50): :33:0: syntax error: unterminated rule (missing ';') detected at 'VarDecl :' while looking for lexer rule element
error(50): :35:0: syntax error: unterminated rule (missing ';') detected at 'ExprD :' while looking for lexer rule element
error(50): :35:59: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :37:0: syntax error: unterminated rule (missing ';') detected at 'ExprEnt :' while looking for lexer rule element
error(50): :45:0: syntax error: unterminated rule (missing ';') detected at 'ExprBool :' while looking for lexer rule element
error(50): :55:0: syntax error: unterminated rule (missing ';') detected at 'ExprCase :' while looking for lexer rule element
error(50): :58:0: syntax error: unterminated rule (missing ';') detected at 'ExprG :' while looking for lexer rule element
error(50): :61:0: syntax error: unterminated rule (missing ';') detected at 'Instruction :' while looking for lexer rule element
error(50): :69:0: syntax error: unterminated rule (missing ';') detected at 'Action :' while looking for lexer rule element
error(50): :74:0: syntax error: unterminated rule (missing ';') detected at 'FctDecl :' while looking for lexer rule element
error(50): :74:38: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :74:51: syntax error: unterminated rule (missing ';') detected at ': (' while looking for lexer rule element
error(50): :74:61: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :74:67: syntax error: ')' came as a complete surprise to me while matching rule preamble
error(50): :75:26: syntax error: ')' came as a complete surprise to me while matching a lexer rule
error(50): :76:17: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :80:0: syntax error: unterminated rule (missing ';') detected at 'FileDecl :' while looking for lexer rule element
error(50): :81:0: syntax error: unterminated rule (missing ';') detected at 'FileName :' while looking for lexer rule element
error(50): :83:0: syntax error: unterminated rule (missing ';') detected at 'root :' while looking for lexer rule element
error(110): c.g4:3:7: can't find or load grammar Words
error(50): :5:39: syntax error: missing RPAREN at ';' while looking for rule element
error(50): :5:41: syntax error: '|' came as a complete surprise to me
error(50): :5:50: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:65: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:82: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:113: syntax error: mismatched input ';' expecting COLON while matching a lexer rule
error(50): :5:125: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:134: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:165: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :7:0: syntax error: extraneous input 'ClauseDefault' expecting COLON while matching a lexer rule
error(50): :8:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :11:0: syntax error: unterminated rule (missing ';') detected at 'ClauseWhen :' while looking for lexer rule element
error(50): :12:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :15:0: syntax error: unterminated rule (missing ';') detected at 'ClauseDefault :' while looking for lexer rule element
error(50): :16:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :19:0: syntax error: unterminated rule (missing ';') detected at 'Statement :' while looking for lexer rule element
error(50): :21:0: syntax error: unterminated rule (missing ';') detected at 'ConditionalStmt :' while looking for lexer rule element
error(50): :23:0: syntax error: unterminated rule (missing ';') detected at 'Entier :' while looking for lexer rule element
error(50): :23:10: syntax error: '-' came as a complete surprise to me
error(50): :24:0: syntax error: unterminated rule (missing ';') detected at 'Chiffre :' while looking for lexer rule element
error(50): :26:0: syntax error: unterminated rule (missing ';') detected at 'Id :' while looking for lexer rule element
error(50): :27:0: syntax error: unterminated rule (missing ';') detected at 'Lettre :' while looking for lexer rule element
error(50): :29:0: syntax error: unterminated rule (missing ';') detected at 'Type :' while looking for lexer rule element
error(50): :30:0: syntax error: unterminated rule (missing ';') detected at 'Scalar :' while looking for lexer rule element
error(50): :31:0: syntax error: unterminated rule (missing ';') detected at 'Array :' while looking for lexer rule element
error(50): :33:0: syntax error: unterminated rule (missing ';') detected at 'VarDecl :' while looking for lexer rule element
error(50): :35:0: syntax error: unterminated rule (missing ';') detected at 'ExprD :' while looking for lexer rule element
error(50): :35:59: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :37:0: syntax error: unterminated rule (missing ';') detected at 'ExprEnt :' while looking for lexer rule element
error(50): :45:0: syntax error: unterminated rule (missing ';') detected at 'ExprBool :' while looking for lexer rule element
error(50): :55:0: syntax error: unterminated rule (missing ';') detected at 'ExprCase :' while looking for lexer rule element
error(50): :58:0: syntax error: unterminated rule (missing ';') detected at 'ExprG :' while looking for lexer rule element
error(50): :61:0: syntax error: unterminated rule (missing ';') detected at 'Instruction :' while looking for lexer rule element
error(50): :69:0: syntax error: unterminated rule (missing ';') detected at 'Action :' while looking for lexer rule element
error(50): :74:0: syntax error: unterminated rule (missing ';') detected at 'FctDecl :' while looking for lexer rule element
error(50): :74:38: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :74:51: syntax error: unterminated rule (missing ';') detected at ': (' while looking for lexer rule element
error(50): :74:61: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :74:67: syntax error: ')' came as a complete surprise to me while matching rule preamble
error(50): :75:26: syntax error: ')' came as a complete surprise to me while matching a lexer rule
error(50): :76:17: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :80:0: syntax error: unterminated rule (missing ';') detected at 'FileDecl :' while looking for lexer rule element
error(50): :81:0: syntax error: unterminated rule (missing ';') detected at 'FileName :' while looking for lexer rule element
error(50): :83:0: syntax error: unterminated rule (missing ';') detected at 'root :' while looking for lexer rule element
error(110): c.g4:3:7: can't find or load grammar Words
error(50): :5:39: syntax error: missing RPAREN at ';' while looking for rule element
error(50): :5:41: syntax error: '|' came as a complete surprise to me
error(50): :5:50: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:65: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:82: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:113: syntax error: mismatched input ';' expecting COLON while matching a lexer rule
error(50): :5:125: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:134: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:165: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :7:0: syntax error: extraneous input 'ClauseDefault' expecting COLON while matching a lexer rule
error(50): :8:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :11:0: syntax error: unterminated rule (missing ';') detected at 'ClauseWhen :' while looking for lexer rule element
error(50): :12:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :15:0: syntax error: unterminated rule (missing ';') detected at 'ClauseDefault :' while looking for lexer rule element
error(50): :16:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :19:0: syntax error: unterminated rule (missing ';') detected at 'Statement :' while looking for lexer rule element
error(50): :21:0: syntax error: unterminated rule (missing ';') detected at 'ConditionalStmt :' while looking for lexer rule element
error(50): :23:0: syntax error: unterminated rule (missing ';') detected at 'Entier :' while looking for lexer rule element
error(50): :23:10: syntax error: '-' came as a complete surprise to me
error(50): :24:0: syntax error: unterminated rule (missing ';') detected at 'Chiffre :' while looking for lexer rule element
error(50): :26:0: syntax error: unterminated rule (missing ';') detected at 'Id :' while looking for lexer rule element
error(50): :27:0: syntax error: unterminated rule (missing ';') detected at 'Lettre :' while looking for lexer rule element
error(50): :29:0: syntax error: unterminated rule (missing ';') detected at 'Type :' while looking for lexer rule element
error(50): :30:0: syntax error: unterminated rule (missing ';') detected at 'Scalar :' while looking for lexer rule element
error(50): :31:0: syntax error: unterminated rule (missing ';') detected at 'Array :' while looking for lexer rule element
error(50): :33:0: syntax error: unterminated rule (missing ';') detected at 'VarDecl :' while looking for lexer rule element
error(50): :35:0: syntax error: unterminated rule (missing ';') detected at 'ExprD :' while looking for lexer rule element
error(50): :35:59: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :37:0: syntax error: unterminated rule (missing ';') detected at 'ExprEnt :' while looking for lexer rule element
error(50): :45:0: syntax error: unterminated rule (missing ';') detected at 'ExprBool :' while looking for lexer rule element
error(50): :55:0: syntax error: unterminated rule (missing ';') detected at 'ExprCase :' while looking for lexer rule element
error(50): :58:0: syntax error: unterminated rule (missing ';') detected at 'ExprG :' while looking for lexer rule element
error(50): :61:0: syntax error: unterminated rule (missing ';') detected at 'Instruction :' while looking for lexer rule element
error(50): :69:0: syntax error: unterminated rule (missing ';') detected at 'Action :' while looking for lexer rule element
error(50): :74:0: syntax error: unterminated rule (missing ';') detected at 'FctDecl :' while looking for lexer rule element
error(50): :74:38: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :74:51: syntax error: unterminated rule (missing ';') detected at ': (' while looking for lexer rule element
error(50): :74:61: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :74:67: syntax error: ')' came as a complete surprise to me while matching rule preamble
error(50): :75:26: syntax error: ')' came as a complete surprise to me while matching a lexer rule
error(50): :76:17: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :80:0: syntax error: unterminated rule (missing ';') detected at 'FileDecl :' while looking for lexer rule element
error(50): :81:0: syntax error: unterminated rule (missing ';') detected at 'FileName :' while looking for lexer rule element
error(50): :83:0: syntax error: unterminated rule (missing ';') detected at 'root :' while looking for lexer rule element
error(110): c.g4:3:7: can't find or load grammar Words
error(50): :5:39: syntax error: missing RPAREN at ';' while looking for rule element
error(50): :5:41: syntax error: '|' came as a complete surprise to me
error(50): :5:50: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:65: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:82: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:113: syntax error: mismatched input ';' expecting COLON while matching a lexer rule
error(50): :5:125: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :5:134: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :5:165: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :7:0: syntax error: extraneous input 'ClauseDefault' expecting COLON while matching a lexer rule
error(50): :8:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :11:0: syntax error: unterminated rule (missing ';') detected at 'ClauseWhen :' while looking for lexer rule element
error(50): :12:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :15:0: syntax error: unterminated rule (missing ';') detected at 'ClauseDefault :' while looking for lexer rule element
error(50): :16:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): :19:0: syntax error: unterminated rule (missing ';') detected at 'Statement :' while looking for lexer rule element
error(50): :21:0: syntax error: unterminated rule (missing ';') detected at 'ConditionalStmt :' while looking for lexer rule element
error(50): :23:0: syntax error: unterminated rule (missing ';') detected at 'Entier :' while looking for lexer rule element
error(50): :23:10: syntax error: '-' came as a complete surprise to me
error(50): :24:0: syntax error: unterminated rule (missing ';') detected at 'Chiffre :' while looking for lexer rule element
error(50): :26:0: syntax error: unterminated rule (missing ';') detected at 'Id :' while looking for lexer rule element
error(50): :27:0: syntax error: unterminated rule (missing ';') detected at 'Lettre :' while looking for lexer rule element
error(50): :29:0: syntax error: unterminated rule (missing ';') detected at 'Type :' while looking for lexer rule element
error(50): :30:0: syntax error: unterminated rule (missing ';') detected at 'Scalar :' while looking for lexer rule element
error(50): :31:0: syntax error: unterminated rule (missing ';') detected at 'Array :' while looking for lexer rule element
error(50): :33:0: syntax error: unterminated rule (missing ';') detected at 'VarDecl :' while looking for lexer rule element
error(50): :35:0: syntax error: unterminated rule (missing ';') detected at 'ExprD :' while looking for lexer rule element
error(50): :35:59: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :37:0: syntax error: unterminated rule (missing ';') detected at 'ExprEnt :' while looking for lexer rule element
error(50): :45:0: syntax error: unterminated rule (missing ';') detected at 'ExprBool :' while looking for lexer rule element
error(50): :55:0: syntax error: unterminated rule (missing ';') detected at 'ExprCase :' while looking for lexer rule element
error(50): :58:0: syntax error: unterminated rule (missing ';') detected at 'ExprG :' while looking for lexer rule element
error(50): :61:0: syntax error: unterminated rule (missing ';') detected at 'Instruction :' while looking for lexer rule element
error(50): :69:0: syntax error: unterminated rule (missing ';') detected at 'Action :' while looking for lexer rule element
error(50): :74:0: syntax error: unterminated rule (missing ';') detected at 'FctDecl :' while looking for lexer rule element
error(50): :74:38: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): :74:51: syntax error: unterminated rule (missing ';') detected at ': (' while looking for lexer rule element
error(50): :74:61: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): :74:67: syntax error: ')' came as a complete surprise to me while matching rule preamble
error(50): :75:26: syntax error: ')' came as a complete surprise to me while matching a lexer rule
error(50): :76:17: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): :80:0: syntax error: unterminated rule (missing ';') detected at 'FileDecl :' while looking for lexer rule element
error(50): :81:0: syntax error: unterminated rule (missing ';') detected at 'FileName :' while looking for lexer rule element
error(50): :83:0: syntax error: unterminated rule (missing ';') detected at 'root :' while looking for lexer rule element
error(110): c.g4:3:7: can't find or load grammar 
error(50): c.g4:5:39: syntax error: missing RPAREN at ';' while looking for rule element
error(50): c.g4:5:41: syntax error: '|' came as a complete surprise to me
error(50): c.g4:5:50: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): c.g4:5:65: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): c.g4:5:82: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): c.g4:5:113: syntax error: mismatched input ';' expecting COLON while matching a lexer rule
error(50): c.g4:5:125: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): c.g4:5:134: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): c.g4:5:165: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): c.g4:7:0: syntax error: extraneous input 'ClauseDefault' expecting COLON while matching a lexer rule
error(50): c.g4:8:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): c.g4:11:0: syntax error: unterminated rule (missing ';') detected at 'ClauseWhen :' while looking for lexer rule element
error(50): c.g4:12:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): c.g4:15:0: syntax error: unterminated rule (missing ';') detected at 'ClauseDefault :' while looking for lexer rule element
error(50): c.g4:16:25: syntax error: extraneous input ';' expecting RPAREN while looking for lexer rule element
error(50): c.g4:19:0: syntax error: unterminated rule (missing ';') detected at 'Statement :' while looking for lexer rule element
error(50): c.g4:21:0: syntax error: unterminated rule (missing ';') detected at 'ConditionalStmt :' while looking for lexer rule element
error(50): c.g4:23:0: syntax error: unterminated rule (missing ';') detected at 'Entier :' while looking for lexer rule element
error(50): c.g4:23:10: syntax error: '-' came as a complete surprise to me
error(50): c.g4:24:0: syntax error: unterminated rule (missing ';') detected at 'Chiffre :' while looking for lexer rule element
error(50): c.g4:26:0: syntax error: unterminated rule (missing ';') detected at 'Id :' while looking for lexer rule element
error(50): c.g4:27:0: syntax error: unterminated rule (missing ';') detected at 'Lettre :' while looking for lexer rule element
error(50): c.g4:29:0: syntax error: unterminated rule (missing ';') detected at 'Type :' while looking for lexer rule element
error(50): c.g4:30:0: syntax error: unterminated rule (missing ';') detected at 'Scalar :' while looking for lexer rule element
error(50): c.g4:31:0: syntax error: unterminated rule (missing ';') detected at 'Array :' while looking for lexer rule element
error(50): c.g4:33:0: syntax error: unterminated rule (missing ';') detected at 'VarDecl :' while looking for lexer rule element
error(50): c.g4:35:0: syntax error: unterminated rule (missing ';') detected at 'ExprD :' while looking for lexer rule element
error(50): c.g4:35:59: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): c.g4:37:0: syntax error: unterminated rule (missing ';') detected at 'ExprEnt :' while looking for lexer rule element
error(50): c.g4:45:0: syntax error: unterminated rule (missing ';') detected at 'ExprBool :' while looking for lexer rule element
error(50): c.g4:55:0: syntax error: unterminated rule (missing ';') detected at 'ExprCase :' while looking for lexer rule element
error(50): c.g4:58:0: syntax error: unterminated rule (missing ';') detected at 'ExprG :' while looking for lexer rule element
error(50): c.g4:61:0: syntax error: unterminated rule (missing ';') detected at 'Instruction :' while looking for lexer rule element
error(50): c.g4:69:0: syntax error: unterminated rule (missing ';') detected at 'Action :' while looking for lexer rule element
error(50): c.g4:74:0: syntax error: unterminated rule (missing ';') detected at 'FctDecl :' while looking for lexer rule element
error(50): c.g4:74:38: syntax error: ',' came as a complete surprise to me while looking for lexer rule element
error(50): c.g4:74:51: syntax error: unterminated rule (missing ';') detected at ': (' while looking for lexer rule element
error(50): c.g4:74:61: syntax error: mismatched input '|' expecting COLON while matching a lexer rule
error(50): c.g4:74:67: syntax error: ')' came as a complete surprise to me while matching rule preamble
error(50): c.g4:75:26: syntax error: ')' came as a complete surprise to me while matching a lexer rule
error(50): c.g4:76:17: syntax error: mismatched input ')' expecting COLON while matching a lexer rule
error(50): c.g4:80:0: syntax error: unterminated rule (missing ';') detected at 'FileDecl :' while looking for lexer rule element
error(50): c.g4:81:0: syntax error: unterminated rule (missing ';') detected at 'FileName :' while looking for lexer rule element
error(50): c.g4:83:0: syntax error: unterminated rule (missing ';') detected at 'root :' while looking for lexer rule element
Il y a quelque chose que j'ai pas compris ? faut-il définir tous les mots du langage obligatoirement dans le lexique ?

L'erreur : error(50): c.g4:80:0: syntax error: unterminated rule (missing ';') detected at 'FileDecl :' while looking for lexer rule element
et du même genre
error(50): c.g4:61:0: syntax error: unterminated rule (missing ';') detected at 'Instruction :' while looking for lexer rule element

que veut dire exactement ?

Merci d'avance pour toute aide.