D parsing

Philippe Sigaud philippe.sigaud at gmail.com
Tue Nov 5 08:31:37 PST 2013


On Tue, Nov 5, 2013 at 5:45 AM, Chad Joan <chadjoan at gmail.com> wrote:

>  Use the repetition operator(s) and turn the resulting array into
>> whatever tree you like.  In practice, I have never had a problem with this.
>>
>> I have used both Pegged and have written an SQL parser at work (not
>> exhaustive, just what's needed) that uses C macros as PEG elements.
>>  Tangent: Using C macros for this worked surprisingly well and allowed me
>> to avoid an extra step in the build process (I do not have access to D for
>> that project).  Pegged is still much more scalable, optimizable, and the
>> grammars are a lot less ugly/finicky.
>>
>
That made my day, thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131105/4c4e5933/attachment-0001.html>


More information about the Digitalmars-d mailing list