SCM Repository
[diderot] Diff of /branches/charisee/src/compiler/mid-to-low/check-ein.sml
Diff of /branches/charisee/src/compiler/mid-to-low/check-ein.sml
Parent Directory
|
Revision Log
|
Patch
30 |
val mapp=mkMapp(size,empty) |
val mapp=mkMapp(size,empty) |
31 |
|
|
32 |
fun mkSumMapp([],mapp)=mapp |
fun mkSumMapp([],mapp)=mapp |
33 |
| mkSumMapp((E.V n,_,_)::ns,mapp)=let |
| mkSumMapp(e1::ns,mapp)=(case e1 |
34 |
|
of (E.V n,_,_)=>let |
35 |
val dict=insert(n, 0) mapp |
val dict=insert(n, 0) mapp |
36 |
in mkSumMapp(ns,dict) end |
in mkSumMapp(ns,dict) end |
37 |
|
| _ =>raise Fail"non-variable index in summation") |
38 |
|
|
39 |
|
|
40 |
fun checkIndex([],dict)=dict |
fun checkIndex([],dict)=dict |
|
Legend:
Removed from v.2611 |
|
changed lines |
|
Added in v.2615 |
|
|