<div dir="ltr">1)<div>The main issue I see with pegged is PEG grammars don't support left recursion, so for example will fail on foo[1].bar(2).fun().</div><div>Unless there's a plan to accomodate those, I sense a dead end.<br>
</div><div>One can eliminate left recursion but this has issues.</div><div><br></div><div>2)</div><div>There is some material on extending PEG to support those, eg "Left Recursion in Parsing Expression Grammars", or code <a href="https://github.com/orlandohill/peg-left-recursion">https://github.com/orlandohill/peg-left-recursion</a> but I don't know how well they work in practice.</div>
<div><br></div><div>3) </div><div class="gmail_extra">Finally, a parser should be as fast as possible; I'm not sure how well pegged performs compared to dmd frontend. Other promising options are using lemon, a LALR(1) parser generator.<br>
<br><div class="gmail_quote">On Sat, Nov 2, 2013 at 2:17 PM, Andrei Alexandrescu <span dir="ltr"><<a href="mailto:SeeWebsiteForEmail@erdani.org" target="_blank">SeeWebsiteForEmail@erdani.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5">On 11/2/13 1:56 PM, growler wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Saturday, 2 November 2013 at 08:19:39 UTC, Philippe Sigaud<br>
wrote:<br>
<br>
[snip]<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Bah, you're getting me all interested in it again! I wanted to write a D<br>
tutorial around a ray-tracer!<br>
</blockquote>
<br>
I'd like to chime in and say I think Pegged is fantastic.<br>
<br>
I'm using it for parsing C and Markup in two different projects.<br>
I've also just started working on an Octave (well ok, Matlab) M-file<br>
parser. It will probably never see the light of day but with<br>
Pegged is great fun to play with.<br>
<br>
Please don't lose interest in it !!<br>
</blockquote>
<br></div></div>
Yes. Probably the most significant D project at this time.<span class=""><font color="#888888"><br>
<br>
Andrei<br>
</font></span></blockquote></div><br></div><div class="gmail_extra"><br></div></div>