author | Christian Urban <christian.urban@kcl.ac.uk> |
Tue, 08 Nov 2022 18:35:41 +0000 | |
changeset 434 | 8c5804b2f9d2 |
parent 424 | daf561a83ba6 |
permissions | -rw-r--r-- |
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", "/"))