出典:Wiktionary
出典:『Wiktionary』 (2026/09/20 19:19 UTC 版)
the shunting-yard algorithm
出典:Wikipedia
出典:『Wikipedia』 (2011/05/31 08:35 UTC 版)
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-35.