Re: Ambiguous Types in Flex, how to handle?

Jul 11, 2003 0 Replies

what is AST


On 17 Jan 2003 20:10:48 -0500, Randall Fox wrote in article :Hello.




>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..
>
>Thank you
>
>Randall Fox
>[Probably in the AST, since you may be doing other optimizations there
>as well. -John]
>

____________________________________ posted via

formatting link

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required