Forth - Forth virtual machine

ANS forth virtual machine. More...

Collaboration diagram for Forth - Forth virtual machine:

Classes

class  ForthIo
 Abstract interfrace class for forth character i/o. More...
class  Forth
 Public interface to the forth virtual machine. More...

Modules

 Internal - Internal implementation of the forth virtual machine
 Test - Test code for forth virtual machine

Defines

#define BITS_PER_CHAR   8
#define CHARS_PER_CELL   4

Typedefs

typedef int32_t CELL
typedef uint32_t UCELL
typedef uint8_t CHAR

Detailed Description

ANS forth virtual machine.

This is a 'token threaded' implementation which contains the ANS Core words plus a few extra words from other word sets. It doesn't make use of any C library functions, and so should compile to stand-alone code suitable for embedding in other programs.

Version:
2005-12-27
  • Fixed various bugs in Forth virtual machine which manifested when sizeof(CELL) was greater than sizeof(CELL*).
2006-05-20
  • Changed code to use standard typedefs, e.g. replaced uint8 with uint8_t, and made use of size_t.

Define Documentation

#define BITS_PER_CHAR   8

Number of bits in a CHAR

Definition at line 77 of file forth.h.

#define CHARS_PER_CELL   4

Number of CHARs in a CELL

Definition at line 82 of file forth.h.


Typedef Documentation

typedef int32_t CELL

A type representing a forth cell type. If this typedef is changed then CHARS_PER_CELL must be updated.

Definition at line 58 of file forth.h.

typedef uint32_t UCELL

A type representing a forth unsigned cell type. This mus have the same size as CELL.

Definition at line 66 of file forth.h.

typedef uint8_t CHAR

A type representing a forth char type. If this typedef is changed then BITS_PER_CHAR and CHARS_PER_CELL must be updated.

Definition at line 72 of file forth.h.


Generated by  doxygen 1.6.1