Mark Taylor wrote:
> Dave: Yes, Cobol is that evil. The period closes all previous scopes
> that don't require explicit scope terminators (some constructs like
> PERFORM do, some don't (COMPUTE)). Thanks, that worked. I replaced
> the PERFORM rule with:
>
> perform: 'perform' ((stmt)=>stmt)+ 'end-perform' ;
That will parse every stmt twice and performance will be terrible. Make
a predicate rule instead:
stmt_pred
: 'if' | 'move' | 'foo'
;
((stmt_pred)=>stmt)+
Jim
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---