Closed pressureless closed 1 year ago
My Python version was 3.8.5. TatSu 5.6.1 can still compile the grammar.
Python 3.10.7 + TatSu 5.7.3 works, 5.7.4 and 5.8.0 won't work. Maybe it's due to the changes
TatSu stopped picking up the regex
package as there is no automated way to check if it keeps up with changes to the re
package.
In your case, you could opt for for patching sys.modules
to replace re
with regex
.
My grammar contains Unicode rules, it works well with TatSu 4.4.0 which picks up the
regex
module automatically. I encountered performance issue when parsing multiple expressions, so I decided to update my Tatsu version. However, TatSu 5.8.3 can't compile the grammar any more. I'm sureregex
is installed and the problem is due to the Unicode rules (If I removed the rules, TatSu 5.8.3 would compile). Any help is appreciated.