aboutsummaryrefslogtreecommitdiff
path: root/ch6/6-06_define-processor.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-12-05Solve Exercise 6-6: A simple `#define` processorzlg1-0/+199
This exercise is probably the most challenging "function puzzle" thus far. Modifying getword(), using various states, and the hashtable all create an example of how small building blocks can work together to make something. The implementation is very simple and nowhere near completely supporting '#define', but that's not the point. To properly support it, you'd need to build an entire preprocessor/parser, and that's far beyond the scope of both the exercise and book.