Error in docs

View: New views
4 Messages — Rating Filter:   Alert me  

Error in docs

by Dainis Polis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!
I think found error in documentation :  
trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/lazy.html
following text :

// forwards to <boost/spirit/home/qi/auxiliary/lazy.hpp>
#include <boost/spirit/include/qi_lazy.hpp>

But  boost/spirit/include/qi_lazy.hpp don't exists, only

boost/spirit/home/qi/auxiliary/lazy.hpp








------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general

Re: Error in docs

by Hartmut Kaiser :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I think found error in documentation :
> trunk/libs/spirit/doc/html/spirit/qi/reference/auxiliary/lazy.html
> following text :
>
> // forwards to <boost/spirit/home/qi/auxiliary/lazy.hpp>
> #include <boost/spirit/include/qi_lazy.hpp>
>
> But  boost/spirit/include/qi_lazy.hpp don't exists, only
>
> boost/spirit/home/qi/auxiliary/lazy.hpp

I added (supposedly) all referenced but missing header files yesterday.
Could you update, pls?

Thanks!
Regards Hartmut

-------------------
Meet me at BoostCon
http://boostcon.com




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general

Re: Error in docs

by Dainis Polis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hartmut Kaiser wrote:
> I added (supposedly) all referenced but missing header files yesterday.
> Could you update, pls?
>
>  
Yes,  now qi_lazy  exists , but actualy my point where to read in docs  
something
about  qi::lazy() , because i don't understand argument type for  
qi::lazy()  , and
if result of  qi::lazy()  is rule , then  where this function comes from?

I found in test:
 r = char_[_val = _1] >> *qi::lazy(_val)
Second _val as  i unserstand is rules  r  composite  attribute.
Then how from this attribute  can be constructed rule qi::lazy() , i
don't understand .
Maybe somwhere is a good practic example where   qi::lazy() can be used?



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general

Re: Error in docs

by Hartmut Kaiser :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Hartmut Kaiser wrote:
> > I added (supposedly) all referenced but missing header files
> yesterday.
> > Could you update, pls?
> >
> >
> Yes,  now qi_lazy  exists , but actualy my point where to read in docs
> something
> about  qi::lazy() , because i don't understand argument type for
> qi::lazy()  , and
> if result of  qi::lazy()  is rule , then  where this function comes
> from?
>
> I found in test:
>  r = char_[_val = _1] >> *qi::lazy(_val)
> Second _val as  i unserstand is rules  r  composite  attribute.
> Then how from this attribute  can be constructed rule qi::lazy() , i
> don't understand .
> Maybe somwhere is a good practic example where   qi::lazy() can be
> used?

lazy(p) allows you to lazily (hence the name) - at parse time - decide what
parser to execute. The argument of lazy() is interpreted (dynamically, at
parse time) as a parser expression. The result of lazy is not a rule but an
instance of a parser component.

The example you mentioned uses the parsed character as a parser itself.

    rule<char const*, char()> r = char_[_val = _1] >> *qi::lazy(_val);

_val refers to the attribute of r (which is a char), which then is used as a
parser, so the whole thing matches any character one or more times.

Regards Hartmut

-------------------
Meet me at BoostCon
http://boostcon.com




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general