Version: 4.0.2.5

3 Prefix Macros

FIXME: Factor out instantiation in Scheme, then write the prefix Forth syntax on top of that.

Coma is a non-reflective meta language: it processes stack machine code only. In order to be able to abstract over names of macros, a different mechanism is necessary. In Staapl this mechanism is called prefix macros, and it is implemented as a preprocessing step defined in terms of a number of primitive special forms based on Forth’s parsing words. The primitive prefix forms are create : forth macro require load path.