On Sun, Feb 25, 2024 at 09:00:55PM +0100, Patrice Dumas wrote: > On Sun, Feb 25, 2024 at 07:43:42PM +0000, Gavin Smith wrote: > > It appears that there was no effort made to reset the counters at all. > > If a parser run finished with one of the counters active, it would > > remain active for the next run. > > Shouldn't there be an error message for the counters that should be > reset 'naturally' by virtue of closing commands/stacks, resetting them > unconditionnaly could hide some bugs maybe?
Yes, it would normally be the case that all counters are empty by the time the parser finishes running. Otherwise it could be a sign of a bug, or of malformed input.