[antlr-interest] Remove left recursion function
Johannes Luber
jaluber at gmx.de
Mon Sep 29 12:12:54 PDT 2008
Terence Parr schrieb:
> On Sep 28, 2008, at 2:15 PM, Markus Stoeger wrote:
>
>> Terence Parr schrieb:
>>> Which version of AW?
>> The latest, v1.2.
>>
>
> Can you show the left-recur rule it won't left-factor? Not all can be
> I think.
> Ter
Usually the problematic rules have parentheses like:
rule : (rule TERM1
| TERM2) rule2
;
The only way to get AW to do that removal is to remove the parentheses
correctly first:
rule : rule TERM1 rule2
| TERM2 rule2
;
Johannes
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
More information about the antlr-interest
mailing list