Boost Users :
Subject: Re: [Boost-users] parsing query
Date: 2011-07-14 03:41:01
> I'm working on a project and have a file with lines of the following
> :function AddBrailleColors
> :Synopsis Provides a method for the user to assign custom colors to be
> marked in Braille.
> :Description Brings up a dialog for the user to assign the colors on the
> screen to Braille marking.
> :Param String/strForeground Enter the variable containing the RGB string
> for the foreground color.
> :Param String/strBackground Enter the RGB string for the background
> :Param String/sApp Enter the value for the app file name to be used.
> :Category Colors
> What boost library do people feel is the best one to use to parse this
> form of input, boost.Regex, boost.proto or boost.spirit?
> And given the input, what would be the best way of going about doing
> I need the function, Synopsis, Description, and then the parameters
> ideally placed in separate variables.
> Any help appreciated.
If you don't need regexp, what's wrong with sscanf/istream?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net