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.
- Host: GitHub
- URL: https://github.com/usagi/cinnamonroll
- Owner: usagi
- License: mit
- Created: 2012-03-25T14:10:08.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T05:12:01.000Z (over 9 years ago)
- Last Synced: 2025-01-13T11:11:24.501Z (5 months ago)
- Language: Haskell
- Homepage:
- Size: 131 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.html
- License: LICENSE
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
for Document
Contact
GitHub : GitHub
- Website : Wonder Rabbit Project
- E-Mail :
<!--
h='wonderrabbitproject.net';a='@';n='usagi';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