<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general">
    <title>gmane.comp.parsers.spirit.general</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13896"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13895"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13894"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13893"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13892"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13891"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13890"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13889"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13888"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13887"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13886"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13885"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13884"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13883"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13882"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13881"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13880"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13879"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13878"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13877"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13896">
    <title>Re: [Spirit2x] bjam in examples gives "No Jamfilein ../../../../../boost"</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13896</link>
    <description>
-{--bjam-I--
-*- mode: compilation; default-directory: 
"~/prog_dev/boost-svn/ro/boost_1_37_0/Spirit2x/libs/spirit/example/qi/" -*-
Compilation started at Wed Dec  3 22:02:21

bjam -d+2 mini_xml1
gcc.compile.c++ bin/gcc-4.2/debug/mini_xml1.o

     "/usr/bin/g++-4.2"  -ftemplate-depth-300 -O0 -fno-inline -Wall -g 
-fPIC    -I"../../../.." -I"../../../../.." -c -o 
"bin/gcc-4.2/debug/mini_xml1.o" "mini_xml1.cpp"

-}--bjam-I--

So the -I option arguments faithfully reflect the Jamroot:
-{--Jamroot--
use-project boost
   : ../../../../.. ;

project
   : requirements
         &lt;include&gt;../../../.. &lt;include&gt;../../../../..
   ;

-}--Jamroot--

So, I'm stumped!
I'll investigate further.
Thanks for the help.

-regards.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the wo</description>
    <dc:creator>Larry Evans</dc:creator>
    <dc:date>2008-12-04T04:14:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13895">
    <title>[spirit 2]  auto rules bite again</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13895</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Spirit-general mailing list
Spirit-general&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spirit-general
</description>
    <dc:creator>Carl Barron</dc:creator>
    <dc:date>2008-12-04T04:06:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13894">
    <title>Re: [Spirit2x] bjam in examples gives "No Jamfilein ../../../../../boost"</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13894</link>
    <description>
Yep, not a problem here:

bjam gcc msvc mini_xml1

gcc.compile.c++ bin\gcc-4.3\debug\mini_xml1.o
gcc.link bin\gcc-4.3\debug\mini_xml1.exe
compile-c-c++ bin\msvc-9.0\debug\threading-multi\mini_xml1.obj
mini_xml1.cpp
using native typeof
msvc.link bin\msvc-9.0\debug\threading-multi\mini_xml1.exe
msvc.manifest bin\msvc-9.0\debug\threading-multi\mini_xml1.exe
...updated 4 targets...

Best,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-04T03:36:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13893">
    <title>don't worry, it was easy...</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13893</link>
    <description>
ie,
//=========================================================================
int red=0, green=0, blue=0, alpha=0;
rule_t junk = lexeme_d[*(anychar_p - eol_p) &gt;&gt; eol_p];

rule_t option =
(str_p("colour") &gt;&gt; '=' &gt;&gt; int_p[assign(red)] &gt;&gt; int_p[assign(green)] &gt;&gt; int_p[assign(blue)] &gt;&gt; 
int_p[assign(alpha)])
|
(str_p("alpha") &gt;&gt; '=' &gt;&gt; int_p[assign(settings.alpha_)])
|
(str_p("name") &gt;&gt; '=' &gt;&gt; lexeme_d['"' &gt;&gt; (*(anychar_p - '"'))[assign(settings.name_)] &gt;&gt; '"'])
|
junk
;

//-------------------------------------------------------------------------

but what i want to know now is, how can i stop a rule that recognizes

colour = 1 2 3 4

from recognizing

colour = 1 2 3 4 5

????


if i add terminal symbol, eg

//===========================================

rule_t term = ch_p(';') &gt;&gt; eol_p;

rule_t option =
(str_p("colour") &gt;&gt; ... int_p[assign(alpha)] &gt;&gt; term)
|
...

//-------------------------------------------

and make the file syntax

colour = 1 2 3 4 ;

then the grammar still a</description>
    <dc:creator>jono</dc:creator>
    <dc:date>2008-12-04T03:12:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13892">
    <title>Re: [Spirit2x] bjam in examples gives "No Jamfilein ../../../../../boost"</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13892</link>
    <description>
works fine here with g++ 4.3.2. the error seems wrong you
shouldn't be getting the fusion::vector any more (instead
the latest code uses fusion::vectorN). But I am not sure.
There *might* be some problems with your include paths
confusing spirit2 and spirit2x?

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-04T03:32:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13891">
    <title>Re: [Spirit2x] bjam in examples gives "No Jamfilein ../../../../../boost"</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13891</link>
    <description>[snip]

Thanks Joel.

I tried just mini_xml1, but:

-{--bjam error--
-*- mode: compilation; default-directory: 
"~/prog_dev/boost-svn/ro/boost_1_37_0/Spirit2x/libs/spirit/example/qi/" -*-
Compilation started at Wed Dec  3 21:11:05

bjam mini_xml1
...patience...
...patience...
...found 1636 targets...
...updating 2 targets...
gcc.compile.c++ bin/gcc-4.2/debug/mini_xml1.o
../../../../boost/spirit/home/qi/nonterminal/rule.hpp: In member 
function 'boost::spirit::qi::rule&lt;Iterator, T1, T2, T3&gt;&amp; 
boost::spirit::qi::rule&lt;Iterator, T1, T2, T3&gt;::operator=(const Expr&amp;) 
[with Expr = boost::proto::exprns_::expr&lt;boost::proto::tag::shift_right, 
boost::proto::argsns_::list2&lt;const 
boost::proto::exprns_::expr&lt;boost::proto::tag::shift_right, 
boost::proto::argsns_::list2&lt;const 
boost::proto::exprns_::expr&lt;boost::proto::tag::shift_right, 
boost::proto::argsns_::list2&lt;boost::proto::exprns_::expr&lt;boost::proto::tag::terminal, 
boost::proto::argsns_::term&lt;const char&amp;&gt;, 0l&gt;, const 
boost::proto::exprns_::expr&lt;boost::proto::tag:</description>
    <dc:creator>Larry Evans</dc:creator>
    <dc:date>2008-12-04T03:19:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13890">
    <title>Re: [Spirit2x] bjam in examples gives "No Jamfilein ../../../../../boost"</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13890</link>
    <description>
Alright, I cleaned up some including the mini-xml samples.
I suggest you bjam only the parts that you want to compile.
Not all examples are clean yet.

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-04T02:44:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13889">
    <title>Re: Rule compilation error</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13889</link>
    <description>
I don't think so. +(char_) will gladly eat anything in its path.
You might want to constrain that further. Remember Qi is PEG.

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-04T02:41:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13888">
    <title>Re: Rule compilation error</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13888</link>
    <description>Larry and Joel - thank you both for the quick reply. Now I see the error, thanks. 

With the rule start %= lexeme[+(char_)] &gt;&gt; ruleFrequency;
Am I correct in the expectation that with the above rule I should be able to parse the input string up to 
the first empty character and then the rest of the string will be handled by "ruleFrequency" rule?

-----Original Message-----
From: Joel de Guzman &lt;joel&lt; at &gt;boost-consulting.com&gt;
To: spirit-general&lt; at &gt;lists.sourceforge.net
Date: Thu, 04 Dec 2008 10:02:21 +0800
Subject: Re: [Spirit-general] Rule compilation error




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>QPlace</dc:creator>
    <dc:date>2008-12-04T02:13:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13887">
    <title>Re: Rule compilation error</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13887</link>
    <description>

------------------------^^

Isn't that a bogus &gt;&gt; ? There is no LHS. How about:

   start %= lexeme[+(char_)] &gt;&gt; ruleFrequency;

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-04T02:02:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13886">
    <title>Re: Rule compilation error</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13886</link>
    <description>
 &gt;&gt; is a binary operator.  Without the eps, there's no left arg
to 1st &gt;&gt;.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Larry Evans</dc:creator>
    <dc:date>2008-12-04T02:00:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13885">
    <title>Rule compilation error</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13885</link>
    <description>Grammar below does not compile, complaining about "syntax error : '&gt;&gt;'" under VC2008. It only compiles 
when eps is added as in: 
start %= eps
&gt;&gt;  lexeme[+(char_)]
&gt;&gt;  ruleFrequency;

Can someone help me understand why?


template &lt;typename Iterator&gt;
struct command_parser : grammar&lt;Iterator, commandselect(), space_type&gt;
{
command_parser() : command_parser::base_type(start)
{
ruleFrequency %= eps &gt;&gt; int_ &gt;&gt; frequencies;

start %= 
&gt;&gt;  lexeme[+(char_)]
&gt;&gt;  ruleFrequency;
}

rule&lt;Iterator, frequency(), space_type&gt; ruleFrequency;
rule&lt;Iterator, commandselect(), space_type&gt; start; 
};

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>QuitePlace</dc:creator>
    <dc:date>2008-12-04T01:44:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13884">
    <title>Re: does char_("a-c") accept '-'? (was Re: solved:use ...</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13884</link>
    <description>
If you want the dash, you can make it the last.

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-04T00:17:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13883">
    <title>Re: solved: use raw/begin(_1) (was Re: bug?char_('&lt;') [val_=_1] fails compile</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13883</link>
    <description>
Yep. Only the ones that Karma uses.

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-04T00:09:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13882">
    <title>does char_("a-c") accept '-'? (was Re: solved: use...</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13882</link>
    <description>[snip]

What if I want to accept either 'a' or '-' or 'c'.
Judging from the */qi/char.cpp test driver,
char_("a-c") accepts 'a' or 'b' or 'c'.
OTOH, the small chr_set.cpp test driver included in
my previous post indicates:

   char_("&lt;(")

accepts either '&lt;' or '('.  Is - treated specially
so that to allow accepting '-' it must be somehow
escaped, as in, for example, char_("\-")?


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Larry Evans</dc:creator>
    <dc:date>2008-12-03T23:36:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13881">
    <title>Re: [Spirit2x] bjam in examples gives "NoJamfilein ../../../../../boost"</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13881</link>
    <description>
Great! I highly appreciate this as I always felt like sprinkling the
"using" directive over my code until it worked...

   Matthias
</description>
    <dc:creator>Matthias Vallentin</dc:creator>
    <dc:date>2008-12-03T17:39:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13880">
    <title>Re: solved: use raw/begin(_1) (wasRe:bug?char_('&lt;') [val_=_1] fails compile</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13880</link>
    <description>
These components also exist in karma, right? So will you hoist them (or
a subset) into karma in a similar fashion?

   Matthias
</description>
    <dc:creator>Matthias Vallentin</dc:creator>
    <dc:date>2008-12-03T17:36:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13879">
    <title>Re: [spirit2] unicode support</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13879</link>
    <description>

Joel de Guzman-2 wrote:

I'll take a look at those.


Joel de Guzman-2 wrote:

I agree! For what it's worth, I too would rather not rely on ICU, but I also
agree it would be expedient to start with it (particularly as boost::regex
supports it too).

Regards,

Ben
</description>
    <dc:creator>Ben.Hanson</dc:creator>
    <dc:date>2008-12-03T17:15:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13878">
    <title>[spirit2x] changes [was Re: solved: use raw/begin(_1) (was Re: bug?char_('&lt;') [val_=_1] fails compile]</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13878</link>
    <description>

The new name is "labels". You can bring all the labels in
using the using directive without worrying about bringing
in too much. As consistent with 2 below, this namespace is also
available in the qi namespace. Thus:

     using namespace boost::spirit::labels;

is mirrored in

     using namespace boost::spirit::qi::labels;


Again, holler if you see something you dislike.

Best,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-03T16:47:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13877">
    <title>[spirit2] unicode support</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13877</link>
    <description>
Oh definitely! I was thinking the same, when I got to it.
Anyway, we should at least have level-1 unicode support for
the lexer:

     http://www.unicode.org/reports/tr18/

This might help:

     http://www.regular-expressions.info/unicode.html

Let us coordinate our efforts. We need a common core library
support. My thinking is to make it not reliant on one single
library (like ICU) so we can plug in something better in the
future. At any rate, it would be practical to start with ICU.

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-03T16:30:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13876">
    <title>Re: [Spirit2x] bjam in examples gives "No Jamfilein ../../../../../boost"</title>
    <link>http://permalink.gmane.org/gmane.comp.parsers.spirit.general/13876</link>
    <description>
You might be wondering why I need some time to port the
examples. Well, it's not just porting. I took it to task
to make the examples real exemplars. For example, I am
taking out all using namespaces, avoid putting things
in global scope, etc.

Regards,
</description>
    <dc:creator>Joel de Guzman</dc:creator>
    <dc:date>2008-12-03T16:23:56</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.parsers.spirit.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.parsers.spirit.general</link>
  </textinput>
</rdf:RDF>
