iansjack wrote:
Of course the answer is ("clearly") that this message is just something you typed (and made a mistake in doing so)
You're absolutely right, and thank you for
reviewing my code. Actually the original assertion was:
Code:
assert that the rider's token is "repeat" or that the rider's token is "break" or that the rider's token is "return" with "This is only a test since the rider's token is actually '" and then the rider's token and then "'!";
To test the code which generates the assertions I changed the assertion to
Code:
assert that the rider's token is "repeat" or that the rider's token is not "break" or that the rider's token is "return" with "This is only a test since the rider's token is actually '" and then the rider's token and then "'!";
then I copied the command line window error message for this post. I then
edited the assertion and the error message to put the "break" as the first decider for emphasis (so that it wouldn't get lost inside the
or's and as you have so correctly pointed out I made a
typo and left the
not before the "repeat". the original error message was in fact:
Code:
The assertion that 'the rider's token is "repeat" or that the rider's token is not "break" or that the rider 's token is "return"' FAILED
in the file 'statement.ideom' at line 241
in the routine 'compile the next statement with a rider {single}'
This is only a test since the rider's token is actually 'break'!
Thanks for pointing out the typo that I made in the original post.
PS. There is a compiler writer's technical typo in there.