CAS: a CSS API in C++
CAS is a CSS API made Simple. It is a simple
event based API. The parser is based on yacc and lex, started from
the CSS2-specification.
Where to get
Version 0.1: Source
How to build
Enclosed is a makefile that works for Linux and a Visual C++ 6 project
that works for windows.
How to use
- Include SAC.h
- Derive a class from DocumentHandler, say MyDocumentHandler
- Implement event handlers in MyDocumentHandler (See
DocumentHandler.h for available handlers)
- Assign a handler object to pDocHandler, i.e.,
pDocHandler = new DocumentHandler;
- Call yyparse(); and the parser takes input from
stdin. Alternatively, you
can point the file pointer yyin to a file for parsing
Copyright
GNU General Public Licence.
What's next
- Get rid of the vector and use char** instead.
- Remove bugs...
- Better SAC conformance.
- Move all C code for parser and lexical scanner in a Parser class.
webmaster