After many failed attemps, I'm getting really desperate because I can't use Spirit in a fully dynamic way.
I am trying to serialize a very simple rule, say int_p, into a persistent storage place(e.g. a database table) but I have absolutely no idea as to whether this is possible or there's a theoritical hurdle that will prevent me finding a solution.
If anyone has ever tried to save/load a grammar to/from a persistent storage then I would be more than happy to hear about it.
Forgive me if I did'nt attach a compilable example but the my problem is basically very simple to explain: I need to save or load a grammar at runtime!
When replying, please edit your Subject line so it is more specific than "Re: Contents of Spirit-general digest..."
1. Re: infinite-loop compilng for 64bit target (32bit works fine) (Joel de Guzman) 2. Re: [VC7.1/B_1_33] Newbie: problem compiling small sample (Joel de Guzman)
Message: 1 To: [hidden email] From: Joel de Guzman Date: Sun,
18 Sep 2005 19:57:07 +0800 Subject: [Spirit-general] Re: infinite-loop compilng for 64bit target (32bit works fine) Reply-To: [hidden email]
Harro Verkouter wrote:
> > Hi all, > > Suddenly I realised I completely forgot to attach the file with output > and systemdetails with my mail of last week about this problem. > > I suspect this infinite loop whilst compiling for a 64bit target problem > is mainly g++'s problem, however.... > > If I send the same mail off to gcc's buglist, I suspect I get the same > amount of feedback since, most likely, the gcc developers' attitude > would be "it's spirit's problem because it's not 64bit clean" so this > would also cause also infinite loop. > > IMHO it is a case of 'destructive interference' - some constructs in > spirit might trigger a 64bit-problem in gcc ... > > I would appreciate any
help in getting a bit more info out of either > spirit or g++ since at the moment I don't know where to look or how to > produce something to look at... > > This time, let me not forget to attach the file. For completeness > (apologies if you see it again) I'll attach the source-file as well.
The biggest problem is that I do not have access to a 64bit gcc compiler. I have some thughts that might or might not be helpful. Compiler bugs typically happen with optimization. Have you tried turning those off and does it still loop forever? If yes, then there's a good chance that it's a Spirit 64-bit bug. Also, have you tried to use spirit's debug mode and see which rule(s) are causing the infinite loop? Finally, you can use a debugger and step through the code to see what's happening in micro detail. I know this is not much of a help, but...
Regards, -- Joel de
Guzman http://www.boost-consulting.com http://spirit.sf.net
Message: 2 To: [hidden email] From: Joel de Guzman Date: Sun, 18 Sep 2005 20:05:25 +0800 Subject: [Spirit-general] Re: [VC7.1/B_1_33] Newbie: problem compiling small sample Reply-To: [hidden email]
Daniel Lidström wrote: > Hi, > > I'm using VC 7.1 and am trying to compile a simple sample, with a grammar > and file_iterator, as well as a simple line parser. The compilation fails > with these error messages: > [...]
Pardon the delay. I lost net connectivity when you posted. I almost missed your post.
Ok... Please see FAQ 1: The scanner business. http://tinyurl.com/733sd
Here's the problem code:
rule<> r = ...;
parse_info<> info = parse(line, r, space_p);
Cheers, -- Joel
de Guzman http://www.boost-consulting.com http://spirit.sf.net
_______________________________________________ Spirit-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/spirit-general