|how to support floating point in a C interpreter email@example.com (Jean-Christophe Plouvier) (1991-08-29)|
|From:||Jean-Christophe Plouvier <firstname.lastname@example.org>|
|Keywords:||C, question, interpreter|
|Date:||Thu, 29 Aug 91 13:46:02 EDT|
I found in the literature source code for a simple C interpreter. Now I want
to extend the data type from int,char to float, arrays, structures....but
let's focus on floating points. I think I should use a C++ class (token)
handling the token type, the token name and value under an anonymous union
etc.. with some with some functions... also I do not know how to deal with
expression evaluation*,+,-.. when mixing different data types: should I over;
overload operators.??.. To be honnest, I am LOST! and need help.
I am programming in C/C++ zortech on PC. I am not a CS specialist therefore I
would appreciate your help in any form: lines of code, references..
Thank you in advance
Please respond to email@example.com
or firstname.lastname@example.org or email@example.com.
Return to the
Search the comp.compilers archives again.