Merged in pa2 and updated test scripts

This commit is contained in:
Sanjar Ahmadov
2021-05-07 10:52:10 -04:00
581 changed files with 83708 additions and 3 deletions
@@ -5,6 +5,7 @@ import java_cup.runtime.ComplexSymbolFactory.Location;
import java.util.List;
/** Indefinite repetition construct. */
public class WhileStmt extends Stmt {
/** Test for whether to continue. */
@@ -19,6 +20,7 @@ public class WhileStmt extends Stmt {
this.body = body;
}
public <T> T dispatch(NodeAnalyzer<T> analyzer) {
return analyzer.analyze(this);
}