2003/06/09 00:07:40
[org.ibex.core.git] / src / org / xwt / js / Parser.java
index 73b3590..cd665f2 100644 (file)
@@ -65,7 +65,7 @@ class Parser extends Lexer implements ByteCodes {
     /** gets a token and throws an exception if it is not <tt>code</tt> */
     public void consume(int code) throws IOException {
        if (getToken() != code)
-           throw new ParserException("expected " + codeToString[code] + ", got " + (op == -1 ? "EOL" : codeToString[op]));
+           throw new ParserException("expected " + codeToString[code] + ", got " + (op == -1 ? "EOF" : codeToString[op]));
     }
 
     /** append the largest expression beginning with prefix containing no operators of precedence below <tt>minPrecedence</tt> */