BNF grammar for D?

Manfred Nowak svv1999 at hotmail.com
Sat Oct 13 04:21:30 PDT 2012


Nick Sabalausky wrote:

> I'm pretty sure a correct D grammar is impossible in LALR(1)

"a^n b^n c^n" is not LALR(1). But "a^n b^n c^m" is---if n and m are not 
dependent.

I.e.: without specifying the restrictions for the allowed semantic 
checks there is no sureness for impossibilities.

-manfred   


More information about the Digitalmars-d mailing list