RE: CYFPL - Part 2 - Inception 01-02-2017, 10:37 PM
#7
(01-02-2017, 09:56 PM)phyrrus9 Wrote:(01-02-2017, 08:58 PM)God Wrote: Just wondering where subtraction and division come into play? Since expressions could be more than adding or multiplying.
Also, I know Java better than C, but I should be fine understanding the C code anyway. I don't mind having to figure things out.
Good question with sub and div, I didn't really draw this out as clearly as I should have. I defined mult-op as multiply, divide, and modulo and add-op as add and subtract, doing it this way just makes it cleaner, not having 5 symbols (or even worse, 5 cases) in the grammar.
Oh okay. That makes a lot more sense now.
"If you look for the light, you can often find it. But if you look for the dark, that is all you will ever see.”





![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)