Reference · Control

Control

16 words. Sorted alphabetically.

:
  • ()

Begin a word definition. : name ... ;

."
  • ()

Print a string literal to the debug sink.

(
  • ()

Comment. ( text ) — ignored by the interpreter.

<<
  • ()

Begin a lambda literal. << ... >>

BEGIN
  • ()

Begin a WHILE or UNTIL loop.

DEPARSE
  • ( any )

Push the RPN source string that recreates TOS.

EVAL
  • ( string )
  • ( progn )
  • ( frac:fraction -- value:number )
  • ( mathexpr )
  • ( mathexpr object )

Evaluate a fraction to its double value.

EXEC
  • ( any )

Execute the lambda on TOS.

FOR
  • ( double double )

Counted loop. start end FOR var ... NEXT (step 1) or start end FOR var ... step STEP (step from TOS each iteration).

IF
  • ()

Conditional. cond IF ... THEN ... ELSE ... END — branches on boolean TOS.

PURGE
  • ( any )

Delete the variable named by TOS.

RCL
  • ( any )

Recall a variable by name. 'name' RCL — also triggered by bare name evaluation.

STO
  • ( any any )

Store a value into a named variable. value 'name' STO

TRACE
  • ( boolean )

Enable or disable execution tracing (boolean on TOS).

VARS
  • ()

Push an array of all currently defined variable names.

WORDLIST
  • ()

Push an array of all defined word names.

Contact

Send us a message — we'll reply by email.