pre_marking3/postfix2.scala
changeset 386 e2170c91a9f2
parent 384 6e1237691307
equal deleted inserted replaced
385:44383203970f 386:e2170c91a9f2
     1 // Shunting Yard Algorithm 
     1 // Shunting Yard Algorithm 
     2 // including Associativity for Operators 
     2 // including Associativity for Operators 
     3 // =====================================
     3 // =====================================
     4 
     4 
     5 object CW9b { 
     5 object CW8b { 
     6 
     6 
     7 // type of tokens
     7 // type of tokens
     8 type Toks = List[String]
     8 type Toks = List[String]
     9 
     9 
    10 // helper function for splitting strings into tokens
    10 // helper function for splitting strings into tokens