On Thu, Apr 2, 2015 at 9:45 AM, kilon alios <kilon.alios@gmail.com> wrote:
depends on your needs. I never used regex before , pharo regex was my first. I used on a specific case that was quite simple. I love its simplicity and its extremely compact syntax. Perfect fit for my needs, one very happy customer :)

I think it depends on complexity of the parsing and how you like to work, if you have a simple problem and want a compact syntax, nothing can beat regex. At least taking account SmaCC and PettitParser. When I need more complex parsing with nested syntax, SmaCC made a lot more sense.

PetitParser was great for what I wanted to do: parse SNMP results.
What was great was the ability to make one "generic" grammar and subclass it with specific ones.

I used Regex at first to do the job but it turned into an unholy mess (not that it couldn't parse what I needed) and PetitParser was there.

No SmaCC usage so far, so can't comment there.

Phil
��

On Thu, Apr 2, 2015 at 4:31 AM, Martin B��hr <mbaehr@email.archlab.tuwien.ac.at> wrote:
Excerpts from stepharo's message of 2015-04-01 23:00:11 +0200:
> May be this was a mistake to get regexp.

Some people, when confronted with a problem, think "I know, I'll use regular
expressions." Now they have two problems.
(jwz)






��