Use all caps for built-in symbol names
This commit is contained in:
parent
d5ce3a9b5a
commit
44774119bf
5 changed files with 10 additions and 10 deletions
|
|
@ -328,9 +328,9 @@ class CCodeGenerator {
|
|||
string symbol_name(const rules::Symbol &symbol) {
|
||||
if (symbol.is_built_in()) {
|
||||
if (symbol == rules::ERROR())
|
||||
return "error";
|
||||
return "ERROR";
|
||||
else if (symbol == rules::END_OF_INPUT())
|
||||
return "end";
|
||||
return "END";
|
||||
else
|
||||
return "DOCUMENT";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue