(symbol_new): Report an error if the input grammar contains too many

symbols.
This commit is contained in:
Paul Eggert committed 2004-12-16 00:08:21 +00:00
1 parent 735d6bd42e
commit 3239db74b1
1 file changed
+3
+3
View File
@@ -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;
}