At the end of chapter 6.6 we are to modify expression(), term(), and primary(). In 6.7 we are to test the new version of the calculator. However, before I can do that, I first need to compile my new version. I get these compile errors:
http://pastebin.com/dqT02tw0So, I'm going to need to declare ts, but that code is not provided anywhere that I can see. Here is my current calculator00.cpp that does not yet compile:
http://pastebin.com/n9Fs1D3UStroustrup doesn't really seem to address Token Streams until 6.8, but I should still at least be able to get the calculator working from 6.7 from the information already given, which doesn't declare ts or provide the code for any Token_stream class or anything. Any help to get the second version calculator00 working would be great. Thank you.