package ocamlregextkit
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=676858fccee2a668cee8f17678bb4d0e6ae60f73b7f701e1f418095e84b1554b
sha512=efbff06dd5668a13983411e575f1ab35049e2d75c0a6a56bcfd3c646374a73b467bfafcae7af127215d3ee00c3c70424dbf62f59b51dd3e8b0af97a5132de75a
doc/README.html
A Regular Expression Toolkit
OCamlregextkit is a library providing simple interface to operations on regular expressions, NFAs, and DFAs.
Written in OCaml, using the Dune build system.
Installation
Requires
- OCaml v4.14.0 or greater
- Dune v3.4 or greater
See OCaml docs for installation instructions.
Documentation
Find documentation for the toolkit here
Note: all modules are packaged into a single module Regextkit
Demo
For demonstration purposes, demo is a program built using the toolkit which accepts two regular expressions on the command line, and either verifies that they are equivalent or prints a word that matches one expression but not the other.
Build the Library
makeBuild the demo
cd demo
makeRun the demo
dune exec ./demo.exe "<regex>" "<regex>"To test the demo, run
make testThis will run a set of test cases, which checks correctness of basic parsing, equivalence, and difference of two regular expressions.
Testing
The testing directory contains code to profile and run timing tests for equivalence and minimisation of DFAs.
Run make profile or make test to compile and execute the respective function.
Make Targets
makeBuilds the library with dunemake cleanRemoves dune's build directorymake docGenerates documentation for the toolkit