Mercurial > urweb
comparison src/mono.sml @ 185:19ee24bffbc0
FFI datatypes
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 03 Aug 2008 17:57:47 -0400 |
parents | d11754ffe252 |
children | 88d46972de53 |
comparison
equal
deleted
inserted
replaced
184:98c29e3986d3 | 185:19ee24bffbc0 |
---|---|
37 | 37 |
38 withtype typ = typ' located | 38 withtype typ = typ' located |
39 | 39 |
40 datatype patCon = | 40 datatype patCon = |
41 PConVar of int | 41 PConVar of int |
42 | PConFfi of string * string | 42 | PConFfi of {mod : string, datatyp : string, con : string} |
43 | 43 |
44 datatype pat' = | 44 datatype pat' = |
45 PWild | 45 PWild |
46 | PVar of string * typ | 46 | PVar of string * typ |
47 | PPrim of Prim.t | 47 | PPrim of Prim.t |
52 | 52 |
53 datatype exp' = | 53 datatype exp' = |
54 EPrim of Prim.t | 54 EPrim of Prim.t |
55 | ERel of int | 55 | ERel of int |
56 | ENamed of int | 56 | ENamed of int |
57 | ECon of int * exp option | 57 | ECon of patCon * exp option |
58 | EFfi of string * string | 58 | EFfi of string * string |
59 | EFfiApp of string * string * exp list | 59 | EFfiApp of string * string * exp list |
60 | EApp of exp * exp | 60 | EApp of exp * exp |
61 | EAbs of string * typ * typ * exp | 61 | EAbs of string * typ * typ * exp |
62 | 62 |