|Ambiguous Types in Flex, how to handle? firstname.lastname@example.org (2003-01-17)|
|From:||email@example.com (Randall Fox)|
|Date:||17 Jan 2003 20:10:48 -0500|
|Posted-Date:||17 Jan 2003 20:10:47 EST|
Using FLEX/BISON, I'm building a small database program that will
handle a small subset of SQL.
My Database handles two types, FLOAT and DOLLAR.
How should I handle the ambiguous "1.23" which can be interpreted by
flex as a DOLLAR and a FLOAT (FLOAT will be IEEE, and DOLLAR will be a
64 bit int with a fixed, or implied, decimal place)??
As it stands, flex can't make the determination, but at what point in
the process should the determination be made? In the grammar? or in
my program when I am working with the AST that BISON creates?
I guess I am looking for advice from the experienced..
[Probably in the AST, since you may be doing other optimizations there
as well. -John]
Return to the
Search the comp.compilers archives again.