[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-docs
Subject:    Re: [Boost-docs] Changes to syntax_highlight.hpp
From:       Joel de Guzman <joel () boost-consulting ! com>
Date:       2007-08-22 23:30:27
Message-ID: faigun$gsk$1 () sea ! gmane ! org
[Download RAW message or body]

Andreas Pokorny wrote:
> Hello,
> 
> I am sorry that I was gone for so long. I was offline for some days,
> and investigated xpressive in the meanwhile.
> 
> 2007/8/12, Joel de Guzman <joel@boost-consulting.com>:
>> Could you give us an example, say, the c++ description?
> 
> I will work on that right now, but I want to show what I did so far:
> 
> I just added a branch for xpressive, to allow nested dynamic regular
> xpressions to boost-svn:
>  http://svn.boost.org/svn/boost/branches/xpressive/nested_dynamic_regex/
> 
> It allows writing stuff like:
> 
>     nested_dynamic_compiler<std::string::const_iterator> compiler;
>     compiler.add_start("first", "(second)*"); // adds the start "rule" or regex
>     compiler.add("second", "ab"); // adds an arbitrary reg ex named "second"
>                                                  // which can be
> refered to in other regex
>                                                  // defined in that compiler
>     compiler.compile();
> 
>     std::string input;
>     std::cin >> input;
>     if(regex_match(input, compiler.regex() ) )
>     {
>         ...
>     }
> 
> 
> I now try to convert the grammar and provide a bigger example.
> 
>>> PS: With that extensions one cannot implement quickbook within quickbook.
>> Hrm. Why not?
> 
> Yeah, why not. At first I did not like that one cannot implement a regex
> library in qbks. Now I think it would be much more interesting if we
> would invoke templates with results of the match.

Cool, Andreas! OK, I added a trac ticket for this:
http://svn.boost.org/trac/boost/ticket/1201
Please add this information there and anything related to
this development.

Thanks!

Regards,
-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic