Skip to content

Bison grammar is outdated #32723

Closed
Closed
@pekabon

Description

@pekabon

It looks like grammar (https://github.com/rust-lang/rust/tree/master/src/grammar) is outdated, for example '?' shortcut for try! is not supported.

Activity

steveklabnik

steveklabnik commented on Apr 4, 2016

@steveklabnik
Member

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 the A-grammar tags.

@nikomatsakis has been working on a larlpop grammar that would hopefully make this stuff easier...

alexcrichton

alexcrichton commented on Aug 22, 2016

@alexcrichton
Member

cc #15880, a bot which is intended to run these tests

Mark-Simulacrum

Mark-Simulacrum commented on May 12, 2017

@Mark-Simulacrum
Member

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

alexcrichton commented on May 12, 2017

@alexcrichton
Member

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

steveklabnik commented on May 15, 2017

@steveklabnik
Member

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

Mark-Simulacrum commented on May 15, 2017

@Mark-Simulacrum
Member

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

steveklabnik commented on May 15, 2017

@steveklabnik
Member

if yes, arguably closing the issues in favor of a thread on internals would still be a good idea.

I would go this route, but let's hear what @nikomatsakis has to say

chordowl

chordowl commented on Aug 23, 2017

@chordowl
Contributor

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

steveklabnik commented on Oct 31, 2018

@steveklabnik
Member

Triage: there's a new grammar wg, and i don't even think the bison grammar still exists. closing as outdated.

3 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of RustC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @steveklabnik@sanxiyn@alexcrichton@tromey@chordowl

        Issue actions

          Bison grammar is outdated · Issue #32723 · rust-lang/rust