protected Parser(Table<Tok> pt) { this.pt = pt; }
/** implement this method to create the output forest corresponding to a lone shifted input token */
- public abstract Forest<Result> shiftToken(Input.Location oldloc, Tok t, Input.Location newloc);
+ protected abstract Forest<Result> shiftToken(Input.Location oldloc, Tok t, Input.Location newloc);
- public boolean helpgc = true;
+ boolean helpgc = true;
public String toString() { return pt.toString(); }
GSS gss = new GSS();
Input.Location loc = input.getLocation();
GSS.Phase current = gss.new Phase<Tok>(null, this, null, input.next(), loc, null);
- current.newNode(null, Forest.leaf(null, null, null), pt.start, true);
+ current.newNode(null, Forest.create(null, null, null, false), pt.start, true);
int count = 1;
for(int idx=0;;idx++) {
Input.Location oldloc = loc;