package jsonxt

  1. Overview
  2. Docs

Source file compliant_lexxer.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
# 1 "lib/compliant_lexxer.mll"
 
  module Lexing = struct
    (* Override the Lexing.engine to avoid creating a new position record
       each time a rule is matched. Reduces total parse time by around 30%.
       Idea stolen from yojson *)

    include Lexing

    external c_engine : lex_tables -> int -> lexbuf -> int = "caml_lex_engine"

    let engine tbl state buf =
      let result = c_engine tbl state buf in
      (*
      if result >= 0 then begin
        buf.lex_start_p <- buf.lex_curr_p;
        buf.lex_curr_p <- {buf.lex_curr_p
                           with pos_cnum = buf.lex_abs_pos + buf.lex_curr_pos};
      end;
      *)
      result
  end
  open Tokens


  module type Lex = sig
    val read : Lexing.lexbuf -> Tokens.token
  end

  module Make (Compliance : Compliance.S) : Lex = struct

# 33 "lib/compliant_lexxer.ml"
let __ocaml_lex_tables = {
  Lexing.lex_base =
   "\000\000\229\255\017\000\232\255\003\000\234\255\126\000\000\000\
    \113\000\000\000\001\000\001\000\002\000\123\000\243\255\244\255\
    \245\255\246\255\247\255\248\255\249\255\250\255\251\255\252\255\
    \001\000\002\000\000\000\000\000\002\000\255\255\000\000\000\000\
    \003\000\254\255\003\000\001\000\011\000\253\255\239\255\003\000\
    \010\000\011\000\005\000\242\255\020\000\019\000\048\000\076\000\
    \067\000\063\000\075\000\084\000\241\255\085\000\083\000\079\000\
    \085\000\075\000\071\000\083\000\084\000\093\000\240\255\095\000\
    \093\000\089\000\095\000\085\000\081\000\001\000\032\000\155\000\
    \186\000\209\000\219\000\229\000\240\000\250\000\018\001\066\001\
    \236\255\235\255\094\001\117\001\155\001\178\001\053\000\231\255\
    \088\001\252\255\253\255\254\255\014\000\255\255";
  Lexing.lex_backtrk =
   "\255\255\255\255\026\000\255\255\022\000\255\255\026\000\017\000\
    \017\000\026\000\026\000\026\000\026\000\026\000\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \026\000\026\000\026\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\
    \018\000\255\255\018\000\255\255\018\000\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\025\000\255\255\
    \255\255\255\255\255\255\255\255\003\000\255\255";
  Lexing.lex_default =
   "\001\000\000\000\255\255\000\000\255\255\000\000\079\000\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \255\255\255\255\255\255\255\255\255\255\000\000\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\000\000\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\000\000\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\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\079\000\
    \000\000\000\000\255\255\255\255\255\255\255\255\086\000\000\000\
    \089\000\000\000\000\000\000\000\255\255\000\000";
  Lexing.lex_trans =
   "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\004\000\003\000\000\000\004\000\004\000\000\000\000\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\
    \004\000\000\000\006\000\004\000\000\000\000\000\000\000\000\000\
    \019\000\018\000\000\000\010\000\015\000\013\000\071\000\002\000\
    \007\000\008\000\008\000\008\000\008\000\008\000\008\000\008\000\
    \008\000\008\000\014\000\087\000\017\000\093\000\016\000\255\255\
    \086\000\000\000\000\000\000\000\000\000\070\000\000\000\000\000\
    \000\000\011\000\059\000\077\000\000\000\077\000\009\000\038\000\
    \076\000\076\000\076\000\076\000\076\000\076\000\076\000\076\000\
    \076\000\076\000\000\000\021\000\000\000\020\000\000\000\000\000\
    \000\000\069\000\034\000\030\000\050\000\070\000\025\000\029\000\
    \033\000\012\000\060\000\043\000\031\000\036\000\024\000\053\000\
    \051\000\038\000\027\000\032\000\026\000\028\000\035\000\037\000\
    \044\000\042\000\045\000\023\000\046\000\022\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\047\000\071\000\
    \080\000\008\000\008\000\008\000\008\000\008\000\008\000\008\000\
    \008\000\008\000\008\000\007\000\008\000\008\000\008\000\008\000\
    \008\000\008\000\008\000\008\000\008\000\048\000\070\000\049\000\
    \043\000\038\000\052\000\054\000\055\000\056\000\057\000\058\000\
    \052\000\063\000\061\000\062\000\040\000\064\000\065\000\066\000\
    \067\000\068\000\062\000\072\000\072\000\072\000\072\000\072\000\
    \072\000\072\000\072\000\072\000\072\000\000\000\070\000\000\000\
    \000\000\000\000\078\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\041\000\000\000\000\000\000\000\
    \000\000\039\000\072\000\072\000\072\000\072\000\072\000\072\000\
    \072\000\072\000\072\000\072\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\075\000\000\000\075\000\073\000\
    \005\000\074\000\074\000\074\000\074\000\074\000\074\000\074\000\
    \074\000\074\000\074\000\074\000\074\000\074\000\074\000\074\000\
    \074\000\074\000\074\000\074\000\074\000\074\000\074\000\074\000\
    \074\000\074\000\074\000\074\000\074\000\074\000\074\000\073\000\
    \076\000\076\000\076\000\076\000\076\000\076\000\076\000\076\000\
    \076\000\076\000\076\000\076\000\076\000\076\000\076\000\076\000\
    \076\000\076\000\076\000\076\000\079\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\079\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\091\000\000\000\081\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\079\000\000\000\
    \000\000\000\000\000\000\000\000\079\000\000\000\000\000\000\000\
    \079\000\000\000\000\000\000\000\000\000\000\000\255\255\000\000\
    \079\000\000\000\092\000\000\000\079\000\000\000\079\000\082\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\083\000\083\000\
    \083\000\083\000\083\000\083\000\083\000\083\000\083\000\083\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\078\000\083\000\
    \083\000\083\000\083\000\083\000\083\000\084\000\084\000\084\000\
    \084\000\084\000\084\000\084\000\084\000\084\000\084\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\084\000\084\000\
    \084\000\084\000\084\000\084\000\000\000\000\000\000\000\083\000\
    \083\000\083\000\083\000\083\000\083\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\085\000\085\000\085\000\085\000\085\000\
    \085\000\085\000\085\000\085\000\085\000\000\000\084\000\084\000\
    \084\000\084\000\084\000\084\000\085\000\085\000\085\000\085\000\
    \085\000\085\000\079\000\079\000\079\000\079\000\079\000\079\000\
    \079\000\079\000\079\000\079\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\079\000\079\000\079\000\079\000\079\000\
    \079\000\000\000\000\000\000\000\085\000\085\000\085\000\085\000\
    \085\000\085\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\079\000\079\000\079\000\079\000\079\000\
    \079\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\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\
    \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\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\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 =
   "\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\000\000\000\000\255\255\004\000\000\000\255\255\255\255\
    \004\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\
    \000\000\255\255\000\000\004\000\255\255\255\255\255\255\255\255\
    \000\000\000\000\255\255\000\000\000\000\000\000\007\000\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\092\000\000\000\086\000\
    \002\000\255\255\255\255\255\255\255\255\007\000\255\255\255\255\
    \255\255\000\000\010\000\070\000\255\255\070\000\000\000\069\000\
    \070\000\070\000\070\000\070\000\070\000\070\000\070\000\070\000\
    \070\000\070\000\255\255\000\000\255\255\000\000\255\255\255\255\
    \255\255\009\000\024\000\025\000\039\000\007\000\000\000\028\000\
    \032\000\000\000\010\000\042\000\030\000\035\000\000\000\011\000\
    \012\000\034\000\026\000\031\000\000\000\027\000\024\000\036\000\
    \040\000\041\000\044\000\000\000\045\000\000\000\006\000\006\000\
    \006\000\006\000\006\000\006\000\006\000\006\000\006\000\006\000\
    \006\000\006\000\006\000\006\000\006\000\006\000\006\000\006\000\
    \006\000\006\000\006\000\006\000\006\000\006\000\006\000\006\000\
    \006\000\006\000\006\000\006\000\006\000\006\000\046\000\008\000\
    \006\000\008\000\008\000\008\000\008\000\008\000\008\000\008\000\
    \008\000\008\000\008\000\013\000\013\000\013\000\013\000\013\000\
    \013\000\013\000\013\000\013\000\013\000\047\000\008\000\048\000\
    \049\000\050\000\051\000\053\000\054\000\055\000\056\000\057\000\
    \058\000\059\000\060\000\061\000\013\000\063\000\064\000\065\000\
    \066\000\067\000\068\000\071\000\071\000\071\000\071\000\071\000\
    \071\000\071\000\071\000\071\000\071\000\255\255\008\000\255\255\
    \255\255\255\255\006\000\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\013\000\072\000\072\000\072\000\072\000\072\000\072\000\
    \072\000\072\000\072\000\072\000\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\073\000\255\255\073\000\072\000\
    \000\000\073\000\073\000\073\000\073\000\073\000\073\000\073\000\
    \073\000\073\000\073\000\074\000\074\000\074\000\074\000\074\000\
    \074\000\074\000\074\000\074\000\074\000\075\000\075\000\075\000\
    \075\000\075\000\075\000\075\000\075\000\075\000\075\000\072\000\
    \076\000\076\000\076\000\076\000\076\000\076\000\076\000\076\000\
    \076\000\076\000\077\000\077\000\077\000\077\000\077\000\077\000\
    \077\000\077\000\077\000\077\000\078\000\086\000\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\078\000\079\000\079\000\079\000\079\000\079\000\079\000\
    \079\000\079\000\079\000\079\000\079\000\079\000\079\000\079\000\
    \079\000\079\000\079\000\079\000\079\000\079\000\079\000\079\000\
    \079\000\079\000\079\000\079\000\079\000\079\000\079\000\079\000\
    \079\000\079\000\088\000\255\255\079\000\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\078\000\255\255\
    \255\255\255\255\255\255\255\255\078\000\255\255\255\255\255\255\
    \078\000\255\255\255\255\255\255\255\255\255\255\006\000\255\255\
    \078\000\255\255\088\000\255\255\078\000\255\255\078\000\078\000\
    \255\255\255\255\255\255\255\255\255\255\255\255\082\000\082\000\
    \082\000\082\000\082\000\082\000\082\000\082\000\082\000\082\000\
    \255\255\255\255\255\255\255\255\255\255\255\255\079\000\082\000\
    \082\000\082\000\082\000\082\000\082\000\083\000\083\000\083\000\
    \083\000\083\000\083\000\083\000\083\000\083\000\083\000\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\083\000\083\000\
    \083\000\083\000\083\000\083\000\255\255\255\255\255\255\082\000\
    \082\000\082\000\082\000\082\000\082\000\255\255\255\255\255\255\
    \255\255\255\255\255\255\084\000\084\000\084\000\084\000\084\000\
    \084\000\084\000\084\000\084\000\084\000\255\255\083\000\083\000\
    \083\000\083\000\083\000\083\000\084\000\084\000\084\000\084\000\
    \084\000\084\000\085\000\085\000\085\000\085\000\085\000\085\000\
    \085\000\085\000\085\000\085\000\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\085\000\085\000\085\000\085\000\085\000\
    \085\000\255\255\255\255\255\255\084\000\084\000\084\000\084\000\
    \084\000\084\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\085\000\085\000\085\000\085\000\085\000\
    \085\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\079\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\
    \088\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";
  Lexing.lex_base_code =
   "";
  Lexing.lex_backtrk_code =
   "";
  Lexing.lex_default_code =
   "";
  Lexing.lex_trans_code =
   "";
  Lexing.lex_check_code =
   "";
  Lexing.lex_code =
   "";
}

let rec read lexbuf =
   __ocaml_lex_read_rec lexbuf 0
and __ocaml_lex_read_rec lexbuf __ocaml_lex_state =
  match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
      | 0 ->
# 57 "lib/compliant_lexxer.mll"
    ( BOOL true )
# 271 "lib/compliant_lexxer.ml"

  | 1 ->
# 59 "lib/compliant_lexxer.mll"
    ( BOOL false )
# 276 "lib/compliant_lexxer.ml"

  | 2 ->
# 61 "lib/compliant_lexxer.mll"
    ( NULL )
# 281 "lib/compliant_lexxer.ml"

  | 3 ->
# 63 "lib/compliant_lexxer.mll"
    ( OS )
# 286 "lib/compliant_lexxer.ml"

  | 4 ->
# 65 "lib/compliant_lexxer.mll"
    ( OE )
# 291 "lib/compliant_lexxer.ml"

  | 5 ->
# 67 "lib/compliant_lexxer.mll"
    ( AS )
# 296 "lib/compliant_lexxer.ml"

  | 6 ->
# 69 "lib/compliant_lexxer.mll"
    ( AE )
# 301 "lib/compliant_lexxer.ml"

  | 7 ->
# 71 "lib/compliant_lexxer.mll"
    (
      if Compliance.lex_tuple TS then TS
      else Lexxer_utils.lex_error ("unexpected character '" ^ (Lexing.lexeme lexbuf) ^ "'")
    )
# 309 "lib/compliant_lexxer.ml"

  | 8 ->
# 76 "lib/compliant_lexxer.mll"
    (
      if Compliance.lex_tuple TE then TE
      else Lexxer_utils.lex_error ("unexpected character '" ^ (Lexing.lexeme lexbuf) ^ "'")
    )
# 317 "lib/compliant_lexxer.ml"

  | 9 ->
# 81 "lib/compliant_lexxer.mll"
    (
      if Compliance.lex_variant VS then VS
      else Lexxer_utils.lex_error ("unexpected character '" ^ (Lexing.lexeme lexbuf) ^ "'")
    )
# 325 "lib/compliant_lexxer.ml"

  | 10 ->
# 86 "lib/compliant_lexxer.mll"
    (
      if Compliance.lex_variant VE then VE
      else Lexxer_utils.lex_error ("unexpected character '" ^ (Lexing.lexeme lexbuf) ^ "'")
    )
# 333 "lib/compliant_lexxer.ml"

  | 11 ->
# 91 "lib/compliant_lexxer.mll"
    ( COMMA )
# 338 "lib/compliant_lexxer.ml"

  | 12 ->
# 93 "lib/compliant_lexxer.mll"
    ( COLON )
# 343 "lib/compliant_lexxer.ml"

  | 13 ->
# 95 "lib/compliant_lexxer.mll"
    ( Compliance.lex_number NEGINFINITY )
# 348 "lib/compliant_lexxer.ml"

  | 14 ->
# 97 "lib/compliant_lexxer.mll"
    ( Compliance.lex_number INFINITY )
# 353 "lib/compliant_lexxer.ml"

  | 15 ->
# 99 "lib/compliant_lexxer.mll"
    ( Compliance.lex_number INFINITY )
# 358 "lib/compliant_lexxer.ml"

  | 16 ->
# 101 "lib/compliant_lexxer.mll"
    ( Compliance.lex_number NAN )
# 363 "lib/compliant_lexxer.ml"

  | 17 ->
# 103 "lib/compliant_lexxer.mll"
    (
      match Lexxer_utils.string2num (Lexing.lexeme lexbuf) with
      | INT _ as tok -> Compliance.lex_integer tok
      | LARGEINT _ as tok -> Compliance.lex_largeint tok
      | tok -> tok
    )
# 373 "lib/compliant_lexxer.ml"

  | 18 ->
# 110 "lib/compliant_lexxer.mll"
    ( Compliance.lex_number (FLOAT (float_of_string (Lexing.lexeme lexbuf))) )
# 378 "lib/compliant_lexxer.ml"

  | 19 ->
# 112 "lib/compliant_lexxer.mll"
    ( STRING "" )
# 383 "lib/compliant_lexxer.ml"

  | 20 ->
let
# 113 "lib/compliant_lexxer.mll"
                                s
# 389 "lib/compliant_lexxer.ml"
= Lexing.sub_lexeme lexbuf (lexbuf.Lexing.lex_start_pos + 1) (lexbuf.Lexing.lex_curr_pos + -1) in
# 114 "lib/compliant_lexxer.mll"
    ( STRING (Lexxer_utils.unescape_string s) )
# 393 "lib/compliant_lexxer.ml"

  | 21 ->
# 116 "lib/compliant_lexxer.mll"
    ( EOF )
# 398 "lib/compliant_lexxer.ml"

  | 22 ->
# 118 "lib/compliant_lexxer.mll"
    ( read lexbuf )
# 403 "lib/compliant_lexxer.ml"

  | 23 ->
# 120 "lib/compliant_lexxer.mll"
    ( Lexxer_utils.update_pos lexbuf; read lexbuf; )
# 408 "lib/compliant_lexxer.ml"

  | 24 ->
# 122 "lib/compliant_lexxer.mll"
    (
      match Compliance.comment_check () with
      | Ok () -> read_comment lexbuf; read lexbuf
      | Error err ->  COMPLIANCE_ERROR err
    )
# 417 "lib/compliant_lexxer.ml"

  | 25 ->
# 128 "lib/compliant_lexxer.mll"
    (
      match Compliance.comment_check () with
      | Ok () -> read lexbuf
      | Error err ->  COMPLIANCE_ERROR err
    )
# 426 "lib/compliant_lexxer.ml"

  | 26 ->
# 134 "lib/compliant_lexxer.mll"
    ( Lexxer_utils.lex_error ("unexpected character '" ^ (Lexing.lexeme lexbuf) ^ "'") )
# 431 "lib/compliant_lexxer.ml"

  | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
      __ocaml_lex_read_rec lexbuf __ocaml_lex_state

and read_comment lexbuf =
   __ocaml_lex_read_comment_rec lexbuf 88
and __ocaml_lex_read_comment_rec lexbuf __ocaml_lex_state =
  match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
      | 0 ->
# 139 "lib/compliant_lexxer.mll"
    ( () )
# 443 "lib/compliant_lexxer.ml"

  | 1 ->
# 141 "lib/compliant_lexxer.mll"
    ( Lexxer_utils.update_pos lexbuf; read_comment lexbuf )
# 448 "lib/compliant_lexxer.ml"

  | 2 ->
# 143 "lib/compliant_lexxer.mll"
    ( Lexxer_utils.lex_error "unexpected EOF in comment" )
# 453 "lib/compliant_lexxer.ml"

  | 3 ->
# 145 "lib/compliant_lexxer.mll"
    ( read_comment lexbuf )
# 458 "lib/compliant_lexxer.ml"

  | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
      __ocaml_lex_read_comment_rec lexbuf __ocaml_lex_state

;;

# 147 "lib/compliant_lexxer.mll"
 
  end

# 469 "lib/compliant_lexxer.ml"
OCaml

Innovation. Community. Security.