<div dir="ltr">GLR support in happy is much younger than ghc is, it'd probably be a massive amount of work to change now.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 20, 2021 at 6:57 AM Benjamin Redelings <<a href="mailto:benjamin.redelings@gmail.com">benjamin.redelings@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks, that is interesting.  I see this is a different type of grammar <br>
than in Parser.y, in that (for example) it does not have any actions on <br>
the rules.<br>
<br>
I'm still curious about why the GHC parser does not use a grammar that <br>
is closer to the language grammar.  Is this mostly for historical <br>
reasons?  Are GLR parsers too slow?  I don't know what fraction of the <br>
compilation time is spent in parsing, but would suspect it is not that much.<br>
<br>
-BenRI<br>
<br>
On 4/15/21 11:55 AM, Georgi Lyubenov wrote:<br>
> Hi!<br>
><br>
> I think the updated tree sitter grammar might be relevant to you - <br>
> <a href="https://github.com/tree-sitter/tree-sitter-haskell" rel="noreferrer" target="_blank">https://github.com/tree-sitter/tree-sitter-haskell</a> <br>
> <<a href="https://github.com/tree-sitter/tree-sitter-haskell" rel="noreferrer" target="_blank">https://github.com/tree-sitter/tree-sitter-haskell</a>><br>
><br>
> Cheers,<br>
><br>
> ======<br>
> Georgi<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>