int _row = 1;
int _col = 0;
- public Input.Location getLocation() { return new CartesianLocation(_row, _col); }
+ public Input.Location getLocation() { return new Cartesian.Location(_col, _row); }
private BufferedReader br;
- char left = CharRange.left;
- char right = CharRange.right;
+ char left = CharAtom.left;
+ char right = CharAtom.right;
boolean waiting = false;
char waitingChar = ' ';
// Grammar //////////////////////////////////////////////////////////////////////////////
+ /*
public static class Grammar extends ReflectiveGrammar {
private int anon = 0;
private final Element ws = Sequence.maximal0(getNonTerminal("w"));
u2.add(Sequence.singleton(new Element[] { u }, 0));
return anonymousNonTerminal(new Sequence[][] {
new Sequence[] {
- Sequence.singleton(new Element[] { CharRange.leftBrace,
+ Sequence.singleton(new Element[] { CharAtom.leftBrace,
ws,
u2,
ws,
- CharRange.rightBrace
+ CharAtom.rightBrace
}, 2)
}
});
return super.walk(tree);
}
}
+ */
/*
public class Braces extends Union {