|
Quoting the book "Elements of Computing Systems"
For example, the Jack grammar
does not mandate the usual operator precedence (O.P.) in expressions evaluation (multiplication before addition,
and so on). This has enabled us to avoid parsing algorithms that are more powerful yet much more
technical than the elegant top-down parsing techniques presented in the chapter.
If there's one tip I can give to help with project 9 is don't forget that there isn't any O.P !
The amount of times my if statements didn't behave as I expected were many, because i'd forgotten brackets (())!
eg
if ((startBlkNum > (MIDPOINT - 1)) & f1stNon_0Reslt)
Parentheses, Parentheses, Parentheses. Don't forget your Parentheses !
Good luck !
|