pforth  0943e5e71114f286dbb2474d55aabf91df02d104
_pforth_word Struct Reference

#include <pforth.h>

Data Fields

char * text_code
 
uint8_t size
 
union {
   void *   location
 
   word_function   function
 
}; 
 

Detailed Description

The single FORTH word description

Field Documentation

union { ... }
word_function _pforth_word::function

Function to call when compiling the word

void* _pforth_word::location

Binary location to jump to. NULL if not compiled

uint8_t _pforth_word::size

Code size (for binary code in location/function)

char* _pforth_word::text_code

ASCII representation of word.

The actual program. NULL for native words.

If text_code[0] is 0x01 the word is variable. In this case: text_code[1] is flag register: |76543210| | AC|

C - Constant. The data can not change. A - Array. The data is pointer to actual array.

location is the value (or memory region if Array bit is set)


The documentation for this struct was generated from the following file: