I probably should just say what i am doing to clear things up.
this'll be log, so please be patient
See,im writing an interpreter. Okay...Not really, but it only interprets expressions. like you would give it
and it would yield
if your thinking python, thats where i got the idea;)
now one of the things i wanted to do with it is to make it more like real arithmetic syntax, by the use of coefficents. For those who dont know what this is, well i cant express it in words but i can show it
^--the 2 is a coefficient of y, which evauluated would be 2*y.
as well as the algebraic syntax of what would be multipication
ab=a*b; adb=a*d*b; 3(3+2)=3*(3+2);
well, there was one problem. see, i included the feature of variable being put together, and in the program, it would multiply them,
but that puts forth a problem in parsing. i cant know when a variable name ends or when it begins.
could be h*ello or he*llo etc.
Then i thought of using capitals for the beginning of variables, like this:
He and Llo.
but it seems so tedious to the user, so it though i could just use one letter variables, but that limits it to 52 variables only. There is another option, to look at every character in a thought of idetifier. and every new character as we go along and compare it with the already stored variables, but thats to much processing.
Tell me which to do. or give any other sugestions. thats all. thank you.