changeset 386 | e2170c91a9f2 |
parent 384 | 6e1237691307 |
385:44383203970f | 386:e2170c91a9f2 |
---|---|
1 // Shunting Yard Algorithm |
1 // Shunting Yard Algorithm |
2 // by Edsger Dijkstra |
2 // by Edsger Dijkstra |
3 // ======================== |
3 // ======================== |
4 |
4 |
5 object CW9a { |
5 object CW8a { |
6 |
6 |
7 type Toks = List[String] |
7 type Toks = List[String] |
8 |
8 |
9 // the operations in the simple version |
9 // the operations in the simple version |
10 val ops = List("+", "-", "*", "/") |
10 val ops = List("+", "-", "*", "/") |