! (c) Joe Groff, see license for details
-USING: accessors combinators continuations fry kernel lexer
-math parser quotations sequences vectors words words.alias ;
+USING: accessors continuations fry kernel lexer math parser
+sequences vectors words words.alias ;
IN: literals
<PRIVATE
] with-datastack ;
: expand-literals ( seq -- seq' )
- [ [ { } ] dip expand-literal ] map concat ;
+ { } [ expand-literal ] reduce ;
PRIVATE>
SYNTAX: $[ parse-quotation with-datastack >vector ;
SYNTAX: ${ \ } [ expand-literals ] parse-literal ;
SYNTAX: flags{
- "}" [ parse-word ] map-tokens
- expand-literals
- 0 [ bitor ] reduce suffix! ;
+ \ } [
+ expand-literals
+ 0 [ bitor ] reduce
+ ] parse-literal ;