-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
consider an IR for words and ${} #604
Labels
Comments
NOTE:
edit: Actually it's not an IR because we don't make separate syntax tree nodes first. It's a rare case of losing information! We could make it more like one. |
andychu
changed the title
consider an IR for ${}
consider an IR for ${}, and consider one for a[i]=x
Mar 8, 2020
This was referenced Mar 10, 2020
This was referenced Apr 15, 2020
andychu
changed the title
consider an IR for ${}, and consider one for a[i]=x
consider an IR for ${}
Jun 22, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These are confusing to disambiguate from the LST:
${!ref-default}
-- prefix_op and unary suffix op${!prefix@}
-- prefix_op and nullary suffix_op${!array_keys[@]}
-- prefix op and bracket opWe could compile it to something like:
instead of prefix_op / suffix_op / bracket_op
It could be a step that's analogous to
BraceExpand
. It could be done at parse time, but we don't print the LST with it.For words
osh/word_compile.py
$'c style \n strings'
are evaluated at runtime, but they don't have to betriple_quoted
has the same issue? Has to strip leading spaceThe text was updated successfully, but these errors were encountered: