kizu / ideas

Repo for some not-so-secret ideas for different things, more like todo-someday-in-the-future I guess
1 stars 0 forks source link

CSS AST Adapter #112

Open kizu opened 9 years ago

kizu commented 9 years ago

There are a lot of parsers (and tools alike) like Gonzales, PostCSS, Rework, and there are a lot of preprocessors that have their own parsers inside (Stylus etc.)

In most cases all of those tools are getting CSS on input and have their own AST inside in the middle.

It would be nice to have a tool that could transform the AST gotten from one tool to the AST format of another tool, so it would be easy to, for example, attach Stylus to CSSComb or PostCSS in a way we'd get the parsed Stylus' code, transform it for the Gonzales AST for CSSComb or for PostCSS one, do stuff in those tools, then transform it back into Stylus' AST and continue with Stylus. Etc.