Question
From an expression tree, how do I write a file that contains the three address format instructions. I am insterested in the java code to
From an expression tree, how do I write a file that contains the three address format instructions. I am insterested in the java code to do this. My program accepts an arithmetic expression of unsigned integers in postfix notation and builds the arithmetic expression tree that represents that expression. From that tree, the corresponding fully parenthesized infix expression is displayed in the GUI. I am trying to take that expression tree and generate a file that contains the three address format instructions for the expression input into the GUI.
The output file should diplay the below:
Add R0 5 9
Sub R1 3 R0
Mul R2 2 3
Div R3 R1 R2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started