package mlt_parser

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

Install

Dune Dependency

Authors

Maintainers

Sources

mlt_parser-v0.12.0.tar.gz
sha256=a80dea284a48bf6e1a3998f079e7b5e8833b659293dfab8d48103c45e883f5ed
md5=4325a551aa8028be5a1be55d1f71e0e0

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: 01 Mar 2019

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.5.0" & < "0.9.0"
  2. dune >= "1.5.1"
  3. ppx_jane >= "v0.12" & < "v0.13"
  4. ppx_expect >= "v0.12" & < "v0.13"
  5. core_kernel >= "v0.12" & < "v0.13"
  6. ocaml >= "4.07.0"

Dev Dependencies

None

Used by (1)

  1. toplevel_expect_test >= "v0.12.0" & < "v0.13.0"

Conflicts

None

OCaml

Innovation. Community. Security.