in reply to logically recurse parentheses

Parse::RecDescent is good for this sort of thing.

Replies are listed 'Best First'.
Re^2: logically recurse parentheses
by Limbic~Region (Chancellor) on May 17, 2007 at 14:28 UTC
    friedo,
    Assuming the task is as simple as stated, then I would agree. If on the other hand, if order of operations (precedence) and associativity (left or right) is important, Parse::RecDescent is not the first tool I reach for. I have a very long an unfinished meditation I have on the back burner that goes into much greater detail. In a nutshell, I prefer Parse::Yapp if precedence and associativity are important.

    Cheers - L~R