eval: Add eval[[ ]] for experimentation.
parent
52a9dfb11a
commit
fde9445c74
|
@ -1,8 +1,8 @@
|
||||||
! Copyright (C) 2008, 2009 Slava Pestov.
|
! Copyright (C) 2008, 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: splitting parser parser.notes compiler.units kernel
|
USING: combinators compiler.units continuations debugger
|
||||||
namespaces debugger io.streams.string fry combinators
|
effects.parser io.streams.string kernel kernel.private multiline
|
||||||
effects.parser continuations ;
|
namespaces parser parser.notes sequences splitting ;
|
||||||
IN: eval
|
IN: eval
|
||||||
|
|
||||||
: parse-string ( str -- quot )
|
: parse-string ( str -- quot )
|
||||||
|
@ -16,6 +16,10 @@ IN: eval
|
||||||
|
|
||||||
SYNTAX: \ eval( \ eval parse-call-paren ;
|
SYNTAX: \ eval( \ eval parse-call-paren ;
|
||||||
|
|
||||||
|
SYNTAX: \ eval[[
|
||||||
|
"]]" parse-multiline-string
|
||||||
|
'[ get-datastack _ parse-string with-datastack set-datastack ] append! ;
|
||||||
|
|
||||||
: (eval>string) ( str -- output )
|
: (eval>string) ( str -- output )
|
||||||
[
|
[
|
||||||
parser-quiet? on
|
parser-quiet? on
|
||||||
|
|
Loading…
Reference in New Issue