parsexp

AuthorJane Street Group, LLC <opensource@janestreet.com>
LicenseApache-2.0
Homepagehttps://github.com/janestreet/parsexp
Issue Trackerhttps://github.com/janestreet/parsexp/issues
Maintaineropensource@janestreet.com
Dependencies
&base>= v0.9&v0.10
jbuilder>= 1.0+beta7
ocaml-migrate-parsetree>= 0.4
ppx_compare>= v0.9&v0.10
ppx_driver>= v0.9&v0.10
ppx_fields_conv>= v0.9&v0.10
ppx_js_style>= v0.9&v0.10
ppx_sexp_conv>= v0.9&v0.10
ppx_sexp_value>= v0.9&v0.10
Availableocaml-version >= "4.03.0"
PublishedMay 19, 2017
Source [http] https://ocaml.janestreet.com/ocaml-core/v0.9/files/parsexp-v0.9.0.tar.gz
2a0868fb1570d068df887b76d668cd08
StatisticsInstalled 4 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/parsexp/parsexp.v0.9.0/opam

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.

Necessary for
parsexp_io