boost-spirit
boost spirit expectation failure
I want to parse a vector of the following struct: BOOST_FUSION_ADAPT_STRUCT( event_model::OTNDescriptor,[详细]
2023-02-11 05:34 分类:问答C++/Boost: Writing a more powerful sscanf replacement
I want to write a function in C++ to replace C\'s sscanf that assigns the matches to iterator. Basically, I want something like:[详细]
2023-02-10 23:53 分类:问答Issue trying to compile Spirit.Qi parser
Below is a fully self-contained example.The problem appears to be lines 84-89 - if those lines are commented out, the example compiles. What I\'m trying to parse is each line of a file, with five colo[详细]
2023-02-10 11:02 分类:问答Boost::Spirit::Qi autorules -- avoiding repeated copying of AST data structures
I\'ve been using Qi and Karma to do some processing on several small languages. Most of the grammars are pretty small (20-40 rules). I\'ve been able to use autorules almost exclusively, so my parse tr[详细]
2023-02-03 21:13 分类:问答Boost.Spirit.Qi: Take a rule's attribute and set it as a field of an enclosing rule's struct attribute?
Like, many of these other questions, I\'m trying to parse a simple grammar into a tree of structs using Boost.Spirit.Qi.[详细]
2023-02-03 11:23 分类:问答How to put results into a STL map by using boost-spirit?
#include <QtCore/QCoreApplication> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix.hpp>[详细]
2023-02-02 11:08 分类:问答Parsing escaped strings with boost spirit
I´m working with Spirit 2.4 and I\'d want to parse a structure like this: Text{text_field}; The point is that in text_field is a escaped string with the symbols \'{\', \'}\' and \'\\\'.[详细]
2023-01-21 07:35 分类:问答Parsing with Boost::Spirit (V2.4) into container
I just started to dig into Boost::Spirit, latest version by now -- V2.4. The essense of my problem is following:[详细]
2023-01-19 10:19 分类:问答Understanding and using the Boost Phoenix Library with a focus on lazy evaluation
I just found out about the Boost Phoenix library (hidden in the Spirit project) and as a fan of the functional-programming style (but still an amateur; some smal开发者_运维知识库l experience with hask[详细]
2023-01-18 18:33 分类:问答How can I parse different structures with Boost.Spirit.Qi?
In this example, employee structs are parsed in the form \"employee{int, string, string, double}\". I would like to know whether it is possible to modify this example to also parse different types of[详细]
2023-01-17 18:56 分类:问答