Skip to content

Restore Haskell GLR mode #340

Closed
Closed

Description

@andreasabel

With the hint in haskell/happy#173 (comment), the --glr mode can be tested again.

  • Fix generated Makefile to drop happy options --ghc --coerce when --glr is used.
  • Add imports needed by GLR-specific code to generated parser Test.

Activity

  1. added
    test
    GLR
    Makefile
    on Feb 14, 2021
  2. added this to the 2.9.1 milestone on Feb 14, 2021
  3. self-assigned this
    on Feb 14, 2021
  4. rachelambda commented on Dec 19, 2021

    @rachelambda

    Sorry for commenting on this dead issue, but I'm rather confused. The output of bnfc --help (version 2.9.3) states that GLR parsing is deprecated

                    --glr                   Output Happy GLR parser [deprecated]
    

    Yet, this issue is closed. Is GLR parsing supported? I was unable to find any mention of this elsewhere.

  5. andreasabel commented on Dec 21, 2021

    @andreasabel
    MemberAuthor

    Sorry for the confusion, @depsterr. It is still supported, but deprecated, because it is not supported well upstream (by happy).
    In the future, the --glr option might be removed. So far, I am supporting it.

  6. added a commit that references this issue on Mar 1, 2026
    32a3d82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GLRHaskellMakefilebugtest

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions