Shunting-yard algorithm

Shunting-yard algorithm

Jesse Russell Ronald Cohn

     

бумажная книга



ISBN: 978-5-5082-3552-9

High Quality Content by WIKIPEDIA articles! In computer science, the shunting-yard algorithm is a method for parsing mathematical expressions specified in infix notation. It can be used to produce output in Reverse Polish notation (RPN) or as an abstract syntax tree (AST). The algorithm was invented by Edsger Dijkstra and named the "shunting yard" algorithm because its operation resembles that of a railroad shunting yard. Dijkstra first described the Shunting Yard Algorithm in Mathematisch Centrum report MR 34/61.