author | Christian Urban <urbanc@in.tum.de> |
Fri, 22 Nov 2019 16:41:45 +0000 | |
changeset 323 | 1f8005b4cdf6 |
parent 288 | 65731df141a5 |
permissions | -rw-r--r-- |
import CW9a._ assert(syard(split("3 + 4 * ( 2 - 1 )")) == List("3", "4", "2", "1", "-", "*", "+")) assert(syard(split("( ( ( 3 ) ) + ( ( 4 + ( 5 ) ) ) )")) == List("3", "4", "5", "+", "+")) assert(syard(split("5 + 7 / 2")) == List("5", "7", "2", "/", "+")) assert(syard(split("5 * 7 / 2")) == List("5", "7", "*", "2", "/"))