|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[Spirit] xml parse tree printing double leaf nodeFor instance: Parameter = ParameterName >> ParameterValue; The tree it prints it looks more or less like the following (note the repetition of ParameterName and ParameterValue nodes): <Parameter> <ParameterName> <ParameterName> <value>Foo</value> </ParameterName> </ParameterName> </ParameterValue> <ParameterValue> <value>Bar</value> </ParameterValue> </ParameterValue> </Parameter> I would be expecting more something like: <Parameter> <ParameterName> <value>Foo</value> </ParameterName> </ParameterValue> <value>Bar</value> </ParameterValue> </Parameter> Is there any directive or secret that I don't know ? Thanks HT Windows 7: I wanted more reliable, now it's more reliable. Wow! _______________________________________________ Boost-users mailing list Boost-users@... http://lists.boost.org/mailman/listinfo.cgi/boost-users |
|
|
Re: [Spirit] xml parse tree printing double leaf nodeOn Sat, Oct 31, 2009 at 12:29 PM, HT4N - <ht4n@...> wrote:
> When I generating parse tree and dump it using the built-in tree-to-xml > function, even from a simple grammar, I wonder why it prints out the leaf > node twice. > > For instance: > > Parameter = ParameterName >> ParameterValue; > > The tree it prints it looks more or less like the following (note the > repetition of ParameterName and ParameterValue nodes): > > <Parameter> > <ParameterName> > <ParameterName> > <value>Foo</value> > </ParameterName> > </ParameterName> > </ParameterValue> > <ParameterValue> > <value>Bar</value> > </ParameterValue> > </ParameterValue> > </Parameter> > > I would be expecting more something like: > > <Parameter> > <ParameterName> > <value>Foo</value> > </ParameterName> > </ParameterValue> > <value>Bar</value> > </ParameterValue> > </Parameter> > > > Is there any directive or secret that I don't know ? Probably because of the rule indirection. You *really* should be using Spirit.QI, not Spirit.Classic like you are, it has no such problems. Also, there is a Spirit mailing list, you will get much faster responses there. _______________________________________________ Boost-users mailing list Boost-users@... http://lists.boost.org/mailman/listinfo.cgi/boost-users |
|
|
Re: [Spirit] xml parse tree printing double leaf nodeI don't see any information about it in boost.org page. Do you have a link that you can share with me? Thanks HT > Date: Sat, 31 Oct 2009 18:48:26 -0600 > From: overminddl1@... > To: boost-users@... > Subject: Re: [Boost-users] [Spirit] xml parse tree printing double leaf node > > On Sat, Oct 31, 2009 at 12:29 PM, HT4N - <ht4n@...> wrote: > > When I generating parse tree and dump it using the built-in tree-to-xml > > function, even from a simple grammar, I wonder why it prints out the leaf > > node twice. > > > > For instance: > > > > Parameter = ParameterName >> ParameterValue; > > > > The tree it prints it looks more or less like the following (note the > > repetition of ParameterName and ParameterValue nodes): > > > > <Parameter> > > <ParameterName> > > <ParameterName> > > <value>Foo</value> > > </ParameterName> > > </ParameterName> > > </ParameterValue> > > <ParameterValue> > > <value>Bar</value> > > </ParameterValue> > > </ParameterValue> > > </Parameter> > > > > I would be expecting more something like: > > > > <Parameter> > > <ParameterName> > > <value>Foo</value> > > </ParameterName> > > </ParameterValue> > > <value>Bar</value> > > </ParameterValue> > > </Parameter> > > > > > > Is there any directive or secret that I don't know ? > > Probably because of the rule indirection. You *really* should be > using Spirit.QI, not Spirit.Classic like you are, it has no such > problems. > Also, there is a Spirit mailing list, you will get much faster responses there. > _______________________________________________ > Boost-users mailing list > Boost-users@... > http://lists.boost.org/mailman/listinfo.cgi/boost-users Bing brings you maps, menus, and reviews organized in one place. Try it now. _______________________________________________ Boost-users mailing list Boost-users@... http://lists.boost.org/mailman/listinfo.cgi/boost-users |
|
|
Re: [Spirit] xml parse tree printing double leaf node> What is Spirit.Qi is that a Spirit new version?
> > I don't see any information about it in boost.org page. > > Do you have a link that you can share with me? This is a new version of Spirit to be released with Boost V1.41. You can peak at the documentation here: http://tinyurl.com/ojalum. Regards Hartmut ------------------- Meet me at BoostCon http://boostcon.com > > Thanks > > HT > > > > Date: Sat, 31 Oct 2009 18:48:26 -0600 > > From: overminddl1@... > > To: boost-users@... > > Subject: Re: [Boost-users] [Spirit] xml parse tree printing double > > leaf node > > > > On Sat, Oct 31, 2009 at 12:29 PM, HT4N - <ht4n@...> wrote: > > > When I generating parse tree and dump it using the built-in > > > tree-to-xml function, even from a simple grammar, I wonder why it > > > prints out the leaf node twice. > > > > > > For instance: > > > > > > Parameter = ParameterName >> ParameterValue; > > > > > > The tree it prints it looks more or less like the following (note > > > the repetition of ParameterName and ParameterValue nodes): > > > > > > <Parameter> > > > <ParameterName> > > > <ParameterName> > > > <value>Foo</value> > > > </ParameterName> > > > </ParameterName> > > > </ParameterValue> > > > <ParameterValue> > > > <value>Bar</value> > > > </ParameterValue> > > > </ParameterValue> > > > </Parameter> > > > > > > I would be expecting more something like: > > > > > > <Parameter> > > > <ParameterName> > > > <value>Foo</value> > > > </ParameterName> > > > </ParameterValue> > > > <value>Bar</value> > > > </ParameterValue> > > > </Parameter> > > > > > > > > > Is there any directive or secret that I don't know ? > > > > Probably because of the rule indirection. You *really* should be > using > > Spirit.QI, not Spirit.Classic like you are, it has no such problems. > > Also, there is a Spirit mailing list, you will get much faster > responses there. > > _______________________________________________ > > Boost-users mailing list > > Boost-users@... > > http://lists.boost.org/mailman/listinfo.cgi/boost-users > ________________________________________ > Bing brings you maps, menus, and reviews organized in one place. Try it > now. _______________________________________________ Boost-users mailing list Boost-users@... http://lists.boost.org/mailman/listinfo.cgi/boost-users |
|
|
Re: [Spirit] xml parse tree printing double leaf nodeOn Sun, Nov 1, 2009 at 11:07 AM, Hartmut Kaiser
<hartmut.kaiser@...> wrote: >> What is Spirit.Qi is that a Spirit new version? >> >> I don't see any information about it in boost.org page. >> >> Do you have a link that you can share with me? > > This is a new version of Spirit to be released with Boost V1.41. You can > peak at the documentation here: http://tinyurl.com/ojalum. It has been available in the trunk for near a year (and now on the release branch for a few weeks now) if you want to use it now like we are. _______________________________________________ Boost-users mailing list Boost-users@... http://lists.boost.org/mailman/listinfo.cgi/boost-users |
| Free embeddable forum powered by Nabble | Forum Help |