Changeset 4632
- Timestamp:
- 11/03/03 16:07:54 (19 years ago)
- Location:
- trunk/j/src/org/armedbear/lisp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/BinaryInputStream.java
r4424 r4632 3 3 * 4 4 * Copyright (C) 2003 Peter Graves 5 * $Id: BinaryInputStream.java,v 1. 5 2003-10-17 13:11:52piso Exp $5 * $Id: BinaryInputStream.java,v 1.6 2003-11-03 16:07:53 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 48 48 if (n < 0) { 49 49 if (eofError) 50 throw new ConditionThrowable(new EndOfFile Exception());50 throw new ConditionThrowable(new EndOfFile()); 51 51 else 52 52 return eofValue; -
trunk/j/src/org/armedbear/lisp/CharacterInputStream.java
r4439 r4632 3 3 * 4 4 * Copyright (C) 2003 Peter Graves 5 * $Id: CharacterInputStream.java,v 1.5 5 2003-10-17 17:35:07piso Exp $5 * $Id: CharacterInputStream.java,v 1.56 2003-11-03 16:07:54 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 97 97 if (n < 0) { 98 98 if (eofError) 99 throw new ConditionThrowable(new EndOfFile Exception());99 throw new ConditionThrowable(new EndOfFile()); 100 100 else 101 101 return eofValue; … … 145 145 int n = read(); 146 146 if (n < 0) 147 throw new ConditionThrowable(new EndOfFile Exception());147 throw new ConditionThrowable(new EndOfFile()); 148 148 char c = (char) n; 149 149 if (c == '\\') { … … 151 151 n = read(); 152 152 if (n < 0) 153 throw new ConditionThrowable(new EndOfFile Exception());153 throw new ConditionThrowable(new EndOfFile()); 154 154 sb.append((char)n); 155 155 continue; … … 182 182 } 183 183 if (n < 0) 184 throw new ConditionThrowable(new EndOfFile Exception());184 throw new ConditionThrowable(new EndOfFile()); 185 185 char nextChar = (char) n; 186 186 if (nextChar == '"') … … 207 207 int n = read(); 208 208 if (n < 0) 209 throw new ConditionThrowable(new EndOfFile Exception());209 throw new ConditionThrowable(new EndOfFile()); 210 210 char nextChar = (char) n; 211 211 if (isTokenDelimiter(nextChar)) { … … 282 282 int n = read(); 283 283 if (n < 0) 284 throw new ConditionThrowable(new EndOfFile Exception());284 throw new ConditionThrowable(new EndOfFile()); 285 285 char c = (char) n; 286 286 switch (c) { … … 315 315 int n = read(); 316 316 if (n < 0) 317 throw new ConditionThrowable(new EndOfFile Exception());317 throw new ConditionThrowable(new EndOfFile()); 318 318 c = (char) n; 319 319 if (c < '0' || c > '9') … … 389 389 int n = read(); 390 390 if (n < 0) 391 throw new ConditionThrowable(new EndOfFile Exception());391 throw new ConditionThrowable(new EndOfFile()); 392 392 char c = (char) n; 393 393 StringBuffer sb = new StringBuffer(); … … 445 445 int n = read(); 446 446 if (n < 0) 447 throw new ConditionThrowable(new EndOfFile Exception());447 throw new ConditionThrowable(new EndOfFile()); 448 448 char c = (char) n; 449 449 StringBuffer sb = new StringBuffer(); … … 452 452 n = read(); 453 453 if (n < 0) 454 throw new ConditionThrowable(new EndOfFile Exception());454 throw new ConditionThrowable(new EndOfFile()); 455 455 c = (char) n; 456 456 if (c == '\\') { … … 458 458 n = read(); 459 459 if (n < 0) 460 throw new ConditionThrowable(new EndOfFile Exception());460 throw new ConditionThrowable(new EndOfFile()); 461 461 sb.append((char)n); 462 462 continue; … … 477 477 n = read(); 478 478 if (n < 0) 479 throw new ConditionThrowable(new EndOfFile Exception());479 throw new ConditionThrowable(new EndOfFile()); 480 480 sb.append((char)n); 481 481 continue; … … 853 853 int n = read(); 854 854 if (n < 0) 855 throw new ConditionThrowable(new EndOfFile Exception());855 throw new ConditionThrowable(new EndOfFile()); 856 856 char c = (char) n; 857 857 if (!Character.isWhitespace(c)) … … 877 877 if (sb.length() == 0) { 878 878 if (eofError) 879 throw new ConditionThrowable(new EndOfFile Exception());879 throw new ConditionThrowable(new EndOfFile()); 880 880 return eofValue; 881 881 } … … 918 918 if (n < 0) { 919 919 if (eofError) 920 throw new ConditionThrowable(new EndOfFile Exception());920 throw new ConditionThrowable(new EndOfFile()); 921 921 else 922 922 return eofValue; -
trunk/j/src/org/armedbear/lisp/Interpreter.java
r4503 r4632 3 3 * 4 4 * Copyright (C) 2002-2003 Peter Graves 5 * $Id: Interpreter.java,v 1.4 2 2003-10-23 00:29:49piso Exp $5 * $Id: Interpreter.java,v 1.43 2003-11-03 16:07:54 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 408 408 LispObject obj = stream.read(false, EOF, false); 409 409 if (obj == EOF) 410 throw new ConditionThrowable(new EndOfFile Exception());410 throw new ConditionThrowable(new EndOfFile()); 411 411 eval(obj, new Environment(), LispThread.currentThread()); 412 412 getStandardOutput().freshLine(); … … 422 422 LispObject obj = stream.read(false, EOF, false); 423 423 if (obj == EOF) 424 throw new ConditionThrowable(new EndOfFile Exception());424 throw new ConditionThrowable(new EndOfFile()); 425 425 eval(obj, new Environment(), LispThread.currentThread()); 426 426 return true; … … 579 579 LispObject obj = stream.read(false, EOF, false); 580 580 if (obj == EOF) 581 throw new ConditionThrowable(new EndOfFile Exception());581 throw new ConditionThrowable(new EndOfFile()); 582 582 return eval(obj, new Environment(), LispThread.currentThread()); 583 583 }
Note: See TracChangeset
for help on using the changeset viewer.