[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Onigurama - Problem with Subexpression Call

WoNáDo

6/27/2005 9:22:00 PM

I've started some experimental work with Onigurama in the Ruby 1.9 environment.
Everything was fine up to the moment I started using the subexpression call. I constructed the following
pattern:

(?<bal>[^()]*(\(\g<bal>\)[^()]*)*)

Then I tried to use this far from perfect formed pattern and got the message, that it contains an infinite
left recursion. I don't understand this, because the pattern must consume "\(" before coming to the recursive
call.

I've sent this earlier to Mr. Kosako (kosako@sofnec.co.jp), but I don't know if he is the right adressee.

--
Wolfgang Nádasi-Donner
wonado@donnerweb.de