package mlt_parser
Parsing of top-expect files
Install
Dune Dependency
Authors
Maintainers
Sources
mlt_parser-v0.14.0.tar.gz
sha256=d2dad3bc858763f35f464055f0e020ebe483f40dfa328d4741c587498a395c05
md5=700853d1d4a090baf20b87746a725b60
README.md.html
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).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>