Closed
Description
It looks like grammar (https://github.com/rust-lang/rust/tree/master/src/grammar) is outdated, for example '?' shortcut for try! is not supported.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
steveklabnik commentedon Apr 4, 2016
Well, one question is, should the grammar show nightly-only things. If so, it would not include
?
. That said, it's clearly not complete, if you look at all theA-grammar
tags.@nikomatsakis has been working on a larlpop grammar that would hopefully make this stuff easier...
alexcrichton commentedon Aug 22, 2016
cc #15880, a bot which is intended to run these tests
Mark-Simulacrum commentedon May 12, 2017
I don't think we have a bison grammar in-tree anymore... @nikomatsakis @steveklabnik @alexcrichton Do you know of the current state of the in-tree grammar? Do we want to show nightly-only things in the grammar?
alexcrichton commentedon May 12, 2017
Oh I have no idea what's up with the current in-tree grammar, I would expect it to be quite out of date at this point.
steveklabnik commentedon May 15, 2017
Yeah, it's basically abandonware. Niko had some efforts to have a real one, but I assume anything we do have is horribly bit-rotted.
Mark-Simulacrum commentedon May 15, 2017
Do we want to try and get some movement from the community on implementing a reference grammar? Is it something we're interested in maintaining? If not, we should probably go ahead and close out issues relevant to the reference grammar; if yes, arguably closing the issues in favor of a thread on internals would still be a good idea.
steveklabnik commentedon May 15, 2017
I would go this route, but let's hear what @nikomatsakis has to say
chordowl commentedon Aug 23, 2017
Traige: There is ongoing work (as of about two weeks ago) on creating an up-to-date grammar in the reference (rust-lang/reference#84); generally, this issue seems to under #30942 when it comes to a machine-readable grammar, and the reference issue when it comes to just having some up-to-date grammar.
steveklabnik commentedon Oct 31, 2018
Triage: there's a new grammar wg, and i don't even think the bison grammar still exists. closing as outdated.
3 remaining items