Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airthmetic Command Implementation #68

Open
BlankCanvasStudio opened this issue Nov 14, 2021 · 3 comments
Open

Airthmetic Command Implementation #68

BlankCanvasStudio opened this issue Nov 14, 2021 · 3 comments

Comments

@BlankCanvasStudio
Copy link
Contributor

So currently the p_arith_command and _extractcommandsubst functions pop a NotImplemented errors when an arithmetic expression is found. In bash-master/make_cmd line 430, the make_arith_command function is implemented simply to set the .value attribute equal to the string, the flags to zero, give the node type cm_arith, and set the redirects to null. Would adding this implementation into the p_arith_command function be an acceptable fix? subst.py would also need to be changed to implement these functions. If you just call _parsedelparen on the airthmetic expression, the parsing seems to work just fine. The parens shouldn't be parsed as nodes and the node type should be 'arith_cmd' but those are easy fixes. Is there something I am missing as to why these aren't implemented?

@idank
Copy link
Owner

idank commented Nov 14, 2021

Sounds good to me. It was left empty because I didn't have a need for it at the time. If it's easy to add, go for it.

@BlankCanvasStudio
Copy link
Contributor Author

So I have the implementation for this finished. I add unit tests and such. I was going to add this to my branch and set a pull request but I realized my previous pull request has been merged. I was just wondering why alphanumeric support (fixing issue #66 ) hasn't been added?

@idank
Copy link
Owner

idank commented Nov 16, 2021

I didn't notice that pull request, sorry. See the comment I left there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants