boost-spirit
Using the + operator in boost::spirit: char cast error?
In boost::spirit, I am trying to use the +(...) syntax to match one or more strings, like here: #include <boost/config/warning_disable.hpp>[详细]
2023-04-10 10:35 分类:问答Boost spirit grammar based string splitting
I am using Boost 1.44, The Spirit parser works well for numeric parsing but really is tricky for string parsing. I am trying to parse a string to be split using multiple delimiters: \',\' ,\';\' or \'[详细]
2023-04-07 18:16 分类:问答Need help with lexer runtime_error
I\'m trying to write a C qi parser for a modified C language. When I un-comment the t_in_op and below section I get a run_time error stating[详细]
2023-03-29 08:35 分类:问答Parentheses in template parameters in Boost Spirit rules and grammars
Looking at this example for implementing a Spirit parser, something caught me out when I was trying to write something similar.[详细]
2023-03-25 13:25 分类:问答Unable to define a rule in Spirit:: Qi
I am trying to parse a Unix file path into pairs of folders(key/value pairs - as needed by my application). The problem is I am unable to define parsers using qi::rule correctly. I get pages of compil[详细]
2023-03-23 21:53 分类:问答"cc1plus.exe has stopped working" while compiling Boost Spirit code
I\'m having a bit of an odd problem while trying to compile some code using the latest version of MinGW (GCC 4.5.2) under Windows Vista Home Premium 64-bit. While compiling this file, I get a message[详细]
2023-03-22 20:06 分类:问答boost spirit to parse a structure
I would like to use boost::spirit to parse a structure from a std::string. In my example the string looks like what will be read from a file[详细]
2023-03-18 05:46 分类:问答Matching strings using Boost Spirit
I am learning Boost Spirit and simply modified an example given in the documentation to match strings instead of doubles. But the code doesn\'t compile and I get errors which I am unable to debug. Bel[详细]
2023-03-16 15:21 分类:问答Boost Spirit: Error C2664, Cannot convert 'const boost::phoenix::actor<Eval>' to 'char'
I\'m new to Boost Spirit and trying to write JSON parser using Boost Spirit 2.4.2 (Boost 1.46.1). For the code below, I get the error when trying to execute semantic action/attribute:[详细]
2023-03-16 14:45 分类:问答Is there any way to compose separately compiled boost::spirit::qi grammars?
Boost Spirit Qi parser grammars are wonderful, and I use them for small things all the time. However, there are times when I would like to be able to compose separate grammars.[详细]
2023-03-15 05:46 分类:问答