Exercise 47. bc
You should be warmed up and ready to work on this new project. I’m usually assuming you would do these projects over one or two days as two- to three-hour sessions, but you can typically take as long as you need to implement them as much as you can.
This project is all about using what you learned in Part V to create the language for the bc program. We already implemented the simple math for bc in Exercise 36 but now you’re going to implement as much of the bc language as you can. There are a large number of operators for bc as well as functions and control structures. Your goal is to implement this in stages using what you learned about recursive descent parsers.
I would focus heavily on building your parser in stages starting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access