Jump to content

Talk:Spirit Parser Framework

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

The example shown here seem outdated, as I get deprecation warnings when compiling them (using recent versions of Boost.Spirit):

In file included from main.cpp:1:
/usr/include/boost/spirit.hpp:18:4: warning: #warning "This header is deprecated. Please use: boost/spirit/include/classic.hpp"
In file included from main.cpp:2:
/usr/include/boost/spirit/actor.hpp:18:4: warning: #warning "This header is deprecated. Please use: boost/spirit/include/classic_actor.hpp"

Just sayin', Although I'm puzzled myself about these warnings. 91.42.157.253 (talk) 03:32, 22 August 2010 (UTC)[reply]

Updating

[edit]

Shouldn't the article be updated to indicate that there's now Spirit.Classic, Qi, Karma, and Lex? –Matěj Grabovský (talk) 18:24, 12 July 2011 (UTC)[reply]

Example program segfaults

[edit]

The example code pasted verbatim into a .cpp file and compiled with g++-4.9 segfaults for me. Apparently qi::rule does not behave well when used with auto:

 http://stackoverflow.com/questions/22023779/assigning-parsers-to-auto-variables