neogeny / TatSu

竜 TatSu generates Python parsers from grammars in a variation of EBNF
https://tatsu.readthedocs.io/
Other
409 stars 48 forks source link

Add @@memoization directive #128

Open apalala opened 5 years ago

apalala commented 5 years ago

Currently, the only way to turn off memoization for a grammar is through the code creating the parser or invoking the parse.

A @@memoization directive would allow a grammar to choose not to memoize:

@@memoization :: False
apalala commented 5 years ago

This begs also adding the @memo decorator to override the default memoization?