boost-phoenix Questions

1

Solved

Consider: struct s { AttrType f(const std::string &); }; ...and a rule r with an attribute AttrType: template <typename Signature> using rule_t = boost::spirit::qi::rule<Iterator...
Bluebell asked 11/6, 2015 at 15:6

2

Is it possible to create boost phoenix lazy variant of std::make_shared? I mean, to make possible something like namespace p = boost::phoenix; ... expr = custom_parser[_a=p::make_shared<Node&gt...
Contemporaneous asked 2/2, 2014 at 21:2

2

Does anyone know of a C++ data structure library providing functional (a.k.a. immutable, or "persistent" in the FP sense) equivalents of the familiar STL structures? By "functional" I mean that th...

1

Solved

I need to parse a line containing an unsigned int, the character X that is to be discarded, and a string, all separated by one or more spaces. e.g., 1234 X abcd bool a = qi::phrase_parse(first, la...
Advowson asked 6/7, 2013 at 3:38

2

I always thought Boost.Phoenix used type-inference to infer everything statically, until I tried this code: #include <vector> #include <boost/phoenix/phoenix.hpp> using namespace boos...
Yeomanry asked 21/7, 2012 at 20:39

1

Solved

I regularly use boost.lambda (and phoenix) to define lambda functions in C++. I really like their polymorphic property, the simplicity of their representation and the way they make functional progr...
Battle asked 13/4, 2012 at 16:46

3

Solved

I'm thinking about migrating my code toward using C++11-style lambdas instead of having binds everywhere. But I'm not sure if it's a good idea or not. Does using e.g. boost::lambda (or boost::phoe...
Dreamland asked 21/8, 2012 at 20:38

1

Solved

I have another problem with my boost::spirit parser. template<typename Iterator> struct expression: qi::grammar<Iterator, ast::expression(), ascii::space_type> { expression() : expre...
Kickoff asked 11/12, 2011 at 15:6

2

I am trying to understand the difference between these different bind approaches. There is a similar question at boost::bind and boost::phoenix::bind But, if anyone can explain this with examples...
Surculose asked 7/11, 2011 at 11:27

1

Solved

This question is inspired from another topic which poses this question: Find the first value greater than user specified value from a map container which can be solved in several ways. A typic...
Erepsin asked 7/9, 2011 at 16:34

2

Solved

Possible Duplicate: What are the benefits of using Boost.Phoenix? So I started reading the documentation for boost phoenix. However, I must admit that I don't quite understand the pu...
Dauphin asked 28/5, 2011 at 10:0

3

Solved

I'm using QI and Phoenix, and I want to write a small grammar that returns 4 bools which are to be used as arguments for a function call inside a semantic action. I have several functions that ne...
Bugg asked 27/5, 2011 at 20:53

5

I can not understand what the real benefits of using Boost.Phoenix. When I use it with Boost.Spirit grammars, it's really useful: double_[ boost::phoenix::push_back( boost::phoenix::ref( v ), _1...
Skidproof asked 16/2, 2011 at 7:6

1

Solved

Like, many of these other questions, I'm trying to parse a simple grammar into a tree of structs using Boost.Spirit.Qi. I'll try to distill what I'm trying to do to the simplest possible case. I h...
Cartesian asked 6/1, 2011 at 21:23

1

Solved

Using boost.spirit I try to parse simple command line of the form command:param1 param2... to do so I created this parser: (+(char_ - ':'))[ref(cmd) = _1] >> ':' >> (*char_)[ref(param...
Unify asked 20/10, 2010 at 0:58

1

Solved

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 small experience with haskell and scheme...

1

Solved

I recently started looking at boost phoenix, as replacement for lambda. Is phoenix a full replacement for lambda, or is there some lambda functionality which is not provided by phoenix? is phoenix ...
Oversee asked 17/5, 2010 at 20:59

1

Solved

What is the difference between Boost::bind and Boost Phoenix::bind?
Monocarpic asked 14/8, 2009 at 14:25
1

© 2022 - 2024 — McMap. All rights reserved.