Refactor delay parser

db4
Chris Double 2008-04-05 18:41:28 +13:00
parent 2744313ac1
commit e00a392736
1 changed files with 1 additions and 5 deletions

View File

@ -453,11 +453,7 @@ M: delay-parser (compile) ( parser -- quot )
#! For efficiency we memoize the quotation.
#! This way it is run only once and the
#! parser constructed once at run time.
[
quot>> % \ compile ,
] [ ] make
{ } { "word" } <effect> memoize-quot
[ % \ execute , ] [ ] make ;
quot>> '[ @ compile ] { } { "word" } <effect> memoize-quot '[ @ execute ] ;
TUPLE: box-parser quot ;