D Grammar in BNF Text Form?

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 6 08:56:26 PDT 2014


On 6/6/2014 9:33 AM, Tom Browder via Digitalmars-d wrote:
> On Fri, Jun 6, 2014 at 7:00 AM, Robert Schadek via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> The site says it creates recursive decent parser. D does not even fit
>> into lalr1. So it will not work, unless you can inject handwritten parse
>> function for the critical parts
>
> Do you know the k value for the D language grammar for a LALR(k) parser?
>

It's definitely not LALR(1), I imagine GLR would likely work, anything 
in between I'm not sure.



More information about the Digitalmars-d mailing list