S: Stack
while(more tokens)
{
x<-next token;
if(x is an operand)
print x
else
{
while(precedence(x) <= precedence(top(s))
print(pop(s))
push(s,x)
}
}
while(!empty(s))
print(pop(s));
Written by: Fabianski Benjamin
Copyright © 2026 eLLeNow.com All Rights Reserved.