Any help would be greatly appreciated.
I am constructing a compiler for a sub set of c++, which needs to be able to read floats and integers. Trouble is i am only reading in a character at a time and i am struggling designing a sub program to correctly parse the full number.the lexical tokens are held in a struct, containing a tag of enums for what type it is eg. INTDATA,FLOATDATA,STRINGDATA etc and a float, int and string variables.
Thanks if anyone has any ideas.