item_number *rhsp;
xml_printf (out, level + 2,
- "<terminal type=\"%d\" symbol=\"%s\">",
- i, xml_escape (tag));
+ "<terminal symbol-number=\"%d\" token-number=\"%d\""
+ " name=\"%s\">",
+ token_translations[i], i, xml_escape (tag));
for (r = 0; r < nrules; r++)
for (rhsp = rules[r].rhs; *rhsp >= 0; rhsp++)
}
xml_printf (out, level + 2,
- "<nonterminal type=\"%d\" symbol=\"%s\">",
+ "<nonterminal symbol-number=\"%d\" name=\"%s\">",
i, xml_escape (tag));
if (left_count > 0)