package atdgen-runtime

  1. Overview
  2. Docs
Runtime library for code generated by atdgen

Install

dune-project
 Dependency

Authors

  1. M
    Martin Jambon <martin@mjambon.com>
  2. M
    Martin Jambon <martin@r2c.dev>
  3. R
    Rudi Grinberg <rudi.grinberg@gmail.com>
  4. M
    Martin Jambon <github@mjambon.com>
  5. A
    Alexandre Bourquelot <alexandre.bourquelot@ahrefs.com>
  6. O
    oleksiy <oleksiy.golovko@ahrefs.com>
  7. I
    Ivan Jager <aij+git@mrph.org>
  8. M
    Martin Jambon <martin@semgrep.com>
  9. G
    Gregoire Lionnet <gregoire.lionnet@ahrefs.com>
  10. S
    Sebastien Mondet <sebastien.mondet@ahrefs.com>
  11. D
    David Sheets <sheets@alum.mit.edu>
  12. R
    Rudi Grinberg <me@rgrinberg.com>
  13. M
    Martin Jambon <martin@esper.com>
  14. R
    Rytis Jonynas <rytis.jonynas@ahrefs.com>
  15. J
    Jeff Meister <nanaki@gmail.com>
  16. R
    Raman Varabets <roman.vorobets@gmail.com>
  17. C
    Carmelo Piccione <carmelo.piccione@gmail.com>
  18. L
    Louis <louis.roche@ahrefs.com>
  19. C
    Caio Wakamatsu <caio.wakamatsu@ahrefs.com>
  20. M
    Marek Kubica <marek@tarides.com>
  21. D
    Daniel Weil <danweil68@gmail.com>
  22. E
    Egor Chemokhonenko <egor.chemohonenko@ahrefs.com>
  23. Gabriel Scherer
  24. J
    Javier Chavarri <javier.chavarri@gmail.com>
  25. L
    Louis Roché (Ahrefs) <louis.roche@ahrefs.com>
  26. M
    Matthew McQuaid <matthew@returntocorp.com>
  27. R
    Raman Varabets <raman+git@ahrefs.com>
  28. K
    koonwen <koonwen@gmail.com>
  29. T
    tzm <frank@boldsolutions.de>
  30. M
    Mathieu Baudet <mathieubaudet@fb.com>
  31. O
    Oleksiy Golovko <alexei.golovko@gmail.com>
  32. R
    Rauan Mayemir <rauan@mayemir.io>
  33. S
    Seb Mondet <seb@mondet.org>
  34. A
    Alexandre Bourquelot <alexandre.bourquelot@gmail.com>
  35. C
    Carmelo Piccione <cep1@solvuu.com>
  36. H
    Hyeseong Kim <hey@hyeseong.kim>
  37. J
    John Billings <john@monkeynut.org>
  38. L
    Louis Roché <louis@louisroche.net>
  39. M
    Mathieu Barbin <mathieu.barbin@gmail.com>
  40. Z
    Zach Yannes <zach@returntocorp.com>
  41. A
    Antonin Décimo <antonin@tarides.com>
  42. B
    Brendan Long <self@brendanlong.com>
  43. C
    Chris Yocum <cyocum@gmail.com>
  44. K
    Kate <kit.ty.kate@disroot.org>
  45. L
    Louis Roché <louis.roche@ahrefs.com>
  46. P
    Pavel Antoshkin <pavel.antoshkin@ahrefs.com>
  47. P
    Pierre Boutillier <pierre.boutillier@laposte.net>
  48. S
    Shon Feder <shon.feder@key.me>
  49. M
    metanivek <metanivek@gmail.com>
  50. S
    sebastiantoh <sebas.tsj.98@gmail.com>
  51. A
    Anurag Soni <anuragsoni.13@gmail.com>
  52. A
    Arjun Ravi Narayan <arjunravinarayan@gmail.com>
  53. A
    Asya-kawai <kawai-toshiki@aintek.xyz>
  54. C
    Christophe Troestler <christophe.Troestler@umons.ac.be>
  55. C
    Corentin Leruth <corentin.leruth@gmail.com>
  56. Damien Doligez
  57. D
    Daniel M <dan.mntg@gmail.com>
  58. D
    Ding Xiang Fei <dingxiangfei2009@protonmail.ch>
  59. E
    Enrico Tassi <Enrico.Tassi@Inria.fr>
  60. F
    François Pottier <francois.pottier@inria.fr>
  61. J
    Javier Chávarri <javier.chavarri@gmail.com>
  62. J
    Jonas Bergler <jonas@bergler.name>
  63. K
    Kate <kit-ty-kate@exn.st>
  64. K
    Koon Wen Lee <koonwen@gmail.com>
  65. L
    Louis <mail+github@louisroche.net>
  66. L
    Louis Roché <louis@cryptosense.com>
  67. S
    Stephane Legrand <slegrand45@gmail.com>
  68. V
    Vincent Bernardoff <vb@luminar.eu.org>
  69. Z
    Zach <zachyannes@gmail.com>
  70. H
    haoyang <haoyang@esper.co>
  71. P
    pmundkur <prashanth.mundkur@gmail.com>
  72. R
    rr0gi <igor@ahrefs.com>
  73. Y
    ygrek <ygrek@autistici.org>

Maintainers

Sources

atd-4.2.0.tbz
sha256=40e54c8ecdc45794155221f4299c2a9d49170f4ec41424e8c889d235a52d3a55
sha512=337f2739167936de28e042bf2d05df8c535c0c8293fb86c086861c8cc8a617d0d6c0bafb09e4817c5ae6d77dff7d0afcaed3f235c6c9ae7104c784c17d286605

doc/src/atdgen-runtime/yojson_lexer_utils.ml.html

Source file yojson_lexer_utils.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
let __ocaml_lex_tables = {
  Lexing.lex_base =
   "\000\000\254\255\255\255";
  Lexing.lex_backtrk =
   "\255\255\255\255\255\255";
  Lexing.lex_default =
   "\001\000\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\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
    \000\000\000\000\000\000\000\000\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";
  Lexing.lex_check =
   "\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\
    \255\255\255\255\255\255\255\255\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";
  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_junk buf n lexbuf =
   __ocaml_lex_read_junk_rec buf n lexbuf 0
and __ocaml_lex_read_junk_rec buf n lexbuf __ocaml_lex_state =
  match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with
      | 0 ->
# 6 "atdgen-runtime/src/yojson_lexer_utils.mll"
        ( () )
# 98 "atdgen-runtime/src/yojson_lexer_utils.ml"

  | 1 ->
# 7 "atdgen-runtime/src/yojson_lexer_utils.mll"
      (
     if n <= 0 then ()
     else begin
       Buffer.add_char buf (Lexing.lexeme_char lexbuf 0);
       read_junk buf (n - 1) lexbuf
     end
     )
# 109 "atdgen-runtime/src/yojson_lexer_utils.ml"

  | __ocaml_lex_state -> lexbuf.Lexing.refill_buff lexbuf;
      __ocaml_lex_read_junk_rec buf n lexbuf __ocaml_lex_state

;;

# 15 "atdgen-runtime/src/yojson_lexer_utils.mll"
 
let read_junk_without_positions buf n (lexbuf : Lexing.lexbuf) =
  let lex_abs_pos = lexbuf.lex_abs_pos in
  let lex_start_pos = lexbuf.lex_start_pos in
  read_junk buf n lexbuf;
  lexbuf.lex_start_pos <- lex_start_pos + 1;
  lexbuf.lex_abs_pos <- lex_abs_pos

# 125 "atdgen-runtime/src/yojson_lexer_utils.ml"