pre_marking3/postfix.scala
changeset 386 69f36c98808b
parent 384 627a944c744b
equal deleted inserted replaced
385:1ff267cae316 386:69f36c98808b
     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("+", "-", "*", "/")