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
parent
d4dd93e316
commit
85a3ee3e5b
|
@ -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 ;
|
||||
|
|
Loading…
Reference in New Issue