[arch-general] PKGBUILD parser
catwell at archlinux.us
Mon May 10 14:14:26 EDT 2010
"Andre "Osku" Schmidt" <andre.osku.schmidt at googlemail.com> a écrit :
>> A regular
>> expression will never be able to parse that.because it can never decide
>> which brace is the final one. This might be better explained here.
>thank you. i'll continue my journey on parsing this another way.
Actually if you read the page linked above completely you will notice that it says that you can. Regexps like POSIX that use finite automata can't but PCRE (that are everywhere) can, at least recent versions. That's also why they are slower.
catwell (from mobile phone)
More information about the arch-general