fixed bug 465
authoradam <adam@megacz.com>
Tue, 9 Mar 2004 08:46:40 +0000 (08:46 +0000)
committeradam <adam@megacz.com>
Tue, 9 Mar 2004 08:46:40 +0000 (08:46 +0000)
darcs-hash:20040309084640-5007d-50094a0c204196a493850a4230fcd5563fa41c6e.gz

Makefile
src/org/ibex/js/Lexer.java
src/org/ibex/js/Parser.java

index 6f0ddc0..685b011 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,7 @@ plat_classes_Solaris := org.ibex.plat.Solaris $(plat_classes_X11)
 plat_classes_Darwin  := org.ibex.plat.Darwin org.ibex.plat.OpenGL $(plat_classes_POSIX)
 
 plat_java_src_sources     := $(patsubst %,build/java/%.java,$(subst .,/,$(plat_classes_$(platform))))
-java_src_sources          := $(shell find src -name '*.java' | grep -v Preprocessor | grep -v plat)
+java_src_sources          := $(shell find src -name '*.java' | grep -v Preprocessor | grep -v /plat/)
 java_src_sources          += $(plat_java_src_sources)
 java_sources              := $(patsubst src/%.java,     build/java/%.java, $(java_src_sources))
 
index 5aab728..ac6f6e1 100644 (file)
@@ -43,7 +43,7 @@ class Lexer implements Tokens {
     protected String string = null;
 
     /** the line number of the most recently <i>lexed</i> token */
-    private int line = 0;
+    protected int line = 0;
 
     /** the line number of the most recently <i>parsed</i> token */
     protected int parserLine = 0;
index 09f50db..ded2556 100644 (file)
@@ -940,7 +940,7 @@ class Parser extends Lexer implements ByteCodes {
 
 
     // ParserException //////////////////////////////////////////////////////////////////////
-    private IOException pe(String s) { return new IOException(sourceName + ":" + parserLine + " " + s); }
+    private IOException pe(String s) { return new IOException(sourceName + ":" + line + " " + s); }
     
 }