mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-27 09:55:41 +00:00
(symbol_new): Report an error if the input grammar contains too many
symbols.
This commit is contained in:
1 parent
735d6bd42e
commit
3239db74b1
1 file changed
+3
@@ -66,6 +66,9 @@ symbol_new (uniqstr tag, location loc)
|
||||
res->alias = NULL;
|
||||
res->class = unknown_sym;
|
||||
|
||||
if (nsyms == SYMBOL_NUMBER_MAXIMUM)
|
||||
fatal (_("too many symbols in input grammar (limit is %d)"),
|
||||
SYMBOL_NUMBER_MAXIMUM);
|
||||
nsyms++;
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user