Open mgiamberardino opened 1 year ago
Also, the author of PLY created SLY: https://github.com/dabeaz/sly which is more programmatic , and thus doesn't require doc strings. And I'm sure there are other parsers out there which don't require doc strings. This would be a great enhancement, as running -OO
is a rather common thing.
Also, in your search for a new parser, finding a parser which is compatible with Apache/MIT/BSD might be good. The fact that PLY has no license could be problematic for some organizations. It looks like SLY has a BSD license which would be a good choice.
PLY has the option to support running in optimized mode if we can somehow generate the tables on a first run: PLY - Using Python's Optimized Mode
If instead of compiling the parser each time we could generate and store them with write_tables=1 we could still run jsonpath-ng using -OO.