Remove memoization in 'compile' word in pegs

This creates issues when recompiling a an existing EBNF parser for reasons I've not yet tracked down. Disabling it slows things down but makes things work correctly till I investigate the issue.
db4
Chris Double 2008-03-26 16:43:03 +13:00
parent d4dd93e316
commit 85a3ee3e5b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ GENERIC: (compile) ( parser -- quot )
[ swap compiled-parsers get set-at ] keep
] if* ;
MEMO: compile ( parser -- word )
: compile ( parser -- word )
H{ } clone compiled-parsers [
[ compiled-parser ] with-compilation-unit
] with-variable ;