annotate tests/hog.ur @ 1836:276fa06428ba

Ignore polymorphism in JavaScript calls to custom FFI functions, allowing a kind of simple dynamic typing (unsafe, of course)
author Adam Chlipala <adam@chlipala.net>
date Tue, 11 Dec 2012 15:58:23 -0500
parents a1aa62b472cf
children
rev   line source
adam@1307 1 fun more n =
adam@1307 2 if n <= 0 then
adam@1307 3 "!"
adam@1307 4 else
adam@1307 5 more (n-1) ^ more (n-1)
adam@1307 6
adam@1334 7 fun main n =
adam@1334 8 debug "Let's give this a try....";
adam@1334 9 return <xml>{[more n]}</xml>