Liste des Groupes |
On Wed, 31 Jul 2024 9:08:43 +0000, Gerry Jackson wrote:When we want to apply a parsing word to a calculated string, we can use "execute-parsing" (that can be defined in a standard way [1]). For a not parsing "to", this standard-compliant method will fail.
[..]111 value x x . 111 ok[..]
222 to cr .( Does TO parse? ) x x 222 = [if] .( No it doesn't!) [then]
Does TO parse? No it doesn't! ok
As does iForth.
You could argue that it's not a standard program because it contains a222 TO cr
deliberate ambiguous condition so a parsing TO would fail in some way
but it does demonstrate non-compliant behaviour.
should (I hope!) produce an exception (unless CR is redefined),
so this *definitely* fails and doesn't even finish the test.
I'm not sure that you can use a buggy program to test for an ambiguous
condition (looks like a top job for an eager lawyer). It would be
much better if the anomaly can be shown with a valid program.
Les messages affichés proviennent d'usenet.