Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!csd4.milw.wisc.edu!bionet!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ndosl!fdmetd!steinar From: steinar@fdmetd.uucp (Steinar Overbeck Cook) Newsgroups: comp.unix.questions Subject: Re: VI/NROFF symbolics question Summary: Lex program for handling '.se' Message-ID: <342@fdmetd.uucp> Date: 30 Jan 89 11:20:17 GMT References: <108@mdiva1.uucp> <418@elan.UUCP> <889@auspex.UUCP> Organization: Fellesdata a.s, Oslo, Norway Lines: 33 In article <889@auspex.UUCP>, guy@auspex.UUCP (Guy Harris) writes: > > >> I am a IBM SCRIPT and GGML user. I need to know how to > >> do a symbolic reference in VI and NROFF. (i.e. I want to > >> be able to define a table of symbolic strings and their > > .set variable "FOO" to "Hi, mom!" > I have written a package which takes IBM SCRIPT/VS (with GML's) and converts it into [n/t]roff commands. As a part of this package I have used Lex to write a filter which will handle the SCRIPT command : .se myvar='My variable' and every time the macro '&myvar.' is used in the text, will expand it into 'My variable'. The program is very simple and straightforward, mail me if you would like a copy of it. ------------------- Steinar Overbeck Cook Fellesdata a.s P.O. Box 248 0212 OSLO 2 NORWAY Phone : +47 2 52 80 80 Fax : +47 2 52 85 10 E-mail : ...!mcvax!ndosl!fdmetd!steinar or steinar@fdmetd.uucp