[comp.sys.mac.programmer] Generating parse tables using Bison/Flex

jtn@potomac.ads.com (John T. Nelson) (06/27/90)

Thanks to everyone for your responses concerning my 32 K data segment
problem and Bison/Flex.  A number of you have pointed out that there
is code in Flex that will read the parse tables from a resource file.
This is great for Flex... the problem is that Flex ALWAYS generates C
code parse tables (see the file gen.c) and as near as I can tell there
is no switch that says "generate a resource file."

This is really dumb because it means Flex is smart enough to read
parse tables from resources but it isn't smart enough to generate
parse table resources for applications that NEED these resources
because of the 32K data segment problem.  It's like selling someone a
car in a country without roads.  The car works fine but you just can't
drive it anywhere.

Looks like gen.c and flex.skel will have to be rewritten or am I
overlooking something critical here?