package parsexp

  1. Overview
  2. Docs
S-expression parsing library

Install

Authors

Maintainers

Sources

parsexp-v0.10.0.tar.gz
md5=9af3039a6e8cc4b164e0cf1da6df4750

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.

Published: 03 Jan 2018

Dependencies (10)

  1. ocaml-migrate-parsetree >= "0.4" & < "2.0.0"
  2. jbuilder >= "1.0+beta12"
  3. ppx_sexp_value >= "v0.10" & < "v0.11"
  4. ppx_sexp_conv >= "v0.10" & < "v0.11"
  5. ppx_js_style >= "v0.10" & < "v0.11"
  6. ppx_fields_conv >= "v0.10" & < "v0.11"
  7. ppx_driver >= "v0.10" & < "v0.11"
  8. ppx_compare >= "v0.10" & < "v0.11"
  9. base >= "v0.10" & < "v0.11"
  10. ocaml >= "4.04.1"

Dev Dependencies

None

Conflicts

None