X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FParser.java;h=0504a111e587a76e6c675fcaf5befc0664f265c1;hp=744b7c026783a88bd8888194b83a30bf9499ad3d;hb=82f9b8d4a2fadb14cb004e5cc9f14944458f2e6c;hpb=189d68c64f7aaec90b7cdef0fb2c358fe4f0dd21 diff --git a/src/edu/berkeley/sbp/Parser.java b/src/edu/berkeley/sbp/Parser.java index 744b7c0..0504a11 100644 --- a/src/edu/berkeley/sbp/Parser.java +++ b/src/edu/berkeley/sbp/Parser.java @@ -15,7 +15,7 @@ public abstract class Parser { protected Parser(Table pt) { this.pt = pt; } /** implement this method to create the output forest corresponding to a lone shifted input token */ - protected abstract Forest shiftToken(Input.Location oldloc, Tok t, Input.Location newloc); + protected abstract Forest shiftToken(Tok t, Input.Location newloc); boolean helpgc = true; @@ -32,7 +32,7 @@ public abstract class Parser { Input.Location oldloc = loc; loc = input.getLocation(); current.reduce(); - Forest forest = current.token==null ? null : shiftToken(oldloc, (Tok)current.token, loc); + Forest forest = current.token==null ? null : shiftToken((Tok)current.token, loc); GSS.Phase next = gss.new Phase(current, this, current, input.next(), loc, forest); if (!helpgc) { FileOutputStream fos = new FileOutputStream("out-"+idx+".dot");