Let's stop parser Hell
Roman D. Boiko
rb at d-coding.com
Sat Jul 7 12:35:26 PDT 2012
On Saturday, 7 July 2012 at 19:29:47 UTC, Dmitry Olshansky wrote:
> Another idea that I've never realized is to add operator
> precedence grammar to pegged. Of course it should fit naturally
> with traditional PEG, for instance taking responsibility for
> parsing expressions.
But that's already available by explicitly defining expression
grammar via nested rules. See for example the examples/dgrammar.d
in Pegged. This way, for example, multiplication has precedence
over addition. (It looks like I misunderstood you. Did I?)
More information about the Digitalmars-d
mailing list