6.1.0560 >IN to-in CORE
a-addr is the address of a cell containing the offset in characters from the start of the input buffer to the start of the parse area.
Testing:
: RESCAN? -1 SCANS +! SCANS @ IF 0 >IN ! THEN ;
T{ 2 SCANS !
345 RESCAN?
-> 345 345 }T
: GS2 5 SCANS ! S" 123 RESCAN?" EVALUATE ;
T{ GS2 -> 123 123 123 123 123 }T
\ These tests must start on a new line
DECIMAL
T{ 123456 DEPTH OVER 9 < 35 AND + 3 + >IN !
-> 123456 23456 3456 456 56 6 }T
T{ 14145 8115 ?DUP 0= 34 AND >IN +! TUCK MOD 14 >IN ! GCD calculation
-> 15 }T
ContributeContributions
mcondron
[102] Environment dependence of test casesRequest for clarification2019-08-03 12:56:27
The last two tests seem to depend on a 32-bit cell width.
ruv
[110] Etymology of ">IN" nameRequest for clarification2019-08-26 12:25:27
What do >
and IN
mean in the >IN
name?
For comparison, in other names the greater-than sign apparently has the following meaning (when it does not mean greater-than).
In the words like >R
and R>
— >
means data moving direction, and R
means the returns stack.
In the words like >NUMBER
, D>S
or >BODY
— >
means conversion, and a word after the sign is a hint for the target value.