Enrico Forestieri wrote:
>>   configure_command_ = os::python() + ' ' +
>>       quoteName(configure_script.toFilesystemEncoding()) +
>>       with_version_suffix();
> 
> You are right. A parser would be needed, and it is going to become
> cumbersome and error prone.

It just so happens that I wrote one using Boost.Spirit a couple of years
ago. Never got round to integrating it into LyX unfortunately. It's a
formally correct parser of a subset of sh. Certainly capable of handling
our command definition strings.

See
http://www.lyx.org/~leeming/libs/child/doc/html/parse_pseudo_command_line.html

The code's been languishing in the
        boost/child
        libs/child
subdirectories of http://www.lyx.org/~leeming

Feel free to grab it. If you're interested I can certainly walk you through
it all.

-- 
Angus

Reply via email to