Mercurial > urweb
view tests/stuff.lac @ 8:a455a9f85cc3
Parsing basic expressions
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 26 Jan 2008 17:10:26 -0500 |
parents | 2ce5bf227d01 |
children | e97c6d335869 |
line wrap: on
line source
type c1 = t :: Type -> t con c2 :: Type = t :: Type -> t con c3 = fn t :: Type => c1 con c4 = c3 c1 con c5 = (fn t :: Type => c1) c1 con name = #MyName con c6 = {A : c1, name : c2} con c7 = [A = c1, name = c2] con c8 = fn t :: Type => t con c9 = {} con c10 = ([]) :: {Type} val v1 = fn t :: Type => fn x : t => x val v2 = v1 [c1] (fn y => y)