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

Paolo <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <20080522210950.GF2534@localhost>
On Thu, May 22, 2008 at 10:32:14PM +0200, Ger Hobbelt wrote:
...
> (forgive code errors next: this is off the top of my head)
> 
> isolate (:a:) /buggaboo/
> match [:a:] (:: :b:) /boo/
> # 'b' now points INTO 'a' space
> alter [:b:] /FARRR/
> # ^ will alter 'a' too as 'b' points into 'a' space
> output /:*:a:/
> # expected output: "buggaFARRR"

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

buggaFARRRboo

note 'boo' is still there, since we matched the null string at its left.

-- 
paolo

-------------------------------------------------------------------------
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.