Update of /cvsroot/boost/boost/tools/quickbook
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16055
Modified Files:
phrase.hpp
Log Message:
Conditional Generation
Index: phrase.hpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/phrase.hpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- phrase.hpp 21 Jul 2007 04:56:36 -0000 1.25
+++ phrase.hpp 28 Jul 2007 08:13:20 -0000 1.26
@@ -211,7 +211,8 @@
phrase_markup =
'['
- >> ( image
+ >> ( cond_phrase
+ | image
| url
| link
| anchor
@@ -248,6 +249,16 @@
)
;
+ macro_identifier =
+ +(anychar_p - (space_p | ']'))
+ ;
+
+ cond_phrase =
+ '?' >> blank
+ >> macro_identifier
[actions.cond_phrase_pre]
+ >> (!phrase)
[actions.cond_phrase_post]
+ ;
+
image =
'$' >> blank
>> (*(anychar_p -
@@ -399,7 +410,9 @@
simple_bold, simple_italic, simple_underline,
simple_teletype, source_mode, template_,
template_arg,
quote, code_block, footnote, replaceable, macro,
- brackets, template_args, dummy_block;
+ brackets, template_args, dummy_block, cond_phrase,
+ macro_identifier
+ ;
rule<Scanner> const&
start() const { return common; }
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs