The ?PAIRS word



Bonjour to all,

In the archive of the group, I found the word "?PAIRS"
as in

: ENDCASE 4 ?PAIRS COMPILE DROP
BEGIN SP@ CSP @ = 0=
WHILE 2 [COMPILE ENDIF REPEAT
CSP ! ; IMMEDIATE

According the FAQ, the ?PAIRS word was FIG-Forth's way of implementing a
small amount of syntax checking.

Is "Number ?PAIRS" similar to ... over <> if (error message) then ...;

Thanks for the help.


.



Relevant Pages

  • Re: The ?PAIRS word
    ... ENDCASE 4 ?PAIRS COMPILE DROP ... CSP! ... The trouble came with the word PAIRS in english and PAIRS in french ...
    (comp.lang.forth)
  • Re: The ?PAIRS word
    ... ENDCASE 4 ?PAIRS COMPILE DROP ... CSP! ... Albert van der Horst, UTRECHT,THE NETHERLANDS ...
    (comp.lang.forth)