projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GSS: add isFrontier(), make next private
[sbp.git]
/
src
/
edu
/
berkeley
/
sbp
/
GSS.java
diff --git
a/src/edu/berkeley/sbp/GSS.java
b/src/edu/berkeley/sbp/GSS.java
index
be4276f
..
f0a4cea
100644
(file)
--- a/
src/edu/berkeley/sbp/GSS.java
+++ b/
src/edu/berkeley/sbp/GSS.java
@@
-38,7
+38,7
@@
class GSS {
public IntPairMap<Node> hash; /* ALLOC */
private boolean good;
public IntPairMap<Node> hash; /* ALLOC */
private boolean good;
- Phase next = null;
+ private Phase next = null;
private Phase prev;
private Input.Location location;
private Input.Location nextLocation;
private Phase prev;
private Input.Location location;
private Input.Location nextLocation;
@@
-61,7
+61,8
@@
class GSS {
finalResult = null;
if (prev != null) prev.shift(this, forest);
}
finalResult = null;
if (prev != null) prev.shift(this, forest);
}
-
+
+ public boolean isFrontier() { return next==null; }
public boolean isDone() throws ParseFailed {
if (token != null) return false;
if (token==null && finalResult==null)
public boolean isDone() throws ParseFailed {
if (token != null) return false;
if (token==null && finalResult==null)