haskell / haskell/happy

Quoted terminals are not escaped in --glr mode

Open
#356 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
322
Forks
86
PR merge metrics
No merged PRs in 30d

Description

Hi,

Happy (2.1.7) does not escape quoted terminals in Haskell:

```haskell
data GSymbol = HappyEOF | HappyTok {-!Int-} (Token) | G_Exp
| G_Exp1
| G_Term
| G_Factor
| G_Embraced__','__Exp__
deriving (Show,Eq,Ord)
```

```yacc
Embraced(o,s)
: o s o { $2 }

Factor
: int { Int $1 }
| var { Var $1 }
| Embraced(',', Exp) { Brack $1 }
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.