Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Extension for string literals in OCaml
OCaml Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
sample
.gitignore
CHANGES.md
LICENSE
Makefile
README.md
_oasis
_tags
configure
dist
myocamlbuild.ml
pa_estring.ml
pa_estring.mli
setup.ml
style.css

README.md

estring - extension for string literals

Estring is a syntax extension which aims to make the use of custom string types more convenient.

The idea is to replace this kind of code:

(My_string.of_string "string literals")

by:

m"string literals"

Dependencies

For building the development version, you also need to install oasis (>= 0.3.0).

Installation

To build and install estring:

$ ./configure
$ make
$ make install

Documentation (optional)

To build the documentation:

$ make doc

It will then be installed by make install.

Tests (optionnal)

To build and execute tests:

$ ./configure --enable-tests
$ make test

Usage

Files in the "sample" directory show how to define string convertors.

For the distribution of your project, you can either add a dependency to the estring package or embed it in your sources. Several instances of estring can work together so this will not break anything.

Something went wrong with that request. Please try again.