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

Extend parser with '?//' destructuring alternative operator #32

Closed
2 tasks done
sshine opened this issue Oct 21, 2019 · 0 comments
Closed
2 tasks done

Extend parser with '?//' destructuring alternative operator #32

sshine opened this issue Oct 21, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@sshine
Copy link
Owner

sshine commented Oct 21, 2019

There was an operator I'd overlooked because I thought that it was a composition of two other operators. But it gets treated like its own operator and has its own precedence, as documented here:

The task is:

  • Extend Expr with AlternativeDestructure constructor.
  • Extend operator table in Parser with this operator.

One challenge lies in the character overlap between the ? postfix operator and ?//. It may be necessary to change the way the ? postfix operator is parsed in the same way as #28 addresses this for existing operators with a similar overlap (e.g. / and //).

@sshine sshine added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers hacktoberfest labels Oct 21, 2019
@sshine sshine added this to the Parser complete milestone Oct 21, 2019
@sshine sshine closed this as completed Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant