[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text processing as *the* problem




On Sunday, December 2, 2001, at 06:33 PM, Oliver Steele wrote:

> "Dan Sugalski" <dan@sidhe.org> writes:
>
>> I've been thinking that regexes would be really useful if they 
>> could be
>> extended out past the character level to the token level, so I 
>> could write
>> something like:
>>
>>     if (/(\{Adj})*\{Noun}/) {
>>       ...
>>     }
>>
>> to match a string that's got zero or more adjectives preceding a noun.
>

just use Parse::RecDescent and separate high-level from low-level 
concerns instead of trying to pack all desired functionality into 
the low-level engine.