Skip to content
Snippets Groups Projects
Commit 379b252a authored by Franck Dary's avatar Franck Dary
Browse files

Added some debug infos

parent 9f359ef3
Branches
No related tags found
No related merge requests found
...@@ -616,6 +616,8 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na ...@@ -616,6 +616,8 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
{ {
simpleBufferWrite(c, "ID", std::to_string(c.currentWordIndex), 0); simpleBufferWrite(c, "ID", std::to_string(c.currentWordIndex), 0);
c.currentWordIndex += 1; c.currentWordIndex += 1;
if (ProgramParameters::debug)
fprintf(stderr, "ended word <%s>\n", c.getTape("FORM")[0].c_str());
}; };
auto undo = [](Config & c, Action::BasicAction &) auto undo = [](Config & c, Action::BasicAction &)
{ {
...@@ -1305,6 +1307,9 @@ void ActionBank::addCharToBuffer(Config & config, const std::string & tapeName, ...@@ -1305,6 +1307,9 @@ void ActionBank::addCharToBuffer(Config & config, const std::string & tapeName,
std::string suffix = std::string(config.rawInput.begin()+config.rawInputHeadIndex, config.rawInput.begin()+config.rawInputHeadIndex+nbChar); std::string suffix = std::string(config.rawInput.begin()+config.rawInputHeadIndex, config.rawInput.begin()+config.rawInputHeadIndex+nbChar);
if (ProgramParameters::debug)
fprintf(stderr, "added char <%s> to word\n", suffix.c_str());
tape.setHyp(relativeIndex, from+suffix); tape.setHyp(relativeIndex, from+suffix);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment