mitra42 / webForth

Forth for the web - implemented in JS and other web technologies
https://www.mitra.biz/forth/console.html
GNU Affero General Public License v3.0
27 stars 1 forks source link

forth.CODE #66

Closed mitra42 closed 3 years ago

mitra42 commented 3 years ago

I need a mechanism to define a code extension to Forth, possible syntaxes

This is needed by #34 (I/O from files)

mitra42 commented 3 years ago

Done .... for example can add a forth word "ramSP" that pushes the value of that field by ...

forth.addExtension({ n: "ramSP", function f() { this.SPpush(this.ramSP); } })