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

cell sublanguage: a[i] support in -n (nameref) and ${!ref} #608

Closed
andychu opened this issue Feb 18, 2020 · 3 comments
Closed

cell sublanguage: a[i] support in -n (nameref) and ${!ref} #608

andychu opened this issue Feb 18, 2020 · 3 comments

Comments

@andychu
Copy link
Contributor

andychu commented Feb 18, 2020

@andychu
Copy link
Contributor Author

andychu commented Feb 18, 2020

Details: the ${!ref} code in osh/word_eval.py should be changed to use a regex-based lexer to recognize a[K] where K is a constant.

Then it can be shared with the -n code in core/state.py

We probably don't want to support a[i+1+2*3], etc. because that's too much dynamic parsing

@andychu andychu changed the title a[i] support in -n (nameref) and ${!ref} cell sublanguage: a[i] support in -n (nameref) and ${!ref} Mar 9, 2020
@andychu
Copy link
Contributor Author

andychu commented Mar 15, 2020

May relate to IR in #604 , e.g. sh_lhs_expr

@andychu
Copy link
Contributor Author

andychu commented Jul 17, 2021

This is a dupe of #964 and #881

var ref is done, but nameref is a bit annoying

@andychu andychu closed this as completed Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant