Is there an interpreter for a stack-oriented programming language available under LGPL / GPL license? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
开发者_开发技巧 Improve this questionI am looking for an interpreter for a stack-oriented programming language released under GPL or LGPL license, written in C or Objective-C.
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.
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.
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.
精彩评论