logger.fine("received quit event");
abortCommands();
// Note: exception handling used for control
throw new ParserQuitException();
default:
throw new RippleException(
"event not yet supported: " + event);
}
}
protected void handleAssignment(KeywordAST name) throws RippleException {
Source<RippleList> source = queryResultHistory.get(0);
if (null == source) {
source = new Collector<RippleList>();
}
addCommand(new DefineKeywordCmd(name, new ListGenerator(source)));
}
};
Sink<Exception> parserExceptionSink = new ParserExceptionSink(
qe.getErrorPrintStream());
// Pass input through a filter to watch for special byte sequences, and
// another draw input through it even when the interface is busy.
InputStream filter = new InputStreamEventFilter(is, ra);
consoleReaderInput = new ThreadedInputStream(filter);
// Create reader.
try {
reader = new ConsoleReader(consoleReaderInput,
qe.getPrintStream());
} catch (Throwable t) {
throw new RippleException(t);
}
jline.Terminal term = reader.getTerminal();
//System.out.println( "reader.getTerminal() = " + term );
writeIn = new PipedIOStream();