On 10/06/2010 11:27 PM, Mark D. Nagel wrote:
>   On 10/4/2010 5:37 AM, Risto Vaarandi wrote:
>> I think I've found a way to create named match variables which complies
>> with Perl syntax, and does not create clashes with existing naming
>> schemes. I'll only need to experiment with it a bit :)
>> BR,
>> risto
>
> Greatly looking forward to this!  I think at one point I'd suggested
> something to you along these lines, that is, a 'Transform' rule type
> that would mutate the input however you liked and pass it to the next
> rule (unlike event, which starts at the beginning and tosses the input
> source context).  This looks like it would provide precisely that, so
> bring it on!!!
>
> Thanks,
> Mark
>

At this point, it seems quite likely that the new syntax will be 
identical to Perl named match variables $+{name} (if I am not mistaken, 
Perl supports them since version 5.10). The most reasonable way for 
supporting these variables would be to: 1) first set them according to 
named matches of regular expression, 2) then use the 'assignment', 
'transform', or 'map' keyword to assign $1 variables to named variables 
explicitly. Step 2 would allow for named variables even for earlier 
versions of Perl and non-regexp patterns.
I can't promise to release this stuff within a couple of days, though. 
I've also plans to implement a new, more generic rule type for capturing 
unordered event sets. This would provide a solution for some problem 
statements that have appeared in this mailing list quite recently.
kind regards,
risto

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to