🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Parser Debugging.

Published January 19, 2008
Advertisement
Debugging parsers sucks nards.

I redid the PrimaryExpression parser for C#3.0 because my parsing framework doesn't handle left recursion. I then spent the rest of the day looking into why it didn't work. Turns out I forgot to put .Optional after the parser declaration for the postfix(++/--) operators. Not many expressions have the suddenly required ++ or -- to work...

Oopsie.


Anyways, the parser passes its current test: parse the source code for the test itself. 2300 lines of parse tree for ~20 lines of code... Maybe need to cut the verbosity down on that. So far this has been a pretty interesting exercise, and a little educational, but I've the nagging feeling that I could be doing something better with my time. I suspect I still re-implement things far far too much and such inclinations are what keep me from being even mediocre.
Previous Entry You're kidding, right?
Next Entry Penny Arcaded!
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement