On Tue, Nov 5, 2013 at 5:45 AM, Chad Joan
<chadjoan@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!