Path: utzoo!mnetor!uunet!husc6!think!ames!amdcad!decwrl!adobe!ondine!greid From: greid@ondine (Glenn Reid) Newsgroups: comp.unix.wizards Subject: Thanks for "lex" wizardry Message-ID: <3684@adobe.COM> Date: 7 Mar 88 21:15:38 GMT Sender: nobody@adobe.COM Reply-To: greid@.UUCP (Glenn Reid) Organization: Adobe Systems Incorporated, Mountain View Lines: 30 Many thanks to all of you who responded to my "lex" query: Jeff Okamoto decwrl!sgi.sgi.com!ames!ucsd!sdcc13.UCSD.EDU!zz1ra (Rick Accurso) decwrl!lll-lcc!uunet!ericg (Eric Griswold) jeff@voder (Jeff Gilliam) dean@devvax.Jpl.Nasa.Gov (Dean Okamura) dce@mips.COM (David Elliott) mason@polya.stanford.edu decwrl!hplabs!ardent!worley (John Worley) decwrl!lll-lcc!lll-crg!bowles (Jeff Bowles) Jonathan Hahn sun!ucsd.edu!darrell@cs (Darrell Long) sun!rtech!weevil!bobm (Bob McQueer) Jeff Lo decwrl!sci!billa (Bill Ames) The solution to the problem was, as most of you pointed out, merely to supply my own "main()" procedure, which needed to call "yylex()" in addition to whatever else I wanted it to do. This worked splendidly. If only the documentation had made that a little clearer.... I am writing a program formatter for PostScript language syntax, which I will post to comp.sources.unix eventually. Thanks for all your help. If you're interested in the lex grammar, I'm happy to mail you a copy. I was tempted to include it here, but I bet nobody will read it, and it would be a waste of bandwidth. Cheers, Glenn