lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2015-05-08 9:46 GMT+02:00 Brigham Toskin <brighamtoskin@gmail.com>:

> if you're writing a forth-like language, in lua

Why can't you simply use the C API stack? I.e. write in C a routine that to
Lua looks like

ret1, ret2, ... = forth(program,dictionary,...)

"program" is a list of words from the dictionary, for instance obtained
from split(str) using Microlight's split, "dictionary" has triples
{func,nargin,nargout} as values.