1 8 9 package beaver; 10 11 import java.io.IOException ; 12 13 14 15 18 public abstract class Scanner 19 { 20 public static class Exception extends java.lang.Exception  21 { 22 public final int line; 23 public final int column; 24 25 public Exception(String msg) 26 { 27 this(0, 0, msg); 28 } 29 30 public Exception(int line, int column, String msg) 31 { 32 super(msg); 33 this.line = line; 34 this.column = column; 35 } 36 } 37 38 public abstract Symbol nextToken() throws IOException , Scanner.Exception; 39 } 40 | Popular Tags |