aboutsummaryrefslogtreecommitdiff
path: root/ch5/5-18_dcl-error-recovery.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
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.
'insertions'>+278 With this commit, I can toggle between Dvorak and QWERTY layouts with <Leader>q, making it much easier to edit text over the network. 2018-11-12Clean up function commentszlg1-7/+11 2018-11-12Add BufDiff()zlg1-0/+47