Skip to content

Make all positional parameters available as special vars #8

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cgohla
Copy link
Contributor

@cgohla cgohla commented Mar 20, 2022

We add a new constructor DollarNat to the SpecialVar data type to make positional parameters beyond 9 available as special variables. They are rendered with curly braces around the index if it has more than one digit.

This does lead to some duplication, as Dollar<i> has the same semantics as DollarNat <i> for 0 ≤ i ≤ 9.

Note
There is of yet no handling of the ${<i>} case in the specialVar parser function.

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

Successfully merging this pull request may close these issues.

1 participant