You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, building happy requires a pre-built binary of happy.
It is, surely, elegant, in the same way a self-hosting compiler is elegant. But it also makes building purely from source more complicated than needed.
What we could do instead is parse .y and .ly files using parser combinators. But it would also be nice to avoid a dependency on another parsing library. Also, the currently existing hand-rolled lexers are written in continuation-passing style, so we'd need a library compatible with that.
So I developed a small, bespoke parsing library, specifically for happy, and it seems to work nicely. Patch here: #170
The text was updated successfully, but these errors were encountered:
Anyhow, you already had a long discussion about this at #175.
It would be great if building happy would work out-of-the box with standard cabal commands (without requiring happy).
I would love to make that automatic, but that requires haskell/cabal#7189. Maybe off by default would also be good, but that's a breaking change due to the attribute grammar stuff going away.
Uh oh!
There was an error while loading. Please reload this page.
Currently, building
happy
requires a pre-built binary ofhappy
.It is, surely, elegant, in the same way a self-hosting compiler is elegant. But it also makes building purely from source more complicated than needed.
What we could do instead is parse
.y
and.ly
files using parser combinators. But it would also be nice to avoid a dependency on another parsing library. Also, the currently existing hand-rolled lexers are written in continuation-passing style, so we'd need a library compatible with that.So I developed a small, bespoke parsing library, specifically for
happy
, and it seems to work nicely. Patch here: #170The text was updated successfully, but these errors were encountered: