Representation of a forth word's header in the dictionary. More...
Public Types | |
| enum | WordFlags { Token = 1<<5, Immediate = 1<<6, Valid = 1<<7 } |
Public Member Functions | |
| CELL * | CFA () |
Public Attributes | |
| CELL | Previous |
| CHAR | NameLength |
| CHAR | Name [1] |
Representation of a forth word's header in the dictionary.
Definition at line 152 of file forth.cpp.
Bit flags representing the type of a word definition. The flags are present in NameLength.
| CELL* WordHeader::CFA | ( | ) |
Link to the previous word in the wordlist, this is an address offset from 'this'. E.g. to get a pointer to the previous word:
WordHeader* word = a_word; WordHeader* previous_word = (WordHeader*)((CELL)a_word+Previous);
If Previous equals zero then the end of the wordlist has been reached and the this header isn't associated with a word definition.
Length of the word's name. This also includes flag values from WordFlags. To mask out these flags, AND the value with NameLengthMask.
1.6.1