I'm doing a mathematical expressions parser that parses text into an abstract syntax tree (and I don't know much about doing so).
I've read on Wikipedia that one can use the Shunting-yard algorithm to parse a linear sequence of tokens into Reverse Polish notation or into an AST on itself, but I was not able to find any examples of direct infix-to-AST parsing with Shunting-yard.
Right now I'm using Shunting-yard to convert from infix to postfix notation and then using such output to build an AST.
Is it good practice to convert the expression to postfix notation and then build an AST from it or am I being a bit clumsy?