Skip to content
This repository has been archived by the owner on Apr 25, 2018. It is now read-only.

mikewest/css-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?)

About

A toy css parser, written to teach myself C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published