aboutsummaryrefslogtreecommitdiff
path: root/ch5/5-18_dcl-error-recovery.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-06-16The massive astyle sweep!zlg1-2/+2
Code style should be consistent now. All future commits will be run through astyle or they will be amended.
2015-01-30Solve Exercise 5-18: error-recovering `dcl`zlg1-0/+172
This exercise was a real pain in the ass. The original use of getch() and ungetch() was inferior to a line-based approach. It really doesn't seem like the way a parser should be built, but it taught me a little about the order of recursion. I'm convinced that a debugger is necessary if you want to build a good parser. This implementation doesn't recurse in a natural way, or even enough to stack data type prefixes. Hopefully by the time I get to 5-20 I'll have enough ideas to implement something that *does* recurse well.