Merged in PA1
This commit is contained in:
@@ -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,7 +20,9 @@ public class WhileStmt extends Stmt {
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
|
||||
public <T> T dispatch(NodeAnalyzer<T> analyzer) {
|
||||
return analyzer.analyze(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user