You may find many many examples of infix to postfix converters just
Googling for[
^].
However, if you are really interested in the argument, then I suggest you reading a good book on compiler construction, like, for instance, the
"Dragon Book"[
^].