From: Michael D. Lowis Date: Tue, 29 Apr 2014 23:32:35 +0000 (-0400) Subject: Added a typedef for dictionary definitions X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=26c27194d8ad1d484044717d447c508815cdac73;p=proto%2Fsclpl.git Added a typedef for dictionary definitions --- diff --git a/source/slvm/slvm.h b/source/slvm/slvm.h index a9300cf..f56399c 100644 --- a/source/slvm/slvm.h +++ b/source/slvm/slvm.h @@ -77,6 +77,14 @@ typedef struct word_t { val_t* code; } word_t; +/** This structure defines a dictionary of defined words. */ +typedef struct dict_t { + /** Pointer to the previously loaded dictionary */ + struct dict_t* link; + /** Pointer to the most recently defined word in this dictionary */ + word_t* words; +} dict_t; + /** Execute a built-in word directly */ #define EXEC(word) (word).codeword((word).code)