<br><br>
<div class="gmail_quote">On Tue, Nov 5, 2013 at 8:27 AM, Brian Schott <span dir="ltr"><<a href="mailto:briancschott@gmail.com" target="_blank">briancschott@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">But we should take a step back first. Before we try to implement a parser for D's grammar, we need to figure out what exactly D's grammar is.<br>
<br>Seriously. We don't have a real grammar for D. We have the language spec on <a href="http://dlang.org/" target="_blank">dlang.org</a>, but it isn't complete, consistent, or updated when the language changes. Want examples? I have a tracker for them here: <a href="http://d.puremagic.com/issues/show_bug.cgi?id=10233" target="_blank">http://d.puremagic.com/issues/<u></u>show_bug.cgi?id=10233</a><br>
<br>There's also my project here: <a href="https://github.com/Hackerpilot/DGrammar" target="_blank">https://github.com/<u></u>Hackerpilot/DGrammar</a>, but it's not official and I keep finding differences between it and the behavior of DMD.<br>
<br>Why am I the only one who thinks this is a problem?<br></blockquote>
<div> </div>
<div>You're not alone in this, but Walter's answer is that we must make pull requests on the website if we find errors in the online grammar. The problem is not knowing what the intended behavior is. When the reference compiler and the grammar disagree, who I am to say which is wrong?</div>

<div> </div>
<div>We could also see if some slight modification to the grammar could push it into LALR(1) territory.</div></div><br>