Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| creating:actions [2025/11/03 23:05] – Use Java's instanceof-cast syntax ahelwer | creating:actions [2025/11/03 23:08] (current) – One more instanceof-cast ahelwer | ||
|---|---|---|---|
| Line 472: | Line 472: | ||
| if (replMode && statements.size() == 1 | if (replMode && statements.size() == 1 | ||
| - | && statements.get(0) instanceof Stmt.Print) { | + | && statements.get(0) instanceof Stmt.Print |
| - | tryStep((Stmt.Print)statements.get(0)); | + | tryStep(action); |
| } else { | } else { | ||
| interpreter.interpret(statements); | interpreter.interpret(statements); | ||