Dave Hansen wrote:
> On Sun, 02 Apr 2006 05:29:40 GMT in comp.arch.embedded, "Gary Pace"
> <> wrote:
>
> >Howdy Y'all :
> >I am designing an embedded controller that needs an application programming
> >ability.
> [...]
> >Now I don't want to write a BASIC interpreter myself, so does anybody know
> >of an interpreter written in C that I can include in my source, point at its
> >code-to-run (pre-compiled to a byte code offline ideally), point at its
> >memory for stacks, heaps etc and provide its API's for assigning to/getting
> >the value of "Controller Variable N"
>
> I don't know about BASIC, but you might want to look at Lua. It's
> designed to be an embedded scripting language, and has a very easy to
> understand syntax and a favorable license. www.lua.org
>
> Regards,
> -=Dave
>
> --
> Change is inevitable, progress is not.
There's always tiny basic (I'm a bit amazed that I can still remember
buying the issue of Dr Dobbs it was published in).
There was a recent article in Dr Dobbs (Jan 2006?) by the guy who wrote
the original, he has his own web site at:
http://www.ittybittycomputers.com/IttyBitty/TinyBasic/
and here's another version written in C:
http://www.ddj.com/documents/s=10032...01b/0601b.html
It looks like less than 1000 lines of code. How hard could it be to get
working :-)
Not sure what the copyright arrangements are for either of these, and I
have never used either. But they look interesting.
Post something back to the group if these ore something else you find
works for you.
Mark