I understand how multiple possible tokens could be expected, but I struggle to understand what a set of unexpected tokens means.
In my own code, this set is always empty or singleton. If this covers all the cases, then perhaps it should be Maybe instead of Set?
Or, if the intention is that the multiple consecutive tokens are unexpected, shouldn't it be a list?
I understand how multiple possible tokens could be expected, but I struggle to understand what a set of unexpected tokens means.
In my own code, this set is always empty or singleton. If this covers all the cases, then perhaps it should be
Maybeinstead ofSet?Or, if the intention is that the multiple consecutive tokens are unexpected, shouldn't it be a list?