parsexp

S-expression parsing library
Description

This library provides generic parsers for parsing S-expressions from strings or other medium.

The library is focused on performances but still provide full generic parsers that can be used with strings, bigstrings, lexing buffers, character streams or any other sources effortlessly.

It provides three different class of parsers:

  • the normal parsers, producing [Sexp.t] or [Sexp.t list] values
  • the parsers with positions, building compact position sequences so that one can recover original positions in order to report properly located errors at little cost
  • the Concrete Syntax Tree parsers, produce values of type [Parsexp.Cst.t] which record the concrete layout of the s-expression syntax, including comments

This library is portable and doesn't provide IO functions. To read s-expressions from files or other external sources, you should use parsexp_io.

Install
Published
21 Mar 2022
Sources
parsexp-v0.15.0.tar.gz
sha256=d1ee902b12ac7c0c888863025990d06845530fb75328454814e5ce5b6d43d193
Dependencies
dune
>= "2.0.0"
sexplib0
>= "v0.15" & < "v0.16"
base
>= "v0.15" & < "v0.16"
ocaml
>= "4.08.0"
Reverse Dependencies
bap-primus
>= "2.2.0" & != "2.4.0"
bare
>= "2.2.0" & != "2.4.0"
parsexp_io
>= "v0.15.0"
sexplib
>= "v0.15.0"
tezos-tooling
>= "13.0"