Im not sure if this was too much of an advanced request, but no one is answering in the other forum, so Ill try my luck here. http://www.javaranch.com/ubb/Forum38/HTML/000313.html
Anyway, I keep trugging along slowly but surely. Here is my next question.
How would you use replace the lexer in the code below using StringTokenizer so I can parse words and numbers. The way it is now, it is only capable of parsing 1 letter and 1 digit expressions with no spaces in between. I am trying to make it grow and more flexible, but i keep "breaking" the software. Right now it will do this just fine:
Please enter your expression --> a=p*3+b/c- The postfix form is a p 3 * b c / + o - =
The next step is to have it do this
The postfix form is apple pear 354 * banana 879 / + orange - =
The file read in will contain the text:
apple = pear * 354 + banana / 879 - orange
Please help, Thanks in advance.
The compiler.java file is located at: http://members.nbci.com/acidmaxx/Compiler/compiler.java.html
Thanks again, and Happy Easter.