summaryrefslogtreecommitdiff
path: root/tests/parseInt.ur
blob: 2d906fc80e0339d057c49ff2fcbed374a882953a (plain)
1
2
3
4
5
6
7
8
9
fun main () : transaction page =
    s <- source "";
    return <xml><body>
      <ctextbox source={s}/>
      <button onclick={n <- get s;
                       case read n of
                           None => alert "Invalid"
                         | Some n => alert (show (n + 1))}/>
    </body></xml>