You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is not in the correct shape for eval_x86.eval_program to accept it.
However, evaluating assembly generated by the compiler works.
Using a finished compiler from chapter 2 to compile print(40 + 2) to x86 ast and then using convert_x86.convert_program yields something of the form (I truncated the output again)
Activity
waynee95 commentedon May 18, 2023
For now I fixed it with a dirty fix:
Another thing that was missing is the actual "eval" part in the function
parse_and_eval_program: