Multiple lex parsers in one program
Roy Smith
roy at alanine.phri.nyu.edu
Mon Dec 25 03:11:18 AEST 1989
Is there a portable way to have multiple lex parsers in a program? I
suppose what it needed is some flag to lex to tell it the name of the routine
it is writing (instead of yylex) and to keep all of its other globals "static
external" so they aren't seen outside of the c source file produced. The
best I can think of with the standard lex is to write some awk script to hack
up the lex output, but that hardly seems portable.
--
Roy Smith, Public Health Research Institute
455 First Avenue, New York, NY 10016
roy at alanine.phri.nyu.edu -OR- {att,philabs,cmcl2,rutgers,hombre}!phri!roy
"My karma ran over my dogma"
More information about the Comp.unix.wizards
mailing list