SCM Repository
[diderot] Diff of /trunk/src/compiler/high-il/high-il.sml
Diff of /trunk/src/compiler/high-il/high-il.sml
Parent Directory
|
Revision Log
|
Patch
13 |
|
|
14 |
datatype ty = BoolTy | StringTy | IntTy | TensorTy of int list |
datatype ty = BoolTy | StringTy | IntTy | TensorTy of int list |
15 |
|
|
16 |
|
(* required helper functions for the "ty" type *) |
17 |
fun samety (ty1 : ty, ty2) = (ty1 = ty2) |
fun samety (ty1 : ty, ty2) = (ty1 = ty2) |
18 |
fun hashty BoolTy = 0w1 |
fun hashty BoolTy = 0w1 |
19 |
| hashty StringTy = 0w2 |
| hashty StringTy = 0w2 |
27 |
"tensor[", String.concatWith "," (List.map Int.toString dd), "]" |
"tensor[", String.concatWith "," (List.map Int.toString dd), "]" |
28 |
] |
] |
29 |
|
|
30 |
|
(* required helper functions for the string type *) |
31 |
fun samestring (s1 : string, s2) = (s1 = s2) |
fun samestring (s1 : string, s2) = (s1 = s2) |
32 |
val hashstring = HashString.hashString |
val hashstring = HashString.hashString |
33 |
fun stringToString s = String.concat["\"", s, "\""] |
fun stringToString s = String.concat["\"", s, "\""] |
|
Legend:
Removed from v.335 |
|
changed lines |
|
Added in v.336 |
|
|