Thanks for "lex" wizardry

Glenn Reid greid at ondine
Tue Mar 8 07:15:38 AEST 1988


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 at voder (Jeff Gilliam)
    dean at devvax.Jpl.Nasa.Gov (Dean Okamura)
    dce at mips.COM (David Elliott)
    mason at 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 at 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



More information about the Comp.unix.wizards mailing list