# CSS1 syntax checker

This program checks a CSS1 style sheet for syntax errors and outputs a `pretty-printed' version of it. Maybe somebody can create a lint-like tool out of it?

The grammar is the one from PR-CSS1. The source is in ANSI C:

- Makefile
- grammar.c - generated top-down parser
- grammar.def - generated terminal symbols
- grammar.ll1 - source for top-down parser
- lex.c - generated scanner
- lex.l - source for Flex
- main.c - main program and error printing
- scan.h - contains declarations of "yytext", etc.

Download each of the above files and run make. If all goes well, you should end up with a program called check. Please, don't contact me for help. Improved code is always welcome, however.

(If you want to experiment with my top-down parser generator, the one that generated grammar.c and grammar.def, get this compressed tar-file as well.)