toka.nbk: Home | Index | Next Page: cmdline.c | Previous Page: CaseLibrary


 class.c

Use

This is where the WordClasses are implemented. It does not export any functions directly to Toka.

Functions Provided

forth_class()
If compiling, compile the xt into the current
quote. If interpreting, call the word.

macro_class()
Always call the word

data_class()
If compiling, compile a call to lit() and then
inline TOS into the following location. Otherwise
leave TOS alone.

quote_macro_class()
Always invoke the quote.

quote_class()
Handler for quotes; this takes two cells, one
which is a call to this function, the other is
the pointer to the quote to invoke.

quote_forth_class()
Perform data_class() semantics, then, if 
compiling, compile a call to invoke(). Otherwise,
invoke() is called with the xt on TOS.

Primitives Provided

None


toka.nbk: Home | Index | Next Page: cmdline.c | Previous Page: CaseLibrary


Notebook exported on Sunday, 1 July 2007, 19:54:43 PM EDT