}
}
- if (!DFlag)
+ if (dFlag)
{
- if (dFlag)
- {
- o << indent(ind) << mapCodeName["YYDEBUG"] << "(-1, " << mapCodeName["yych"] << ");\n";
- }
+ o << indent(ind) << mapCodeName["YYDEBUG"] << "(-1, " << mapCodeName["yych"] << ");\n";
+ }
- if (readCh)
- {
- o << indent(ind) << "switch ((" << input_api.expr_peek_save () << ")) {\n";
- readCh = false;
- }
- else
- {
- o << indent(ind) << "switch (" << mapCodeName["yych"] << ") {\n";
- }
+ if (readCh)
+ {
+ o << indent(ind) << "switch ((" << input_api.expr_peek_save () << ")) {\n";
+ readCh = false;
+ }
+ else
+ {
+ o << indent(ind) << "switch (" << mapCodeName["yych"] << ") {\n";
}
while (t != &sP[0])
}
}
- if (used && !DFlag)
+ if (used)
{
genGoTo(o, newLine ? ind+1 : 1, from, to, readCh);
newLine = true;
t = r;
}
- if (DFlag)
- {
- if (!newLine)
- {
- o << "\n";
- newLine = true;
- }
-
- o << from->label << " -> " << def->label;
- o << " [label=default]\n" ;
- }
- else
- {
- o << indent(ind) << "default:";
- genGoTo(o, 1, from, def, readCh);
- o << indent(ind) << "}\n";
- }
+ o << indent(ind) << "default:";
+ genGoTo(o, 1, from, def, readCh);
+ o << indent(ind) << "}\n";
delete [] sP;
}