Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ocaml/camlp-streams
The Stream and Genlex libraries for use with Camlp4 and Camlp5
https://github.com/ocaml/camlp-streams
Last synced: 2 days ago
JSON representation
The Stream and Genlex libraries for use with Camlp4 and Camlp5
- Host: GitHub
- URL: https://github.com/ocaml/camlp-streams
- Owner: ocaml
- License: other
- Created: 2021-06-23T08:15:20.000Z (over 3 years ago)
- Default Branch: trunk
- Last Pushed: 2022-07-25T17:46:36.000Z (about 2 years ago)
- Last Synced: 2024-08-08T16:11:14.142Z (about 2 months ago)
- Language: OCaml
- Size: 87.9 KB
- Stars: 15
- Watchers: 21
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# The Stream and Genlex libraries for use with Camlp4 and Camlp5
The `camlp-streams` package provides two library modules:
- `Stream`: imperative streams, with in-place update and memoization of the latest element produced.
- `Genlex`: a small parameterized lexical analyzer producing streams of tokens from streams of characters.The two modules are designed for use with [Camlp4](https://github.com/camlp4/camlp4/) and [Camlp5](https://github.com/camlp5/camlp5):
- The stream patterns and stream expressions of Camlp4/Camlp5 consume and produce data of type `'a Stream.t`.
- The `Genlex` tokenizer can be used as a simple lexical analyzer for Camlp4/Camlp5-generated parsers.The `Stream` module can also be used by hand-written recursive-descent parsers, but is not very convenient for this purpose.
The `Stream` and `Genlex` modules have been part of the OCaml standard library for a long time, and have been distributed as part of the core OCaml system. They will be removed from the OCaml standard library at some future point, but will be maintained and distributed separately in this `camlp-streams` package.