<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 4, 2015 at 3:52 PM, Adam Sandberg Eriksson <span dir="ltr"><<a href="mailto:adam@sandbergericsson.se" target="_blank">adam@sandbergericsson.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1yt" class="a3s" style="overflow:hidden">However after adding relevant rules for '~' in the parser[2] I get an<br>
explosion of shift/reduce conflicts as well as 4 extra reduce/reduce<br>
conflicts, see [3] for the happy info (the states with 36 shift/reduce<br>
conflicts seem to be the problematic ones)</div></blockquote></div><br>Looks to me like it's confused about whether a ~ is part of an equality constraint or is a laziness annotation. The former would be illegal at that point, though, I'd think? Somewhere it believes a constraint might be possible there, via btype.</div><div class="gmail_extra"><br></div><div class="gmail_extra">As ezyang says in the message I see just came in, you'll need extra production rules to distinguish that top level. Although I'd wonder why it believes an equality constraint is acceptable there in the first place; is that a lurking bug in the parser?<br><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>