This repository has been archived by the owner. It is now read-only.
A toy css parser, written to teach myself C.
C C++
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A toy CSS parser

A CSS validator for the command line, with a bit of linting built in.

In progress, and intended only as a mechanism to teach myself C: if you need to validate/minify CSS, I'd suggest using something like YUI Compressor or Norm's CSS Prepare.


  • Base structure (StatefulString, Token, and Tokenizer "objects").
  • Unit test framework (Check)
  • Tokenization, consistent with the rules laid out in the spec.

Next Steps

  • Decide on an error handling mechanism.
  • Turn the token stream into a parse tree.
  • Validate the tree.
  • Implementing some linting tests (vendor-prefixes, for example)
  • Integrate some of Norm's tests (maybe?)