Sophie

Sophie

distrib > Mandriva > 9.1 > i586 > by-pkgid > b9ba69a436161613d8fb030c8c726a8e > files > 498

spirit-1.5.1-2mdk.noarch.rpm

The C grammar parser is a full working example of using the Spirit
library and is able to parse the full ANSI C language. 

The C grammar is adapted from
	http://www.lysator.liu.se/c/ANSI-C-grammar-y.html
	http://www.lysator.liu.se/c/ANSI-C-grammar-l.html 

Not implemented is the analysis of typedef's because it requires semantic
analysis of the parsed code, which is beyond the scope of this sample.

The test files in this directory are adapted from
	http://www.bagley.org/~doug/shootout
and where modified slightly to avoid preprocessing (#include's and 
#define's are commented out, where possible).

The test files are parsed correctly.