viy
2012-08-17 12:52:09 UTC
Hi all, jfyi
I've added just one token to my lexer rules and stuck in 100 groups limit
in python re
http://stackoverflow.com/questions/478458/python-regular-expressions-with-more-than-100-groups
PLY has workaround in its code - when your master re exceeds 100 groups,
PLY catches AssertionError from python, splits master re into parts and
retries.
All works smoothly, but in my case my unit tests suite became 10x slower.
Single parsing is about 1.5x slower.
The solution is obvious - to get rid of the python limitation.
Does anyone know the best way to do so?
Thanks in advance.
--
Best regards,
Eugene Voytitsky
I've added just one token to my lexer rules and stuck in 100 groups limit
in python re
http://stackoverflow.com/questions/478458/python-regular-expressions-with-more-than-100-groups
PLY has workaround in its code - when your master re exceeds 100 groups,
PLY catches AssertionError from python, splits master re into parts and
retries.
All works smoothly, but in my case my unit tests suite became 10x slower.
Single parsing is about 1.5x slower.
The solution is obvious - to get rid of the python limitation.
Does anyone know the best way to do so?
Thanks in advance.
--
Best regards,
Eugene Voytitsky
--
You received this message because you are subscribed to the Google Groups "ply-hack" group.
To post to this group, send email to ply-***@googlegroups.com.
To unsubscribe from this group, send email to ply-hack+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/ply-hack/-/-xQgpXz-4ggJ.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "ply-hack" group.
To post to this group, send email to ply-***@googlegroups.com.
To unsubscribe from this group, send email to ply-hack+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/ply-hack/-/-xQgpXz-4ggJ.
For more options, visit https://groups.google.com/groups/opt_out.