1 21 22 package org.armedbear.lisp; 23 24 public final class listen extends Primitive 26 { 27 private listen() 28 { 29 super("listen", "&optional input-stream"); 30 } 31 32 public LispObject execute() throws ConditionThrowable 33 { 34 Stream stream = 35 checkCharacterInputStream(_STANDARD_INPUT_.symbolValue()); 36 return stream.listen(); 37 } 38 39 public LispObject execute(LispObject arg) throws ConditionThrowable 40 { 41 return inSynonymOf(arg).listen(); 42 } 43 44 private static final Primitive LISTEN = new listen(); 45 } 46 | Popular Tags |