Commit 50a1da87 authored by Florent Jacquemard's avatar Florent Jacquemard
Browse files

print or write file LRT : case of fail symbols

parent 21cda6b0
......@@ -762,11 +762,11 @@ int main(int argc, char** argv)
{
size_t err = 0;
// should not happen
if (t->fail())
{
WARN("Global parse fail");
err = parse_fail(_output_file);
// should not happen
ERROR("Global parse fail");
err = parse_fail(_output_file); // STUB
}
else
{
......
......@@ -97,6 +97,14 @@ void LabeledRhythmTree::writeLabel(std::ostream& os) const
{
os << "+";
}
else if (SymbLabel::fail(a))
{
os << "FAIL";
}
else
{
os << "?";
}
}
else if (SymbLabel::tuple(a))
{
......
......@@ -89,6 +89,14 @@ void LabeledRhythmTree::printLabel(std::ostream& os) const
{
os << "+"; // continuation
}
else if (SymbLabel::fail(a))
{
os << "FAIL";
}
else
{
os << "?";
}
}
else if (SymbLabel::tuple(a))
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment