Re: Bug in crm114 parser? Or is it me again?

"Ger Hobbelt" <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
On Thu, May 22, 2008 at 11:09 PM, Paolo <[email protected]> wrote:
> no, you're not binding :b:, you nee to tell MATCH wheere/how to bind it, like
>
>
> { window;
>  isolate (:a:) /buggaboo/
>  isolate (:b:)
>  match [:a:] (:: :b:) /(boo)/
>  alter (:b:) /FARRR/
>  output /:*:a:\n/
> }
>
> which rightly yields
>
> buggaFARRR

Whoopsky. Yep, you are correct. Forgot the regex subexpression braces in there.

<evil grin> Something for crm114 v3.0 to have a la GCC and other
compilers which warn you when your arg count does not match the %
items in your 'C' printf: "did the crm script programmer provide as
many subexpressions as (s)he did provide variables to store them in?"
if not, warn.
Of course, that would not work for run-time generated regexes, but it
would help script novices like me. :-P   Alas, that's for someone else
to introduce in the compiler.

-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web: http://www.hobbelt.com/
 http://www.hebbut.net/
mail: [email protected]
mobile: +31-6-11 120 978
--------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.