toka.nbk: Home | Index | Next Page: Lesson 0 | Previous Page: Installation


 interpret.c

Use

The interpreter itself.

Functions Provided

Variables:
  long compiler
  When set to 0, interpret; when set to -1, 
  compile. This is checked by the various word
  classes defined in class.c

  char *scratch
  Temporary holding area used by the parser and
  other routines.

  char *tib
  Pointer to the text input buffer.

count()
Perform strlen() on the string passed on TOS. This
returns the string and the count on the stack. The
count is increased by 1 to include the trailing 
ASCII 0.

interpret()
Accept and process input.

Primitives Provided

compiler
count

toka.nbk: Home | Index | Next Page: Lesson 0 | Previous Page: Installation


Notebook exported on Sunday, 1 July 2007, 19:54:43 PM EDT