[comp.lang.forth] Forth Coding Style

Mitch.Bradley@ENG.SUN.COM (05/21/91)

> Does anyone know of a utility for `literate programming' in FORTH?
>
> tgrind        (and other -grinds) which parses your code, prints comment text
>               in italics, bolds any keywords it can recognize, and generally
>               sticks to your indenting style,

Here's a "vgrindefs" entry for Forth.  Bill Sebok wrote it some years ago.

forth:\
        :pb=\d\:\d\p\d:bb=\d\:\d\p\d:be=\d;\d:\
        :cb=\d\(\d:ce=\d\)\d:sb="\d:se=":tl:oc:\
        :kw=do leave loop \
        case if else then \
        begin while until repeat again \
        variable constant defer:

Mitch.Bradley@Eng.Sun.COM