CTF Token List



    By Tom Wheeley 

    Portions Tom Lynn 
             Karl Skontorp 
             Magnus Werner 
             Roy Maclean 

Last updated:  23 Jan 1997

Note
====
This is a very rough list at the moment, taken mainly from the ASCII.TOK
file which is part of CaS.  The newest version of ascii.tok can be found at:

  http://www.york.ac.uk/~tw104/download/download.html

or directly at ...download/ascii.tok

I still have not even *seen* a 9850, let alone played on one, so the 9850
section is not as complete as I would want it to be, especially w.r.t. details
such as spaces and capitalisation.  Many thanks to Karl Skontorp anyway for
providing me with the info I do have.


List of preferred tokens
========================

Where the preferred token is inadmissable in a string, an alternative that
is is given in "quotes".

9700 and below tokens
~~~~~~~~~~~~~~~~~~~~~
I have not distinguished between 7700 and 9700 tokens, but this should be
done.  It's only things like the MATRIX and complex operations, iirc.

standard tokens                         description

Symbols
 A to Z                                 upper case letters and variables A-Z
 a to z                                 lower case letters
 \r \th                                 r and theta
 + - * /                                plus minus multiply divide operators
 (-)                                    Unary -
 _ (newline)                            disp triangle thingy
 (newline) or \n                        newline
 ->                                     assignment arrow
 =>                                     `then' arrow used in conditionals
 <= <> >= < = >                         inequality operators
 \f1 to \f6                             function memories f1 - f6
 \A to \F                               hexadecimal numbers 0xA to 0xF
 # $ \% & \* \/ \_ ` { } @              punctuation.  \/ is /
                                        Care should be taken with # and $
                                        as these are also used by the CTF
                                        format.
 ' " ( ) , . ; : ? [ ] ~                various calculator operators. note
                                        that a ; with a space before it is
                                        a comment delimiter!
 Ans                                    Answer memory
 %                                      fraction delimiter
 \exp                                   Exponent
 ^                                      x^y
 \dms \.                                degrees minutes seconds separator
 \pi                                    Pi
 Mcl Rnd Scl Defm                       Control
 \yen                                   Yen symbol
Scientific functions
 sin cos tan                            sin cos tan trig functions
 arcsin arccos arctan                   inverse trig
 sinh cosh tanh                         hyberbolic functions
 arsinh arcosh artanh                   inverse hyperbolics
 ln                                     log base e
 log                                    log base 10
 e^                                     e to the power of
 (10^) "\10^"                           10 to the power of
 \sqrt                                  square root
 \sqr  \^2                              square
 \cbrt                                  cube root
 \rcp \^-1                              reciprocol
 \nrt                                   nth root
 Pol( Rec(                              Polar/rectangular representation
 \sum(                                  sigma
 $dx( \Integrate(                       Integrate
 d/dx(                                  differentiation
 Abs Int Frac Intg                      numerical functions
Probability
 !                                      factorial
 nPr "\perm" nCr "\comb"                Permutations and Combinations
 Ran#                                   random number generator
Display
 Cls Norm Eng Sci Fix                   various functions
 Deg Rad Gra
 (deg) (rad) (grad) (gra)               Deg Rad Grad unit specifier
Graphics
 Plot Line 
 Factor
 Graph Y=                               Graph function
 Graph Y> Y< Y>= Y<= r= X=              various graphs
 Graph (X,Y)=                           parametric graph
 Graph $                                Integral graph
Programming
 Dsz Isz Lbl Goto Prog
Engineering symbols
 \femto                                 femto  *10^-15
 \pico                                  pico   *10^-12
 \nano                                  nano   *10^-9
 \micro                                 micro  *10^-6
 \milli                                 milli  *10^-3
 \kilo                                  kilo   *10^3
 \Mega                                  Mega   *10^6
 \Giga                                  Giga   *10^9
 \Tera                                  Tera   *10^12
 \Peta                                  Peta   *10^15
 \Exa                                   Exa    *10^18
Complex numbers
 \i \j                                  imaginary number \sqrt(-1)
 Det Arg Conjg ReP ImP                  complex no's functions
Matrices
 Mat Trn *Row *Row+ Row+ Swap           Matrix ops
Table
 \a(n) \a(n+1) \a(n+2) \(n) \a(0) \a(1) Table things (useless in Programs?)
Base n
 \A to \F                               hexadecimal numbers
 Dec Hex Bin Oct                        base output specifiers
 \h \o \d \b                            base specifier
 and or xor xnor Neg                    bitwise manipulation
Stats
 \num                                   data count
 \sumx \sumy \sumxy                     statistical sums
 \sumsqrx \sumsqry                      statistical sums of squares
 \xbar \ybar                            x and y means
 \xsd \ysd \xsdpop \ysdpop              standard deviations
 \xo(n) \xo(n-1) \yo(n) \yo(n-1)        replacement for above?
 \regA \yint                            regression Y intercept
 \regB \slope                           regression gradient
 \cor \correlation                      correlation co-efficient r
 \xhat \yhat                            expected values of x and y
 \CL \DT                                statistics data entry
 DTx DTy DTf                            stored stats data accesses
 \P( \Q( \R( \t(                        Normal distribution functions
VAR menu
 Xmin Xmax Xscl Ymin Ymax Yscl          X, Y scales
 Tmin "\tmin"                           t/theta min
 Tmax "\tmax"                           t/theta max
 Sim Coef                               Simultaneous coefficients
 Ply Coef                               Polynomial coefficients
 Sim X (and Y, Z, T, U, V)  \simx       Simultaneous answers
 Ply X1  Ply X2  Ply X3  \plyx1         Polynomial ansers
 F Result \fresult                      VAR F stuff
 F Start \fstart
 F End \fend
 F pitch \fpitch
 R Result \rresult                      VAR R stuff
 R Start \rstart
 R End \rend
 R pitch \rpitch
 \gY \gr \Xt \Yt                        Items on the VAR GRPH menu
9800
 Orange Blue Green                      Colour specifiers (9800+)
 List X \listx                          List stuff (9800+)
 List Y \listy

renaming
~~~~~~~~
Range ViewWindow                        ViewWindow is 9850 Range
Tptch "\tptch"  Tscl "\tscl"            Tscl is 9850 version of tptch
Min Med Max                             9700
MinX  MinY  MaxX MaxY                   Min becomes MinX on 9850

  Not means both boolean and bitwise Not on the 9850, whereas the 9700 did
not have boolean.  Thus bitwise Not is referred to as `not' instead, and `Not'
is boolean.  On 9700, `Not' will be accepted for bitwise not, and is the only
token which will match "Not " in a string.

  There are also many clashes with `not normally enterable' tokens which
exist in the 9700's internal font, but cannot be entered into a program
without using a cable.  I have not documented these here, as the NNE's
are a bit dodgy to have in the standard.  Maybe they shold be documented
in a separate secrtion, with suitable warnings about being unuseable for
people without cables.

To see what tokens can be produced, read ASCII.TOK

9850 specific
~~~~~~~~~~~~~
These are only available on the 9850 and above

standard tokens                         description

Unsorted
 Getkey                                 inkey$ !
 D Start \dstart                        D stuff (9850)
 D End \dend
 D pitch \dpitch
 \a(2) \b(n) \b(n+1) \b(n+2) \b(0)      possibly unavailable table funcs
 \b(1) \b(2) \a(nStart) \b(nStart)    
 Sum Prod Percent
 List
 Cuml
 d2/dx2(                                d 2 by dx squared (double diff.)
 Solve(                                 solves everything?
 Dim Fill                               
 List->Mat(                             
 Mat->List(
 RightXmin \rxmin  (max and scl too)
 RightYmax \rymax  (min and scl too)
 RightTscl "\rtscl"  (min and max too)
 Fmin( Fmax(
 Seq( Min( Mean( Median(
 P/L-Orange \plorange (Green and Blue)  colour of P/L
 Identity( Augment(
 Sim Result \simresult
 Ply Result \plyresult
 If Then Else IfEnd                     (CaS also allows EndIf)
 For To Step Next                       For loop
 While WhileEnd Do LpWhile              (CaS also allows EndWhile)
 Return Break Stop                      stuff
 And Or Not                             boolean stuff
 Locate
 Send( Receive(                         real time comms thing
 ClrText \ctext
 ClrGraph \cgraph
 ClrList \clist
 S-WindAuto \swauto                     various 9850
 S-WindMan \swman
 G-Connect \gcon
 G-Plot \gplot
 BG-None \bgnone
 BG-Pict \bgpict
 VarRange \vrange                       
 StoPict RclPict
 StoV-Win RclV-Win
 Tangent Normal Inverse 
 Vertical Horizontal
 Text Circle
 F-Line
 PlotOn PlotOff PlotChg
 PxlOn PxlOff PxlChg PxlTest
 VarList1 .. VarList6                   varlists
 File1 .. File 6                        files
 GridOff \goff GridOn \gon              various flags
 FuncOn \fon FuncOff \foff
 SimulOn \son SimulOff \soff
 AxesOn \aon AxesOff \aoff
 CoordOn \con CoordOff \coff
 LabelOn \labon LabelOff \laboff
 DerivOn \don DerivOff \doff
 LocusOn \locon LocusOff \locoff
 EdispOn \eon EdispOff \eoff