Application Algorithms
Application Algorithms
Step 5: If the scanned character is an ‘)’or ‘]’ or ‘}’, pop the stack and
output it until a ‘(‘ or ‘[‘ or ‘{‘ respectively is encountered, and
.discard both the parenthesis
.Step 6: Repeat steps 2-6 until infix expression is scanned
.Step 8: Pop and output from the stack until it is not empty