Closed klausharbo closed 2 years ago
Thanks for the error report and the pull request. Much appreciated. Since I revisit instaparse sporadically, I want to incorporate one or two other pull requests as I put out an update. This one is straightforward, but it will take me a few days to evaluate the others and do it all at once. If I haven't incorporated this within a week, please send me a gentle reminder.
Hereby gently reminding... :-)
OK, I didn't really get anything else put together, but rather than delay further, I went ahead and pushed this change out as v1.4.11. Thanks again for the fix.
I found a minor error in the behaviour of instaparse.core/parser with respect to assignment of start production. The issue can be seen from this example:
in which the start production of the grammar
rule = "xxx"
(in filetest.bnf
) depends on whether the grammar is provided toparser
as either a string or a file/resource object: In the above example start production is:rule
in the former and:other
in the latter.The PR provides a straightforward fix.
-Klaus.