| 1 |
(lang dune 2.7) |
| 2 |
(generate_opam_files true) |
| 3 |
(formatting disabled) |
| 4 |
|
| 5 |
(name camlp-streams) |
| 6 |
(source (github ocaml/camlp-streams)) |
| 7 |
(authors "Daniel de Rauglaudre" "Xavier Leroy") |
| 8 |
(maintainers |
| 9 |
"Florian Angeletti <[email protected]>" |
| 10 |
"Xavier Leroy <[email protected]>") |
| 11 |
|
| 12 |
(package |
| 13 |
(name camlp-streams) |
| 14 |
(synopsis "The Stream and Genlex libraries for use with Camlp4 and Camlp5") |
| 15 |
(description " |
| 16 |
This package provides two library modules: |
| 17 |
- Stream: imperative streams, with in-place update and memoization |
| 18 |
of the latest element produced. |
| 19 |
- Genlex: a small parameterized lexical analyzer producing streams |
| 20 |
of tokens from streams of characters. |
| 21 |
|
| 22 |
The two modules are designed for use with Camlp4 and Camlp5: |
| 23 |
- The stream patterns and stream expressions of Camlp4/Camlp5 consume |
| 24 |
and produce data of type 'a Stream.t. |
| 25 |
- The Genlex tokenizer can be used as a simple lexical analyzer for |
| 26 |
Camlp4/Camlp5-generated parsers. |
| 27 |
|
| 28 |
The Stream module can also be used by hand-written recursive-descent |
| 29 |
parsers, but is not very convenient for this purpose. |
| 30 |
|
| 31 |
The Stream and Genlex modules have been part of the OCaml standard library |
| 32 |
for a long time, and have been distributed as part of the core OCaml system. |
| 33 |
They will be removed from the OCaml standard library at some future point, |
| 34 |
but will be maintained and distributed separately in this camlpstreams package. |
| 35 |
") |
| 36 |
|
| 37 |
(depends |
| 38 |
(ocaml (>= 4.02.3))) |
| 39 |
) |