package mlt_parser

  1. Overview
  2. Docs
Parsing of top-expect files

Install

Dune Dependency

Authors

Maintainers

Sources

mlt_parser-v0.11.0.tar.gz
md5=495b83b13603792f5c216039c7a13088

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: 22 Mar 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)

  1. pcre
  2. ocaml-migrate-parsetree >= "1.0" & < "2.0.0"
  3. jbuilder >= "1.0+beta18.1"
  4. ppx_jane >= "v0.11" & < "v0.12"
  5. ppx_expect >= "v0.11" & < "v0.12"
  6. core_kernel >= "v0.11" & < "v0.12"
  7. ocaml >= "4.04.1"

Dev Dependencies

None

Used by (1)

  1. toplevel_expect_test = "v0.11.0"

Conflicts (1)

  1. jbuilder = "1.0+beta19"