moosefly | 1 Jan 10:31
Picon

Where is the "tag.hpp" file in the simple_xml example?

Happy new year.

I know it's a stupid question, but I really can't find the "tag.hpp"
head-file in this example. Anybody can help me?

Thanks a lot.

Yours
moosefly

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
CARL BARRON | 2 Jan 05:01

Re: Where is the "tag.hpp" file in the simple_xml example?


On Jan 1, 2008, at 4:31 AM, moosefly wrote:

> Happy new year.
>
> I know it's a stupid question, but I really can't find the "tag.hpp"
> head-file in this example. Anybody can help me?
>
   Which example? 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
mw-u2 | 3 Jan 12:10
Picon
Picon

Using closures

Hi,

I don't get it howto read stuff like
(1, [(1, []), (3, [(4,[]), (4,[])]), (2, [])])
and put it into my own data structure Cluster

With the following code there are some problems: 

a) I dont know how to use the actors to access stuff inside memeber1 in cluster_closure

// cluster.val.data is not an actor but I don't know how to change that
'(' >> ureal_p[cluster.val.data = arg1] >> "," ...

b) I dont know wheter I need a top rule, because I saw self.val in the example but dont have any self.val in my code

c) Infact my struct Cluster { list<Cluster> clist; } is broken and should read list<Cluster *> instead. But
then I am completly lost in reading in a cluster.

Thank you for your consideration,
Micha

#include <boost/spirit/core.hpp>
#include <boost/spirit/attribute.hpp>
#include <iostream>
#include <string>

#include <list>
#include <algorithms>
#include <functional>
#include <boost/assign/std/list.hpp> // for 'operator+=()'
(Continue reading)

CARL BARRON | 4 Jan 04:04

Re: Using closures


On Jan 3, 2008, at 6:10 AM, mw-u2 <at> gmx.de wrote:

> Hi,
>
> I don't get it howto read stuff like
> (1, [(1, []), (3, [(4,[]), (4,[])]), (2, [])])
> and put it into my own data structure Cluster
>
> With the following code there are some problems:
>
> a) I dont know how to use the actors to access stuff inside memeber1 
> in cluster_closure
>
> // cluster.val.data is not an actor but I don't know how to change that
> '(' >> ureal_p[cluster.val.data = arg1] >> "," ...
>
> b) I dont know wheter I need a top rule, because I saw self.val in the 
> example but dont have any self.val in my code
>
> c) Infact my struct Cluster { list<Cluster> clist; } is broken and 
> should read list<Cluster *> instead. But then I am completly lost in 
> reading in a cluster.
>
> Thank you for your consideration,
> Micha
>
   you are parsing a recursive structure and therefore creating a tree 
and walking it
seems the easiest solution of this problem.  [not spirit 1,x trees but 
(Continue reading)

CARL BARRON | 4 Jan 06:11

Re: Using closures


On Jan 3, 2008, at 10:04 PM, CARL BARRON wrote:

>
> On Jan 3, 2008, at 6:10 AM, mw-u2 <at> gmx.de wrote:
>
>> Hi,
>>
>> I don't get it howto read stuff like
>> (1, [(1, []), (3, [(4,[]), (4,[])]), (2, [])])
>> and put it into my own data structure Cluster
>>
>> With the following code there are some problems:
>>
>> a) I dont know how to use the actors to access stuff inside memeber1
>> in cluster_closure
>>
>> // cluster.val.data is not an actor but I don't know how to change 
>> that
>> '(' >> ureal_p[cluster.val.data = arg1] >> "," ...
>>
>> b) I dont know wheter I need a top rule, because I saw self.val in the
>> example but dont have any self.val in my code
>>
>> c) Infact my struct Cluster { list<Cluster> clist; } is broken and
>> should read list<Cluster *> instead. But then I am completly lost in
>> reading in a cluster.
>>
>> Thank you for your consideration,
>> Micha
(Continue reading)

Christopher Currie | 9 Jan 09:03
Favicon
Gravatar

[spirit2] Spirit2 svn status

I recently wanted to play with spirit2 to look at the new interface and 
play around with the features, but I'm having some trouble. From the 
slide deck, the right setup needs to include:

* Spirit SVN trunk/final
* Boost CVS HEAD

I'm not currently able to compile the example/lex directory using this 
setup. There are a number of header files in Boost CVS fusion that 
appear to have moved. Even with that corrected, I'm getting a few 
template instantiation errors that I'm having a hard time determining 
what's wrong.

Should I expect this setup to work? Am I doing something wrong? Or is 
spirit2 currently in an known non-functional state?

Thanks,
Christopher

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Tobias Schwinger | 9 Jan 11:45
Favicon

Re: [spirit2] Spirit2 svn status

Christopher Currie wrote:
> I recently wanted to play with spirit2 to look at the new interface and 
> play around with the features, but I'm having some trouble. From the 
> slide deck, the right setup needs to include:
> 
> * Spirit SVN trunk/final
> * Boost CVS HEAD

Boost has also moved to SVN some time ago, so I bet you'll have more 
luck using the SVN version.

     http://svn.boost.org

Seems the homepage is still out of sync...

Regards,
Tobias

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Joel de Guzman | 9 Jan 12:19
Picon
Favicon

Re: [spirit2] Spirit2 svn status

Christopher Currie wrote:
> I recently wanted to play with spirit2 to look at the new interface and 
> play around with the features, but I'm having some trouble. From the 
> slide deck, the right setup needs to include:
> 
> * Spirit SVN trunk/final
> * Boost CVS HEAD
> 
> I'm not currently able to compile the example/lex directory using this 
> setup. There are a number of header files in Boost CVS fusion that 
> appear to have moved. Even with that corrected, I'm getting a few 
> template instantiation errors that I'm having a hard time determining 
> what's wrong.
> 
> Should I expect this setup to work? Am I doing something wrong? Or is 
> spirit2 currently in an known non-functional state?

Just checked. Everything works fine for me if you get Boost
from SVN, (not CVS).

Regards,
--

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
(Continue reading)

Christopher Currie | 10 Jan 06:20
Favicon
Gravatar

Re: [spirit2] Spirit2 svn status

Joel de Guzman wrote:
> Just checked. Everything works fine for me if you get Boost
> from SVN, (not CVS).

Thanks, Joel and Tobias. This fixed my problem with include files, but 
there still seems to be something wrong with my setup, as I'm getting 
odd template instantiation errors. Is there a minimum GCC version I 
need? 3.4.4 cygwin and 4.1.2 redhat are giving me the same error.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Joel de Guzman | 10 Jan 13:52
Picon
Favicon

Re: [spirit2] Spirit2 svn status

Christopher Currie wrote:
> Joel de Guzman wrote:
>> Just checked. Everything works fine for me if you get Boost
>> from SVN, (not CVS).
> 
> Thanks, Joel and Tobias. This fixed my problem with include files, but 
> there still seems to be something wrong with my setup, as I'm getting 
> odd template instantiation errors. Is there a minimum GCC version I 
> need? 3.4.4 cygwin and 4.1.2 redhat are giving me the same error.

Confirmed. I too get the lexer errors on GCC (but not on MSVC).
Hartmut, could you please check?

Regards,
--

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

Gmane