It turns out that venerable parsec's <?> has a synonym labels, which can attach more than one label to an error. This is definitely something I've wanted to do in the past, but I've implemented it as:
This is a bit clumsy, especially when MultiExpectedError does exist for the JumpTable in the machine. Instead, we could just add the varargs onto label and do away with MultiExpectedError.
This can be done in a minor way by introducing def label(name1: String, name2: String, names: String*) I believe, and then the single overloading can be removed as part of parsley 5
It turns out that venerable
parsec
's<?>
has a synonymlabels
, which can attach more than one label to an error. This is definitely something I've wanted to do in the past, but I've implemented it as:This is a bit clumsy, especially when
MultiExpectedError
does exist for theJumpTable
in the machine. Instead, we could just add the varargs ontolabel
and do away withMultiExpectedError
.