X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FGSS.java;h=2d9f6ff0e7ccbe56066d09be042c66b2c622d144;hp=d8c0fd45430a2f3cc1f020408a9a25e8ff665212;hb=96a2822a729e563a64173f22dc184bc972a200ef;hpb=6b53048f4413f3c618acc3581d0b4f60a236a9bc diff --git a/src/edu/berkeley/sbp/GSS.java b/src/edu/berkeley/sbp/GSS.java index d8c0fd4..2d9f6ff 100644 --- a/src/edu/berkeley/sbp/GSS.java +++ b/src/edu/berkeley/sbp/GSS.java @@ -123,7 +123,7 @@ class GSS { } /** perform all shift operations, adding promoted nodes to next */ - public void shift(Phase next) { + public void shift(Phase next, Forest result) { closed = true; Forest res = null; boolean ok = false; @@ -137,7 +137,7 @@ class GSS { if (!n.holder.valid()) continue; if (token == null) continue; for(Parser.Table.State st : n.state.getShifts(token)) { - if (res == null) res = Forest.create(token.getLocation(), token.result(), null, null, false, false); + if (res == null) res = result; next.newNode(n, res, st, true, this); ok = true; }