[OpenBIOS] Help with creating a word

Programmingkid programmingkidx at gmail.com
Tue May 25 22:02:48 CEST 2010


I need to make a word that can define another word. What I have tried is take the definition of the ':' and ';' words and do something like this:

: createWord

" MyWord" header 1 , ]   ." hello from MyWord!"  ( lit ) h# b7db9018  , reveal ( lit ) h# b7db9950  execute

;

This doesn't work either:

: createWord

: MyWord   ." hello from MyWord!"  ;

;


Anyone know how to define a word from within another word?


More information about the OpenBIOS mailing list