package mlt_parser

All checked builds pass
  1. Overview
  2. Docs

Description

Mlt_parser contains functions for parsing .mlt files (which contain OCaml toplevel sessions) both to power toplevel expect tests and to support a tool that converts .mlt files into .org files, for literate-style documentation.

Added to opam-repository:

README

MLT Parser

Mlt_parser contains functions for parsing *.mlt files, which contain OCaml toplevel sessions -- i.e., a series of statements followed by their output (in the form of expect tests).

The first of these functions, split_chunks, was extracted out of Toplevel_expect_test, where it's used to divide the toplevel session into "chunks", where each chunk comprises a set of toplevel code phrases (statements separated by ;;) and the expect test they precede.

The second, parse, is used by a tool that converts *.mlt files into *.org files. That tool needs to be able to distinguish OCaml code phrases, expect tests, and blocks of org-mode markup (delimited by [%%org] annotations).

Dependencies (6)

  1. ppxlib >= "0.28.0"
  2. dune >= "3.11.0"
  3. ppx_jane >= "v0.17" & < "v0.18~"
  4. ppx_expect >= "v0.17" & < "v0.18~"
  5. core >= "v0.17" & < "v0.18~"
  6. ocaml >= "5.1.0"

Dev Dependencies

None

Optional Dependencies

None

Used by (1)

  1. toplevel_expect_test >= "v0.17.0"

Conflicts

None

Build status

Results of building mlt_parser with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
v0.17.0 (this version) n/a n/a good good good
v0.16.0 n/a good good n/a n/a
v0.15.0 good good n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure