Open tomasohara opened 1 year ago
Sure sounds useful. Any reason you went with an environment variable rather than an argument to the parser?
Oh, that was just for the sake of a simple illustration. I'll add an option to the parse function instead.
Best, Tom
On Tue, May 30, 2023 at 1:32 AM Idan Kamara @.***> wrote:
Sure sounds useful. Any reason you went with an environment variable rather than an argument to the parser?
— Reply to this email directly, view it on GitHub https://github.com/idank/bashlex/issues/86#issuecomment-1567845499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFCQ2GJR35HZYXSVYU2EZLXIWH6XANCNFSM6AAAAAAYTP37EA . You are receiving this because you authored the thread.Message ID: @.***>
Thanks. Make sure you squash all the commits to one and I'll merge that in!
To facilitate broader coverage of the analyzer, it would be good for the parser to add "unimplemented nodes" to the AST rather than raising an error. This can be done as follows:
This way, a parse tree can still be recovered even though a particular construct is not supported:
I can add a pull request for this if you want.