Any suggestions for a parsing project? I just downloaded the spirit parsor, and I want to get some practice with it. I wrote a path parsor, that basically chops a path up into its components...but that was only about 12 lines.
The framework already comes with a c parsor, pascal parsor, and XML parsor.
I was wondering about something like an SQL syntax checker, or maybe an HTML syntax checker. Any other ideas? I just want something reasonably involved, but not something that will require tons of research to determine all the syntax rules involved. Thanks.
Write a program that takes a C/C++ declaration and see's if it is syntaxually correct. There is an example in Perer Van Der Linden's book Deep C Secrets. It is fairly straight forward, you can prolly find an example online.
By declaration do you mean:
checking something like this:
static volatile unsigned long int x = 56;
Or do you mean any c++ expression or statement?
If you mean the first case, that would be trivial with spirit.