Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
class='logsubject'>Fix Exercise 1-12's solutionzlg | 1 | -2/+4 |
|
Printing a newline for each whitespace character was the wrong behavior.
|
|
It was bugging me and the exercises are simple, so I pumped'em out.
|
|
Escape sequences were being compared with the 'or' operator instead of
the 'and' operator. If I had left it alone, every escape sequence
would've borked it.
|
|
I'm glad to be done with chapter 1. It feels like I'm starting to gain
momentum. I'm certainly looking forward to using higher level constructs
like switch(), which I think is available in Chapter 2. So far so good!
|