PLASMA (language, compiler) for Apple ][
Posted: Mon Mar 05, 2012 8:09 pm
David Schmenk describes the motivation and implementation of his PLASMA language here
It compiles to native 6502, or to threaded code or to interpreted bytecode:
It's broadly C-level, with an 8-bit unsigned byte and 16-bit signed integers. The implementation uses a 32-element scratch space in zero page (as far as I can tell)
Code is on sourceforge and being ported to self-host (re-written in PLASMA) right now.
(via CALL-A.P.P.L.E.)
It compiles to native 6502, or to threaded code or to interpreted bytecode:
Quote:
Functions have optional parameters and always return a value. By using one of three function declarations (def, deft and defn) you can have the function loaded as interpreted bytecode, threaded calls into the interpreter, or natively compiled code
Code is on sourceforge and being ported to self-host (re-written in PLASMA) right now.
(via CALL-A.P.P.L.E.)