1 ! Copyright (C) 2010 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: combinators combinators.smart fry lexer quotations
4 sequences slots words ;
8 "]" [ reader-word 1quotation ] map-tokens
9 '[ _ cleave ] append! ;
12 "}" [ reader-word 1quotation ] map-tokens
13 '[ [ _ cleave ] output>array ] append! ;
15 : writer-word* ( name -- word )
16 ">>" prepend "accessors" lookup ;
19 "]" [ writer-word* 1quotation ] map-tokens
20 '[ _ spread ] append! ;
23 "}" [ writer-word* 1quotation ] map-tokens
25 '[ _ firstn _ spread ] append! ;