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

Support for new RHS parameter forms #19

Closed
bterlson opened this issue Jun 3, 2016 · 4 comments
Closed

Support for new RHS parameter forms #19

bterlson opened this issue Jun 3, 2016 · 4 comments

Comments

@bterlson
Copy link
Contributor

bterlson commented Jun 3, 2016

There is a proposed ECMAScript change to RHS parameter forms. Specifically, if when an RHS non-terminal production is parameterized, the RHS must be explicit about whether it is passing the parameter (currently an unadorned parameter name), forwarding the value of the parameter passed into the production (currently prefixed with ?), or not passing the parameter. Specifically:

Form Current New
Set parameter Foo +Foo
Forward parameter ?Foo ?Foo
Don't set parameter Parameter is omitted ~Foo

Example

Foo[Param] :
  [+Param] `Present`
  [~Param] `Not present`

Bar[Param] :
  Foo[?Param]

Baz :
  Foo[+Param]

Qux :
  Foo[~Param]
@rbuckton
Copy link
Owner

rbuckton commented Jun 7, 2016

I've added partial support for parsing this for now. I'd like to add some additional checking to report diagnostics if you don't pass a parameter explicitly.

@bterlson
Copy link
Contributor Author

bterlson commented Jun 7, 2016

Possible to publish (even a beta) without the checking functionality?

@bakkot
Copy link
Contributor

bakkot commented Apr 9, 2020

@rbuckton I suspect this can be closed?

@rbuckton
Copy link
Owner

rbuckton commented Sep 6, 2020

👍

@rbuckton rbuckton closed this as completed Sep 6, 2020
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

3 participants