author | Christian Urban <christian.urban@kcl.ac.uk> |
Thu, 13 Jun 2024 13:13:33 +0100 | |
changeset 491 | e2ffe8642f55 |
parent 474 | b528d1d3d3c3 |
permissions | -rw-r--r-- |
def urbanmain() = { import C3a._ 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", "/")) }