annotate tests/hog.ur @ 2148:a49c12ddf47d

Handling overflow in integer literals (contributed by Gabriel Riba)
author Adam Chlipala <adam@chlipala.net>
date Thu, 28 May 2015 10:23:43 -0400
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>