SPIN code Syntax Symbols repeated ie. [][] and %% ?
Rotary Encoder v1.0
PUB ReadDelta(EncID): DeltaPos ''Read delta position (relative position value since last time read) of EncID. DeltaPos := 0 + -(EncID < TotDelta) * -long[noparse][[/noparse]Pos][noparse][[/noparse]TotEnc+EncID] + (long[noparse][[/noparse]Pos][noparse][[/noparse]TotEnc+EncID] := long[noparse][[/noparse]Pos][noparse][[/noparse]EncID])
I dont understand the use of ·" [noparse][[/noparse] ] [noparse][[/noparse] ] " what is this a 2D array ?
I have also seen···%%0123 where each digit is 2 bits compared to %01 binary,· {VGA TEXT, palette·byte·%%333,%%001·'white / dark blue }
and·I supose that %%%01234567 woud be "octal"
and·I supose that·%%%%···········would be "hexadecimal", just like $ is.
What is the english word for the 2bit digit system ?
How many other things can be repeated like this and give unanticipated functionality ?
Phillip Y.
Comments
%1010101 is binary.
%%0123 is double-binary.
$FFFF is hex.
There are no other uses of % or $.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
I searched for ][noparse][[/noparse] and found 17 in chapter 4: Spin Language Reference, 0 for %% .
Phillip Y.