Closed evtn closed 1 year ago
Well, there is a suite that is used by PyPy, which is MIT-licensed and probably will be a good place to start https://github.com/mozillazg/pypy/tree/master/pypy/interpreter/pyparser/test (this is a mirror, but still)
I probably could spend some time on this, since my current project requires a fully working Python grammar anyways
Thank you, @evtn ! If you would like to set up tests for the Python grammar, we'll be happy to include them in our test suite!
Previous version used
_testlist_comp
which allowed for either onetest
or 2 and moretest_or_star_expr
. This version also allows a list with onestar_expr
which is valid both in Python and in official Python grammar. Moreover it merges rules used inset
andlist
(since those terminals differ only in that set literal cannot be empty)