SCM Repository
[diderot] Diff of /trunk/src/compiler/ast/var.sml
Diff of /trunk/src/compiler/ast/var.sml
Parent Directory
|
Revision Log
|
Patch
16 |
fun monoTypeOf (V{ty=([], ty), ...}) = ty |
fun monoTypeOf (V{ty=([], ty), ...}) = ty |
17 |
| monoTypeOf (V{name, ...}) = raise Fail(name ^ " is not monomrphic") |
| monoTypeOf (V{name, ...}) = raise Fail(name ^ " is not monomrphic") |
18 |
fun kindOf (V{kind, ...}) = kind |
fun kindOf (V{kind, ...}) = kind |
19 |
|
fun uniqueNameOf (V{name, id, ...}) = name ^ Stamp.toString id |
20 |
|
|
21 |
fun new (name, kind, ty) = let |
fun new (name, kind, ty) = let |
22 |
val id = Stamp.new() |
val id = Stamp.new() |
|
Legend:
Removed from v.172 |
|
changed lines |
|
Added in v.173 |
|
|