Official D Grammar

Russel Winder russel at winder.org.uk
Thu May 2 10:13:32 PDT 2013


On Thu, 2013-05-02 at 17:44 +0100, Bruno Medeiros wrote:
[…]
> To be honest, that's one of the reasons that put me off working with 
> ANLTR. It seems easy to create a parser with ANTLR, but to create an 
> efficient, well-behaved parser it looks quite complicated, in the sense 
> that you can't abstract yourself from what is happening under the 
> hood... you have to read a lot of theory and documention to learn the 
> innards of ANTLR, and understand what kind of code it's actually 
> generating, and how it processes input. (at moments it feels like you 
> have to take a degree to learn how to use it effectively...)

The Groovy parser is an ANTLR 2.7.7 grammar, it works well and quickly.
I think the trick is to work with the LL(k) idioms and avoid letting
LALR(1) thoughts creep in.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130502/b98cb346/attachment.pgp>


More information about the Digitalmars-d mailing list