Output

Adding these into the CUP specification produces nice-looking results (see Listing 6-39).

DoWhile.java and IfTest.java

The next extension of the decompiler allows it to handle conditional statements. Two types of conditional statements do not require the goto opcode by nature—the do-while loop (Listing 6-40) and the if statement (Listing 6-41)—so it is logical to start with them. This small change requires the addition of several new opcodes, the most complicated covered ...

Get Decompiling Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.