parsexpversion

S-expression parsing library

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.

AuthorJane Street Group, LLC
LicenseApache-2.0
Published
Homepagehttps://github.com/janestreet/parsexp
Issue Trackerhttps://github.com/janestreet/parsexp/issues
MaintainerJane Street developers
Dependencies
Source [http] https://ocaml.janestreet.com/ocaml-core/v0.10/files/parsexp-v0.10.0.tar.gz
sha256=38e9591950b73b3eba4e7143185b4c9fd309cbcdc94ef4ce59cf8566ea960bab
md5=9af3039a6e8cc4b164e0cf1da6df4750
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/parsexp/parsexp.v0.10.0/opam
Required by