Error's in grammar structure

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error's in grammar structure

Jens Kallup
Hello,

I get this (g++ 5.4.0):

yymain.cc:213: required from 'client::dbase_grammar<Iterator,
Skipper>::dbase_grammar() [with Iterator =
__gnu_cxx::__normal_iterator<const char*,
std::__cxx11::basic_string<char> >; Skipper =
client::dbase_skipper<__gnu_cxx::__normal_iterator<const char*,
std::__cxx11::basic_string<char> > >]'


source code:

             expression =
                     term.alias() [ e_ast = qi::_1 ] // <-- line 213
                     >> *(
                       ('+' >> term [ e_ast += qi::_1 ] )
                     | ('-' >> term [ e_ast -= qi::_1 ] ))
                     ;

what is wrong?

Jens

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|

Re: Error's in grammar structure

sehe
On 19-10-16 23:51, Jens Kallup wrote:
> what is wrong?

I'm going to stop helping you, until you start posting SSCCE (minimal,
selfcontained code samples).

As posed your question is completely unanswerable. You don't even
include the error (just a fragment of the location/instantiation chain
leading up to it).

We have no clue what `e_ast` could possibly be.

Out of the box: From the name `yymain` it looks like you're porting a
lex/yacc grammar to Spirit. If you shared the goal of the exercise, we
could help a lot better.


I hope you don't mind my being a bit blunt, ultimately I just want to
help. But it's impossible this way.

Seth


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general