1 Oct 05:13
Compile error
Carlo Wood <carlo <at> alinoe.com>
2008-10-01 03:13:09 GMT
2008-10-01 03:13:09 GMT
I tried to write something that links a grammar with a file...
However, I failed; I get a huge compile error.
Can someone please tell me what I'm doing wrong here?
It has to be wrong because it seems that my grammar
doesn't even know about the used scanner type, or doesn't
it have to know?
I'm highly confused.
PS I posted another mail before this one with 'Hello world'
as subject, but I never saw it back on the list??
-------------------------------------------------------------------------------
#include <iostream>
#include <fstream>
#include <boost/spirit/core.hpp>
#include <boost/spirit/iterator/multi_pass.hpp>
//#include "PgnGrammar.h"
// being:
#include <boost/spirit.hpp>
namespace cwchess {
namespace pgn {
namespace grammar {
// Define whether the rules should generate debug output.
#define TRACE_PGN_GRAMMAR 1
class PgnGrammar : public boost::spirit::grammar<PgnGrammar> {
(Continue reading)
RSS Feed