----- Original Message ----
From: Ian Langworth <[EMAIL PROTECTED]>
> When you say "any message after these words," does that include words
> on subsequent lines?
>
> If it does, there isn't much parsing left to do -- the rest of the
> tokens in the stream get treated as a big diagnostic blob.
That's unclear from the spec, but the current behavior makes this unreliable:
TAPx-Parser $ perl -MTest::More=no_plan -e 'BAIL_OUT("One\nTwo")'
Bail out! One
# Two
Subsequent lines are comments and I have no way of knowing which is which.
> If it doesn't, the easiest thing to do would be to stop the parser and
> complain. It would be really cool, as well as more work, if the parser
> parsed the rest of the TAP. The latter would allow your parser to find
> more than one error in the TAP. (Imagine the parser finding _two_
> "Bail out!" lines.)
I think I will make this configurable so that you can continue after a "Bail
out!", if explicitly requested, though if someone really meant to bail out, the
rest of the data would be questionable, though if we're just checking TAP for
validity, I can see your point.
Cheers,
Ovid