Skip to content

samouri/ocaml-css

Repository files navigation

css-parse

Build Status

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

Overview

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.

Development

You'll need to install esy as well as menhir. To bootstrap the project run:

esy install
make

Testing Done

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

About

css parser and printer for both OCaml and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published