class Lexer implements Tokens {
/** for debugging */
- public static void main(String[] s) throws Exception {
+ public static void main(String[] s) throws IOException {
Lexer l = new Lexer(new InputStreamReader(System.in), "stdin", 0);
int tok = 0;
while((tok = l.getToken()) != -1) System.out.println(codeToString[tok]);
private int getString(int c) throws IOException {
StringBuffer stringBuf = null;
int quoteChar = c;
- int val = 0;
c = in.read();
in.startString(); // start after the first "
while(c != quoteChar) {