view tests/mutual.ur @ 2135:a159625975a7

Allow file directives to contain slashes Previously, adding a line such as "file /c/foo.css css/foo.css" would cause the compiler to raise an InvalidArc exception.
author Julian Squires <julian@cipht.net>
date Fri, 24 Apr 2015 07:51:47 -0400
parents 61a1f5c5ae2c
children
line wrap: on
line source
datatype foo = A | B of bar
and bar = C | D of foo

val q = B (D A)

fun main () = return <xml>
  {case q of
       B (D A) => <xml>Good</xml>
     | _ => <xml>Bad</xml>}
</xml>