Close

Experiments with VOC namespaces in STM8 eForth

A project log for eForth for cheap STM8S gadgets

Turn cheap modules from AliExpress into interactive development kits!

thomasThomas 12/09/2017 at 07:460 Comments

Mr. Mahlow, a senior Forth expert, already did a lot for turning the tiny STM8 eForth into a powerful programming tool by supporting it in his embedded Forth terminal e4thcom. Now he's porting the innovative "VOC context switch" (i.e. Forth a namespace extension) to STM8 eForth. An article on Forth namespaces in German is here.

The essence is that with namespaces working with libraries is much easier. For instance, he provided an I2C library that uses the VOC name I2C as a prefix (e.g. "I2C init", "I2C start"). It's also possible to list the words in that namespace with "I2C WORDS".

Some of the implementation details are still being worked on. Most likely it will be provided as a loadable extension to STM8 eForth.

Discussions