Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A toy css parser, written to teach myself C.
C C++
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
tests
.gitignore
Makefile
README.markdown

README.markdown

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.

Done

  • 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?)
Something went wrong with that request. Please try again.