views:

96

answers:

3

I am looking for an interpreter for a stack-oriented programming language released under GPL or LGPL license, written in C or Objective-C.

+5  A: 

I'm not certain what you mean by "stack-oriented", but if you mean something like Forth, there are Gforth and bigFORTH available under GPL.

I don't know if you are specifically avoiding public domain code, but if not, there is pForth. I've used pForth myself; it is very easy to get running on whatever kind of system you want, and customize as needed.

Kristopher Johnson
A: 

Can you give us some more information about the importance of the stack?

cPython is available under the Python License, which is much less restrictive than the GPL (but is GPL compatible). The source is all C, and the VM is implemented as a stack-based machine. Here are the bytecode instructions for Python 2.7. There's also Factor (which is really cool!) but it's mostly implemented in Factor, so the bootstrapping process might not suit your needs.

Robert Karl
I am referring to programming languages like Forth, Postscript, which are cataloged as stack-oriented languages from Wikipedia.
kiamlaluno
+1  A: 

The Joy language is implemented in C and has a BSD license, which is more permissive than GPL.

Factor is also under BSD license and its core is implemented in C++.

Development on Joy has pretty much ceased as far as I know, but Factor is being actively developed.

Felixyz