idank / bashlex

Python parser for bash
GNU General Public License v3.0
550 stars 94 forks source link

parser: add unimplemented nodes to AST instead of raising exceptions (fixes #88) #88

Closed tomasohara closed 1 year ago

tomasohara commented 1 year ago

Sorry, I should have checked with you first about your preference. (The squash interface is a bit awkward, which is why I thought redoing the PR from scratch would be OK.)

I hope I can get this approved, because I have follow-on changes in the works to add unimplemented nodes for arrays and arithmetic expansions. This is to minimize failures over the Bash test suite, which I am using for testing other work. Currently, about 1/3rd of the 250+ tests leading to exceptions.

Best, Tom

idank commented 1 year ago

This slipped my mind, sorry! Merged, thanks again for your work.