[antlr-interest] Parsing HAML - significant and insignificant whitespaces

David-Sarah Hopwood david-sarah at jacaranda.org
Tue Jul 21 07:07:01 PDT 2009


Dmitiry Nagirnyak wrote:
> Hi Nick,
> 
> All these things are options.
> But it seems there's no way to dynamically choose rules in ANTLR. Right?

Well, gated semantic predicates can be used to do that.
I'm not sure that really helps here, though, or would be any simpler than
Nick or Stephen's solutions.

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com



More information about the antlr-interest mailing list