Class ShuntingYardConverter


  • public class ShuntingYardConverter
    extends java.lang.Object
    The shunting yard algorithm can be used to convert a mathematical expression from an infix notation into either a postfix notation (RPN, reverse polish notation), or into an abstract syntax tree (AST).

    Here it is used to parse and convert a list of already parsed expression tokens into an AST.

    See Also:
    Shunting yard algorithm, Abstract syntax tree