[comp.unix.wizards] Thanks for "lex" wizardry

greid@ondine (Glenn Reid) (03/08/88)

Many thanks to all of you who responded to my "lex" query:

    Jeff Okamoto <decwrl!hplabs!hpccc!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 <sgi!ames!ames-nas.arpa!hahn>
    sun!ucsd.edu!darrell@cs (Darrell Long)
    sun!rtech!weevil!bobm (Bob McQueer)
    Jeff Lo <sgi!ames!elan!jlo>
    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