Mercurial > urweb
comparison tests/jscomp.ur @ 971:c22e524a6dd3
Basic arithmetic working with interpretation
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 22 Sep 2009 13:23:27 -0400 |
parents | |
children | 733f67bb64e7 |
comparison
equal
deleted
inserted
replaced
970:8371d12ae63f | 971:c22e524a6dd3 |
---|---|
1 fun main () = | |
2 s <- source ""; | |
3 | |
4 return <xml><body> | |
5 <ctextbox source={s}/><br/> | |
6 | |
7 <button value="Echo" onclick={s <- get s; alert s}/> | |
8 <button value="+1" onclick={s <- get s; alert (show (readError s + 1))}/> | |
9 <button value="*3" onclick={s <- get s; alert (show ((readError s) * 3))}/> | |
10 </body></xml> |