X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FLexer.java;h=5aab728c2e287d79437b8f5fa9d225457ef548ca;hb=c04af3bec88e6cbaf461700900d00d1e4d096d26;hp=6e77eb76ed5512bb620ec318f15aee7549d1337c;hpb=3591b88b94a6bb378af3d4abe6eb5233ce583104;p=org.ibex.core.git diff --git a/src/org/ibex/js/Lexer.java b/src/org/ibex/js/Lexer.java index 6e77eb7..5aab728 100644 --- a/src/org/ibex/js/Lexer.java +++ b/src/org/ibex/js/Lexer.java @@ -24,7 +24,7 @@ import java.io.*; 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]); @@ -202,7 +202,6 @@ class Lexer implements Tokens { 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) {