An open API service indexing awesome lists of open source software.

https://github.com/usagi/cinnamonroll

This is the tool for the CSS that decompiling/compiling to the ".cinnamonroll"/".css" type, wrinte in the haskell use with the Parsec library.
https://github.com/usagi/cinnamonroll

Last synced: 3 months ago
JSON representation

This is the tool for the CSS that decompiling/compiling to the ".cinnamonroll"/".css" type, wrinte in the haskell use with the Parsec library.

Awesome Lists containing this project

README

        

cinnamonroll


What's this ?


This is the tool for the CSS that decompiling/compiling to the ".cinnamonroll"/".css" type, wrinte in the haskell use with the Parsec library.


Notes:



  • The cinnamonroll is the tool for writing/managing CSS to easy for a human like me. :)

  • It's not a validator.

    • very loose allowance for a CSS syntax.

    • parsing follow the "cinnamonroll rule".

      • the top level of a CSS has cinnamonroll blocks.

      • the second level of a CSS has selector blocks.

      • the third level of a CSS has property blocks.

      • the character of '@' called "cinnamonroll". :)






How to Run it


In the directory: src/cinnamonroll.lhs


It's the command line tool writen in literate haskell.


Usage for an instant


Decompile to .cinnamonroll from .css


% ./cinnamonroll.lhs -d source.css

Compile to .css from .cinnamonroll


% ./cinnamonroll.lhs -c source.cinnamonroll

Build and Install


Cabal

% cabal clean

% cabal configure
% cabal build
% cabal sdist
% cd dist
% cabal install cinnamonroll-A.B.C.tar.gz

Note: A.B.C is the version number in "cinnamonroll-A.B.C.tar.gz" packaged file.


Manually

% ghc cinnamonroll.lhs

% ln -s `pwd`/cinnamonroll /usr/local/bin/cinnamonroll

Note: you can install to the other path as you like.


Requirement




  • GHC (>=7.4.1)


Use the backend library


In the directory: src/WRP/CSS.hs


This is the library of the "WRP.CSS". The command line tool require it. This is the entity of the software. You can use it if you need for a your haskell programs.


Specification


Digest



  • available implements

    • write with space indent match to a level of nest

    • omit comment blocks



  • planed feature

    • optimization options



  • no plan

    • no-omit comment blocks option




.cinnamonroll


(Now Preparing)


Licence


for Software


MIT/X11


for Document


CC-BY/2.1(ja)


Contact



  • GitHub : GitHub


  • Website : Wonder Rabbit Project

  • E-Mail :
    <!--
    h='&#x77;&#x6f;&#110;&#100;&#x65;&#114;&#114;&#x61;&#98;&#98;&#x69;&#116;&#112;&#114;&#x6f;&#106;&#x65;&#x63;&#116;&#46;&#110;&#x65;&#116;';a='&#64;';n='&#x75;&#x73;&#x61;&#x67;&#x69;';e=n+a+h;
    document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'[email protected]'+'<\/'+'a'+'>');
    // -->
    [email protected] (usagi at wonderrabbitproject dot net)

  • Facebook: usagi.wrp

  • Twitter : @USAGI_WRP