Subject: [boost] spirit mini_c example 1 broken
From: Dirk Griffioen (dirk.griffioen_at_[hidden])
Date: 2010-07-02 10:54:20


Hi,

(Sorry if this is the wrong list)

The mini_c example 1 in Boost.Spirit v2.3 seems to be broken: all I get
is a

Error! Expecting <statement-list> here: "
     int a = 2;

And with some debugging added it says:

<statement-list>
<try>\n int a = 2;\n </try>
<statement>
<try>\n int a = 2;\n </try>
<variable-declaration>
<try>\n int a = 2;\n </try>
<fail/>
</variable-declaration>
<assignment>
<try>\n int a = 2;\n </try>
<variable-reference>
<try>\n int a = 2;\n </try>
<fail/>
</variable-reference>
<fail/>
</assignment>
<fail/>
</statement>
<fail/>
</statement-list>
Error! Expecting <statement-list> here: "
     int a = 2;

I am a bit confused now, as it is straight from the examples ... and my
guess is it should work.

Any hints?

Best, Dirk