idank / bashlex

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

fixes #88 [add unimplemented nodes to AST instead of raising exceptions] #87

Closed tomasohara closed 1 year ago

tomasohara commented 1 year ago

bashlex/ast.py: add visit support for unimplemented bashlex/parser.py: adds proceedonerror option; handleNotImplemented returns unimplemented node if so tests/test_parser.py: adds test_unimplemented

idank commented 1 year ago

Looks great, left two small comments.

Do you mind reformatting the commit message to:

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

tomasohara commented 1 year ago

Sure. It'll be easier for me to do it via a new pull request.