mlt_parser

Parsing of top-expect files
README

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).

Install
Published
21 Mar 2022
Sources
mlt_parser-v0.15.0.tar.gz
sha256=fd4b8885f7a9fbb2336c1d761842fdbc49cc1f8a04bbc324eb1060a1094b335d
Dependencies
ppxlib
>= "0.23.0"
dune
>= "2.0.0"
ppx_jane
>= "v0.15" & < "v0.16"
ppx_expect
>= "v0.15" & < "v0.16"
core
>= "v0.15" & < "v0.16"
ocaml
>= "4.08.0"
Reverse Dependencies