Treat tokens that are sometimes extra as fragile

This commit is contained in:
Max Brunsfeld 2015-12-16 20:04:45 -08:00
parent d0e107eb84
commit 66144dc28e
11 changed files with 418 additions and 403 deletions

View file

@ -166,9 +166,16 @@ class CCodeGenerator {
add(", ");
if (entry.second.structural)
add(".extra = false");
add(".structural = true");
else
add(".structural = false");
add(", ");
if (syntax_grammar.ubiquitous_tokens.find(symbol) != syntax_grammar.ubiquitous_tokens.end())
add(".extra = true");
else
add(".extra = false");
add("},");
}