John Maddock wrote:
[def _my_caution_ [caution blah blah blah]]
Doh! serves me right for posting at the end of day, that *was* what I
was doing I just messed up my message, your example generates:
error: Syntax Error near column 42.
So there is a problem, I just couldn't get my brain to describe
correctly last night ;-)
Yes, def_macro only allows phrases ATM (not blocks).
def_macro =
"def" >> hard_space
>> identifier
>> blank >> phrase
;
Better macro handling (with parameters) is planned in conjunction
with the pre-processor (where it belongs). Before we have that,
there is no way yet to do what you want. Sorry :(
Also, I am re-reviewing the aspect of the design that relates
to phrases and blocks. It has been noted that some elements that
are currently regarded as blocks (e.g. tables) are inherently
recursive. Currently, blocks in general can contain phases but
not blocks. It would be nice to have tables nest tables, for
example. The syntax already allows for that.
Regards,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests:
https://lists.sourceforge.net/lists/listinfo/boost-docs