! See http://factorcode.org/license.txt for BSD license.
USING: accessors colors combinators.short-circuit
compiler.units continuations debugger fry io io.styles kernel lexer
-locals math math.parser namespaces parser parser.notes prettyprint
+math math.parser namespaces parser parser.notes prettyprint
sequences sets source-files.errors system vocabs vocabs.loader
vocabs.parser ;
IN: listener
if
] recover ;
-: (listener) ( datastack -- )
- listener-step (listener) ;
+: listener-loop ( datastack -- )
+ listener-step listener-loop ;
PRIVATE>
: listener ( -- )
[
parser-quiet? off
- [ { } (listener) ] with-return
+ [ { } listener-loop ] with-return
] with-interactive-vocabs ;
: listener-main ( -- )