[antlr-interest] Actions and non-LL(*) rules ??

Terence Parr parrt at cs.usfca.edu
Sun May 2 16:47:32 PDT 2010


On May 2, 2010, at 4:42 PM, Marcin Rzeźnicki wrote:
> ah, thanks a lot - that explains a lot
> So, in th example you posted above - with an action in front it is
> equivalent to:
> a : {action} ID
>  | ID
> ;
> right?

yup.

> So, care to give me any hint about reorganizing actions in similar
> case? Thx a lot

move the pred to the left of action. ;) if function of action, move code into pred.
T


More information about the antlr-interest mailing list