Treat tokens that are sometimes extra as fragile
This commit is contained in:
parent
d0e107eb84
commit
66144dc28e
11 changed files with 418 additions and 403 deletions
|
|
@ -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("},");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue