Fix symbol name for ambiguity nodes

This commit is contained in:
Max Brunsfeld 2015-07-08 17:31:21 -07:00
parent aabcb10cfb
commit f26ddf5187
6 changed files with 10 additions and 6 deletions

View file

@ -342,8 +342,12 @@ class CCodeGenerator {
return "ERROR";
else if (symbol == rules::END_OF_INPUT())
return "END";
else
else if (symbol == rules::DOCUMENT())
return "DOCUMENT";
else if (symbol == rules::AMBIGUITY())
return "AMBIGUITY";
else
return "";
} else {
return rule_name(symbol);
}