parse, detect errors, and pretty-print css directly in terminal, natively in OCaml, or even from JavaScript.
this is under active development, please do not use yet
css-parse
is written in OCaml and utilizes ocamllex and menhir for lexer and parser generation. A pretty good introduction and explanation of the tools can be found in Real World Ocaml.
We generate a binary as well that can be run from the command line.
You'll need to install esy as well as menhir. To bootstrap the project run:
esy install
make
In order to test this module, I've stolen test cases from the very well tested reworkcss. All of the test cases are run through OUnit and can be executed with:
make test