package parsexp

  1. Overview
  2. Docs
S-expression parsing library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.14.1.tar.gz
sha256=0460e64c88d13f0b84d74b6c2774a7e9d5ec8e29da7acb3b36c06edd3c560eb0
md5=e6659d53f4d94de8979e05d17222b753

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: 30 Jun 2021

Dependencies (4)

  1. dune >= "2.0.0"
  2. sexplib0 >= "v0.14" & < "v0.15"
  3. base >= "v0.14" & < "v0.15"
  4. ocaml >= "4.04.2"

Dev Dependencies

None

Conflicts

None

OCaml

Innovation. Community. Security.