Define a code generator for this ast structure you may


Assume that we create a new kind of conditional statement, the signtest. Its structure is

236_03557b6b-f704-43e0-ad9f-9d16b46250b5.png

End The integer-valued expression is evaluated. If it is negative, the statements following neg are executed. If it is zero, the statements following zero are executed. If it is positive, the statements following pos are executed. Suggest an AST structure suitable for representing a signtest statement. Define a code generator for this AST structure. (You may generate JVM code or code for any other computer architecture).

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Define a code generator for this ast structure you may
Reference No:- TGS01486739

Expected delivery within 24 Hours