Source file comments_lexer.ml
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# 7 "src/ppx/comments_lexer.mll"
type error =
| Unexpected_end_of_file
let string_of_error = function
| Unexpected_end_of_file -> "unexpected end of file"
exception Exception of int * error
let () =
Printexc.register_printer
(function
| Exception (l, m) ->
let msg = Printf.sprintf "lexing error at line %d: %s" l (string_of_error m) in
Some msg
| _ -> None)
let fail lexbuf error =
let open Lexing in
let pos = lexbuf.lex_curr_p in
raise (Exception (pos.pos_lnum, error))
let incr_line lexbuf =
let open Lexing in
let pos = lexbuf.lex_curr_p in
lexbuf.lex_curr_p <- { pos with pos_lnum = succ pos.pos_lnum;
pos_bol = pos.pos_cnum }
let get_line lexbuf =
let open Lexing in
let pos = lexbuf.lex_curr_p in
pos.pos_lnum
let report_unmatched () =
prerr_endline "unmatched '(*BISECT-IGNORE-END*)' comment"
let report_unmatched_pair () =
prerr_endline "unmatched '(*BISECT-IGNORE-BEGIN*)' and '(*BISECT-IGNORE-END*)' comments"
let update_loc lexbuf opt_file line =
let pos = lexbuf.Lexing.lex_curr_p in
let new_file = match opt_file with
| None -> pos.Lexing.pos_fname
| Some f -> f
in
lexbuf.Lexing.lex_curr_p <- { pos with
Lexing.pos_fname = new_file;
Lexing.pos_lnum = line;
Lexing.pos_bol = pos.Lexing.pos_cnum;
}
let name_to_new_state ignored marked stack (old_filename,acc as files) = function
| Some new_filename when new_filename <> old_filename ->
if not (Stack.is_empty stack) then report_unmatched_pair();
let nacc = (old_filename, (ignored, marked))::acc in
([],[],Stack.create (),(new_filename, nacc))
| _ -> (ignored, marked, stack, files)
# 63 "src/ppx/comments_lexer.ml"
let __ocaml_lex_tables = {
Lexing.lex_base =
"\000\000\243\255\244\255\001\000\001\000\000\000\252\255\002\000\
\000\000\011\000\049\000\255\255\002\000\012\000\061\000\006\000\
\255\255\003\000\002\000\254\255\005\000\253\255\003\000\000\000\
\000\000\003\000\008\000\000\000\002\000\003\000\012\000\005\000\
\008\000\004\000\006\000\004\000\018\000\046\000\049\000\041\000\
\014\000\027\000\037\000\036\000\033\000\070\000\072\000\251\255\
\046\000\073\000\075\000\250\255\249\255\034\000\045\000\035\000\
\078\000\080\000\248\255\040\000\048\000\082\000\084\000\247\255\
\245\255\116\000\250\255\251\255\007\000\005\000\253\255\093\000\
\254\255\255\255\252\255\118\000\248\255\249\255\013\000\013\000\
\251\255\096\000\091\000\091\000\255\255\254\255\004\000\095\000\
\253\255\096\000\252\255\250\255";
Lexing.lex_backtrk =
"\255\255\255\255\255\255\010\000\010\000\012\000\255\255\012\000\
\012\000\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\009\000\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\003\000\003\000\255\255\005\000\
\255\255\255\255\255\255\255\255\255\255\255\255\005\000\005\000\
\255\255\007\000\007\000\007\000\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255";
Lexing.lex_default =
"\001\000\000\000\000\000\255\255\255\255\255\255\000\000\255\255\
\255\255\012\000\255\255\000\000\012\000\013\000\012\000\015\000\
\000\000\255\255\255\255\000\000\255\255\000\000\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\000\000\
\255\255\255\255\255\255\000\000\000\000\255\255\255\255\255\255\
\255\255\255\255\000\000\255\255\255\255\255\255\255\255\000\000\
\000\000\066\000\000\000\000\000\255\255\255\255\000\000\255\255\
\000\000\000\000\000\000\076\000\000\000\000\000\255\255\255\255\
\000\000\255\255\255\255\255\255\000\000\000\000\255\255\255\255\
\000\000\255\255\000\000\000\000";
Lexing.lex_trans =
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\010\000\004\000\064\000\011\000\003\000\064\000\255\255\
\016\000\074\000\074\000\255\255\014\000\011\000\011\000\091\000\
\255\255\255\255\091\000\000\000\000\000\000\000\000\000\000\000\
\010\000\000\000\006\000\008\000\018\000\020\000\089\000\007\000\
\005\000\019\000\022\000\014\000\021\000\013\000\015\000\029\000\
\009\000\009\000\009\000\009\000\009\000\009\000\009\000\009\000\
\009\000\009\000\010\000\009\000\009\000\009\000\009\000\009\000\
\009\000\009\000\009\000\009\000\009\000\023\000\014\000\011\000\
\026\000\024\000\255\255\027\000\032\000\059\000\053\000\033\000\
\030\000\010\000\034\000\025\000\028\000\035\000\036\000\037\000\
\038\000\031\000\052\000\039\000\048\000\014\000\017\000\013\000\
\042\000\009\000\009\000\009\000\009\000\009\000\009\000\009\000\
\009\000\009\000\009\000\041\000\043\000\044\000\040\000\045\000\
\046\000\047\000\049\000\050\000\051\000\054\000\055\000\056\000\
\057\000\058\000\060\000\061\000\062\000\063\000\069\000\072\000\
\079\000\068\000\087\000\078\000\085\000\084\000\088\000\090\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\070\000\000\000\
\080\000\000\000\000\000\000\000\000\000\081\000\083\000\000\000\
\082\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\073\000\000\000\000\000\086\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\071\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\002\000\000\000\255\255\000\000\000\000\000\000\255\255\000\000\
\000\000\000\000\000\000\255\255\255\255\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\255\255\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\067\000\000\000\077\000";
Lexing.lex_check =
"\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\008\000\000\000\003\000\012\000\000\000\004\000\012\000\
\015\000\068\000\069\000\015\000\009\000\009\000\013\000\078\000\
\009\000\013\000\079\000\255\255\255\255\255\255\255\255\255\255\
\008\000\255\255\000\000\000\000\007\000\017\000\086\000\000\000\
\000\000\018\000\005\000\009\000\020\000\009\000\013\000\028\000\
\008\000\008\000\008\000\008\000\008\000\008\000\008\000\008\000\
\008\000\008\000\010\000\009\000\009\000\009\000\009\000\009\000\
\009\000\009\000\009\000\009\000\009\000\022\000\014\000\014\000\
\025\000\023\000\014\000\026\000\029\000\030\000\031\000\032\000\
\029\000\010\000\033\000\024\000\027\000\034\000\035\000\036\000\
\037\000\029\000\038\000\037\000\040\000\014\000\007\000\014\000\
\041\000\010\000\010\000\010\000\010\000\010\000\010\000\010\000\
\010\000\010\000\010\000\039\000\042\000\043\000\039\000\044\000\
\045\000\046\000\048\000\049\000\050\000\053\000\054\000\055\000\
\056\000\057\000\059\000\060\000\061\000\062\000\065\000\071\000\
\075\000\065\000\081\000\075\000\082\000\083\000\087\000\089\000\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\065\000\255\255\
\075\000\255\255\255\255\255\255\255\255\075\000\075\000\255\255\
\075\000\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\071\000\255\255\255\255\081\000\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\065\000\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\000\000\255\255\012\000\255\255\255\255\255\255\015\000\255\255\
\255\255\255\255\255\255\009\000\013\000\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\014\000\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\065\000\255\255\075\000";
Lexing.lex_base_code =
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\010\000\036\000\012\000\000\000\000\000\002\000\000\000\
\027\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000";
Lexing.lex_backtrk_code =
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000";
Lexing.lex_default_code =
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\019\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000";
Lexing.lex_trans_code =
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\001\000\000\000\000\000\001\000\022\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\007\000\001\000\000\000\000\000\
\004\000\004\000\004\000\004\000\004\000\004\000\004\000\004\000\
\004\000\004\000\004\000\004\000\004\000\004\000\004\000\004\000\
\004\000\004\000\004\000\004\000\001\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\004\000\004\000\004\000\004\000\
\004\000\004\000\004\000\004\000\004\000\004\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\000\000\000\000\000\000\000\000\000\000";
Lexing.lex_check_code =
"\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\008\000\013\000\255\255\255\255\013\000\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\008\000\255\255\013\000\000\000\014\000\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\009\000\010\000\255\255\255\255\
\008\000\008\000\008\000\008\000\008\000\008\000\008\000\008\000\
\008\000\008\000\009\000\009\000\009\000\009\000\009\000\009\000\
\009\000\009\000\009\000\009\000\010\000\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\010\000\010\000\010\000\010\000\
\010\000\010\000\010\000\010\000\010\000\010\000\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\013\000\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
\255\255\255\255\255\255\255\255\255\255";
Lexing.lex_code =
"\255\004\255\255\005\255\255\007\255\006\255\255\003\255\000\004\
\001\005\255\007\255\255\006\255\007\255\255\000\004\001\005\003\
\006\002\007\255";
}
let rec normal ignored marked stack files lexbuf =
lexbuf.Lexing.lex_mem <- Array.make 8 (-1); __ocaml_lex_normal_rec ignored marked stack files lexbuf 0
and __ocaml_lex_normal_rec ignored marked stack files lexbuf __ocaml_lex_state =
match Lexing.new_engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
| 0 ->
let
# 71 "src/ppx/comments_lexer.mll"
num
# 329 "src/ppx/comments_lexer.ml"
= Lexing.sub_lexeme lexbuf lexbuf.Lexing.lex_mem.(0) lexbuf.Lexing.lex_mem.(1)
and
# 72 "src/ppx/comments_lexer.mll"
name
# 334 "src/ppx/comments_lexer.ml"
= Lexing.sub_lexeme_opt lexbuf lexbuf.Lexing.lex_mem.(3) lexbuf.Lexing.lex_mem.(2) in
# 74 "src/ppx/comments_lexer.mll"
( update_loc lexbuf name (int_of_string num);
let (i,m,s,f) = name_to_new_state ignored marked stack files name in
normal i m s f lexbuf
)
# 341 "src/ppx/comments_lexer.ml"
| 1 ->
# 79 "src/ppx/comments_lexer.mll"
( normal ignored marked stack files lexbuf )
# 346 "src/ppx/comments_lexer.ml"
| 2 ->
# 80 "src/ppx/comments_lexer.mll"
( normal ignored marked stack files lexbuf )
# 351 "src/ppx/comments_lexer.ml"
| 3 ->
# 81 "src/ppx/comments_lexer.mll"
( string 0 ignored marked stack files lexbuf )
# 356 "src/ppx/comments_lexer.ml"
| 4 ->
# 82 "src/ppx/comments_lexer.mll"
( let line = get_line lexbuf in
Stack.push line stack;
normal ignored marked stack files lexbuf )
# 363 "src/ppx/comments_lexer.ml"
| 5 ->
# 85 "src/ppx/comments_lexer.mll"
( let ignored =
try
let bib = Stack.pop stack in
(bib, get_line lexbuf) :: ignored
with Stack.Empty ->
report_unmatched ();
ignored in
normal ignored marked stack files lexbuf )
# 375 "src/ppx/comments_lexer.ml"
| 6 ->
# 93 "src/ppx/comments_lexer.mll"
( let line = get_line lexbuf in
normal ((line, line) :: ignored) marked stack files lexbuf )
# 381 "src/ppx/comments_lexer.ml"
| 7 ->
# 95 "src/ppx/comments_lexer.mll"
( normal ignored (get_line lexbuf :: marked) stack files lexbuf )
# 386 "src/ppx/comments_lexer.ml"
| 8 ->
# 96 "src/ppx/comments_lexer.mll"
( normal ignored (get_line lexbuf :: marked) stack files lexbuf )
# 391 "src/ppx/comments_lexer.ml"
| 9 ->
# 97 "src/ppx/comments_lexer.mll"
( comment 1 ignored marked stack files lexbuf )
# 396 "src/ppx/comments_lexer.ml"
| 10 ->
# 98 "src/ppx/comments_lexer.mll"
( incr_line lexbuf;
normal ignored marked stack files lexbuf )
# 402 "src/ppx/comments_lexer.ml"
| 11 ->
# 100 "src/ppx/comments_lexer.mll"
( if not (Stack.is_empty stack) then report_unmatched_pair ();
let (filename,acc) = files in
(filename, (ignored, marked))::acc )
# 409 "src/ppx/comments_lexer.ml"
| 12 ->
# 103 "src/ppx/comments_lexer.mll"
( normal ignored marked stack files lexbuf )
# 414 "src/ppx/comments_lexer.ml"
| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
__ocaml_lex_normal_rec ignored marked stack files lexbuf __ocaml_lex_state
and string n ignored marked stack files lexbuf =
__ocaml_lex_string_rec n ignored marked stack files lexbuf 65
and __ocaml_lex_string_rec n ignored marked stack files lexbuf __ocaml_lex_state =
match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
| 0 ->
# 106 "src/ppx/comments_lexer.mll"
( string n ignored marked stack files lexbuf )
# 426 "src/ppx/comments_lexer.ml"
| 1 ->
# 107 "src/ppx/comments_lexer.mll"
( string n ignored marked stack files lexbuf )
# 431 "src/ppx/comments_lexer.ml"
| 2 ->
# 108 "src/ppx/comments_lexer.mll"
( if n = 0 then
normal ignored marked stack files lexbuf
else
comment n ignored marked stack files lexbuf )
# 439 "src/ppx/comments_lexer.ml"
| 3 ->
# 112 "src/ppx/comments_lexer.mll"
( incr_line lexbuf;
string n ignored marked stack files lexbuf )
# 445 "src/ppx/comments_lexer.ml"
| 4 ->
# 114 "src/ppx/comments_lexer.mll"
( fail lexbuf Unexpected_end_of_file )
# 450 "src/ppx/comments_lexer.ml"
| 5 ->
# 115 "src/ppx/comments_lexer.mll"
( string n ignored marked stack files lexbuf )
# 455 "src/ppx/comments_lexer.ml"
| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
__ocaml_lex_string_rec n ignored marked stack files lexbuf __ocaml_lex_state
and comment n ignored marked stack files lexbuf =
__ocaml_lex_comment_rec n ignored marked stack files lexbuf 75
and __ocaml_lex_comment_rec n ignored marked stack files lexbuf __ocaml_lex_state =
match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
| 0 ->
# 118 "src/ppx/comments_lexer.mll"
( comment (succ n) ignored marked stack files lexbuf )
# 467 "src/ppx/comments_lexer.ml"
| 1 ->
# 119 "src/ppx/comments_lexer.mll"
( if n = 1 then
normal ignored marked stack files lexbuf
else
comment (pred n) ignored marked stack files lexbuf )
# 475 "src/ppx/comments_lexer.ml"
| 2 ->
# 123 "src/ppx/comments_lexer.mll"
( comment n ignored marked stack files lexbuf )
# 480 "src/ppx/comments_lexer.ml"
| 3 ->
# 124 "src/ppx/comments_lexer.mll"
( comment n ignored marked stack files lexbuf )
# 485 "src/ppx/comments_lexer.ml"
| 4 ->
# 125 "src/ppx/comments_lexer.mll"
( string n ignored marked stack files lexbuf )
# 490 "src/ppx/comments_lexer.ml"
| 5 ->
# 126 "src/ppx/comments_lexer.mll"
( incr_line lexbuf; comment n ignored marked stack files lexbuf )
# 495 "src/ppx/comments_lexer.ml"
| 6 ->
# 127 "src/ppx/comments_lexer.mll"
( fail lexbuf Unexpected_end_of_file )
# 500 "src/ppx/comments_lexer.ml"
| 7 ->
# 128 "src/ppx/comments_lexer.mll"
( comment n ignored marked stack files lexbuf )
# 505 "src/ppx/comments_lexer.ml"
| __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
__ocaml_lex_comment_rec n ignored marked stack files lexbuf __ocaml_lex_state
;;