an excellent idea.  .* anywerhe should be nongreedy; greedy is never correct.

noted
Ter
On Jul 22, 2010, at 2:17 PM, Gerald Rosenberg wrote:

> Hi Ter,
> 
> For Tree Pattern Matching grammars, would you consider making .* and .+ fully 
> non-greedy by default in v3.3?  They are sort-of non-greedy already in that 
> they stop at sub-tree boundaries.  
> 
> Basically, I keep encountering a need for Tree Pattern Matching rules having 
> the form:
> 
>     | ^( A B .* C )
> 
> without seeing an instance where greedy behavior would be desirable or even 
> usable.  While explicitly setting the greedy option is a workaround, having 
> fully non-greedy by default would seem to be more natural.
> 
> Thanks,
> Gerald
> 
> 
> 
> 
> ------ Original Message (Tuesday, July 20, 2010 12:39:35 PM) From: Terence 
> Parr ------
> Subject: [antlr-dev] v3.3
>>  
>> Hi, I'm going to release v3.3 (was 3.2.1) in prob late August.
>> @jim: i updated pom.xml
>> 
>>     <version>3.3-SNAPSHOT</version>
>> 
>> Ter
>> _______________________________________________
>> antlr-dev mailing list
>> 
>> [email protected]
>> http://www.antlr.org/mailman/listinfo/antlr-dev
>> 
>> 
>> 

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to