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