What are the variable properties that have to be known inorder to compile variables?
The compiler uses variable tables to save variable properties.
Complete the blanks:
Methods must alwasys return something in Jack.
When compiling a void method, what should be pushed on to the stack before the return statment.
At the end of the copiled code, do:
push constant zero
return
This is a dummy value.
Compile this expression:
Compile this expression: