9 ms·
If you're a ruby developer I strongly encourage you to check out the source code and parsing in general. This is heavily using parslet [1] to build a css parser
by zmoazeni 13y ago
If you're a ruby developer I strongly encourage you to check out the source code and parsing in general. This is heavily using parslet [1] to build a css parser [2]. I'm sure there are edge cases I have missed, but still the LOC for this codebase is relatively small and fairly readable.
Stay away from the RedundancyAnalyzer though. There be dragons.
[1] http://kschiess.github.io/parslet/ http://kschiess.github.io/parslet/
[2] https://github.com/zmoazeni/csscss/tree/ae2f22f4416bca35f903970c15aa1685a8d237cd/lib/csscss/parser https://github.com/zmoazeni/csscss/tree/ae2f22f4416bca35f903...