package mlt_parser
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=fa243e549050f6ac63bc3725b27eee5e780f0f3faa2ce588ba5d5970d0eec5d2
md5=af9302b448c69eb80872515aafa4d9cc
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.
Published: 03 Jan 2018
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 (7)
-
ocaml-migrate-parsetree
>= "0.4" & < "2.0.0"
-
jbuilder
>= "1.0+beta12"
-
ppx_jane
>= "v0.10" & < "v0.11"
-
ppx_expect
= "v0.10.0"
-
ppx_driver
>= "v0.10" & < "v0.11"
-
core_kernel
>= "v0.10" & < "v0.11"
-
ocaml
>= "4.04.1"
Dev Dependencies
None
Used by (1)
-
toplevel_expect_test
= "v0.10.0"
Conflicts
None