pre_marking3/postfix2.scala
changeset 386 69f36c98808b
parent 384 627a944c744b
equal deleted inserted replaced
385:1ff267cae316 386:69f36c98808b
     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