ocss-parser
This is the repository for the syntax parser and stringifier of the OCSS preprocessor. You can try it out in the live editor.
Input
display: block
color: red
child // comment
color: blue
background: transparent
:hover
color: red
subchild
font-size: 12px
// another comment
=big
font-size: 200%
child
color: red
AST Output
CSS Output
Tests
Install dependencies with npm install
once. Afterwards run npm test
every time you want to start the tests.