Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels