![]() If you want to learn more about all of this, then a course in compiler construction is what you would take. That is it in a nutshell as to how you would go about solving your problem. The GetNextToken() is what you needed to work on for your program to come close to working. ![]() Int eval(char *postf)Something like that. Void push(char ch) // function to push an element in the stack Int eval(char *postf) // evaluation of postfixĬhar pop() //function to pop the element from the stackĬhar topelement() // function to return top element from the stack without popping ![]() Void push(char ch) // pushes an element into the stack Int precedence(char ch) // function to get the precedence of the operatorĬhar pop() //function to pop an element from the stackĬhar topelement() // returns the top element of the stack ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |