Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!agate!ucbvax!ENG.SUN.COM!Mitch.Bradley From: Mitch.Bradley@ENG.SUN.COM Newsgroups: comp.lang.forth Subject: Forth Coding Style Message-ID: <9105211730.AA00789@ucbvax.Berkeley.EDU> Date: 21 May 91 16:26:58 GMT Article-I.D.: ucbvax.9105211730.AA00789 Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Mitch.Bradley%ENG.SUN.COM@SCFVM.GSFC.NASA.GOV Organization: The Internet Lines: 17 > 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