Chapter 6 and exercise 3

136 views
Skip to first unread message

JS

unread,
Dec 15, 2017, 3:48:48 AM12/15/17
to PPP-public
I have trouble understanding chapter 6 especially the grammar part and implementing the token functions expressions(), Token::get etc. I don't know how expressions work through the grammar; simple expressions like 2+3 I get it but something complex like (2*3)-(4*2) confuses me. I've read this chapter countless of times but still couldn't get it. That being said I also don't know how to solve question 3 and don't know where to start. Anyone can help guide me through this? .

cortical_iv

unread,
Apr 25, 2018, 12:28:08 PM4/25/18
to PPP-public
I would see this thread there is a good discussion of this issue:
https://groups.google.com/forum/#!topic/ppp-public/BZRtrV2O_Xw

Also have you seen this blog it is very good and goes over a lot of the stuff. It has helped me find some errors in Chapter 6 code that I hadn't seen before:
http://lptcp.blogspot.com/

cortical_iv

unread,
Apr 25, 2018, 12:37:16 PM4/25/18
to PPP-public
The main thing is, you will not understand this by reading the chapter. You absolutely have to work through the code. Unfortunately, he doesn't actually provide a full working program anywhere, but you can find them online, or tweak the one he provides at his site for the Ch6 drill...


On Friday, December 15, 2017 at 3:48:48 AM UTC-5, JS wrote:
Message has been deleted
Message has been deleted

Romulo Barros

unread,
Jan 15, 2019, 2:09:29 PM1/15/19
to PPP-public
Sorry, I hadn't seen this thread before I've posted my answer here: https://groups.google.com/forum/#!topic/ppp-public/qvIAOPGtU3M
Reply all
Reply to author
Forward
0 new messages