On Fri Mar 22 21:12:59 2024 +0000, Zebediah Figura wrote:
You could probably avoid the duplication with a separate "%empty | [int]" rule. Or alternatively use "arrays" and add an explicit check for count > 1. Is C_INTEGER correct here, or should we allow compile-time constants?
It is correct. We should check for negative values only. Constant evaluated expressions are not allowed.