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)
Using
x86_parser.parse
on the following assembly program (equivalent toprint(40 + 2)
)yields something of the form (I truncated the output)
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 usingconvert_x86.convert_program
yields something of the form (I truncated the output again)which is of the correct form for
eval_x86.eval_program
to accept and produce a result.I feel like I am missing something since
eval_x86.eval_program
is written to operate on the result that lark produces no?The text was updated successfully, but these errors were encountered: