a bug in 2.4.1.1.c.
Mooophy opened this issue · comments
Yue Wang commented
Hi @fool2fish thx for your sharing. That's really helpful.
When I tried 2.4.1.1.c
https://github.com/fool2fish/dragon-book-exercise-answers/blob/master/ch02/2.4/2.4.1.1.c,
I found that when something like "aaa" or ''aaaaa'' was input, no "syntax error" was printed. I fixed this problem in C++:
https://github.com/Mooophy/dragon-book-2nd/blob/master/ch02/2.4/ex2_4_1a.cpp
I've little experience on C, so just make this report instead of pull request.
Good luck~