[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Drawing the line between speed and simplicity/elegance
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 8 May 2015 10:21:47 +0200
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.