#include "Test.h"
#include "TestGrammar.h"

Test::Test() {
}

Test::~Test() {
}

void Test::parse() {
  string s("1,2,3,4");
  TestGrammar<Test> gram(*this);
  parse_info <const char* const> info = boost::spirit::parse(
    s.c_str(),
    gram);
  if(info.full) cout<<"Right"<<endl;
  else cout<<"Error"<<endl;
}

void Test::addNumber(const int num) {
  cout<<"Added: "<<num<<endl;
}