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

explicitly name rule values #184

Closed
zaach opened this issue Aug 2, 2013 · 4 comments
Closed

explicitly name rule values #184

zaach opened this issue Aug 2, 2013 · 4 comments

Comments

@zaach
Copy link
Owner

zaach commented Aug 2, 2013

This will allow you to refer to semantic values by a name of your choice, e.g.:

foo: x:bar y:baz
  { $$ = $bar + $baz}
  ;
@cdibbs
Copy link
Contributor

cdibbs commented Aug 3, 2013

Is there any reason jison isn't following bison, on this, with bracketed names?

foo: x[bar] y[baz]
    { $$ = $bar + $baz; }
    ;

http://www.gnu.org/software/bison/manual/html_node/Named-References.html

@zaach
Copy link
Owner Author

zaach commented Aug 3, 2013

Sure, we can use brackets.

@cdibbs
Copy link
Contributor

cdibbs commented Aug 3, 2013

Cool. Mind if I take a stab at it, this weekend, or is this something you want to play around with?

@zaach
Copy link
Owner Author

zaach commented Aug 3, 2013

No, go right ahead. 🍻

cdibbs added a commit to cdibbs/jison that referenced this issue Aug 18, 2013
zaach added a commit that referenced this issue Sep 1, 2013
Named values enhancement (#184).
@zaach zaach closed this as completed Sep 1, 2013
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

2 participants