projects
/
sbp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f13be78
)
checkpoint
author
adam
<adam@megacz.com>
Wed, 4 Jan 2006 11:07:25 +0000
(06:07 -0500)
committer
adam
<adam@megacz.com>
Wed, 4 Jan 2006 11:07:25 +0000
(06:07 -0500)
darcs-hash:
20060104110725
-5007d-
a58d79cde4a929398b8007ebb7f78c81952933ed
.gz
src/edu/berkeley/sbp/Parser.java
patch
|
blob
|
history
diff --git
a/src/edu/berkeley/sbp/Parser.java
b/src/edu/berkeley/sbp/Parser.java
index
d258b78
..
08c49a9
100644
(file)
--- a/
src/edu/berkeley/sbp/Parser.java
+++ b/
src/edu/berkeley/sbp/Parser.java
@@
-343,9
+343,8
@@
public abstract class Parser<T extends Token, R> {
rex = position.rewrite(target.getLocation());
}
for(GSS.Phase.Node child : parent.parents())
rex = position.rewrite(target.getLocation());
}
for(GSS.Phase.Node child : parent.parents())
- //if (pos==0) finish(parent, rex, target);
- //else
- reduce(child, pos-1, rex, target);
+ if (pos==0) finish(child, rex, target);
+ else reduce(child, pos-1, rex, target);
return rex;
}
private Forest finish(GSS.Phase.Node parent, Forest result, GSS.Phase target) {
return rex;
}
private Forest finish(GSS.Phase.Node parent, Forest result, GSS.Phase target) {