Onigurama - Problem with Subexpression Call

  • Thread starter Wolfgang Nádasi-Donner
  • Start date
W

Wolfgang Nádasi-Donner

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 ([email protected]), but I don't know if he is the right adressee.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top