pattern.cmx: dbconn.cmx eval.cmx mathql_semantics.cmx utility.cmx pattern.cmi
use.cmo: dbconn.cmi mathql_semantics.cmo utility.cmi use.cmi
use.cmx: dbconn.cmx mathql_semantics.cmx utility.cmx use.cmi
-letin.cmo: func.cmi utility.cmi letin.cmi
-letin.cmx: func.cmx utility.cmx letin.cmi
-mqint.cmo: dbconn.cmi diff.cmi eval.cmi intersect.cmi mathql_semantics.cmo \
- pattern.cmi select.cmi sortedby.cmi union.cmi use.cmi utility.cmi \
- mqint.cmi
-mqint.cmx: dbconn.cmx diff.cmx eval.cmx intersect.cmx mathql_semantics.cmx \
- pattern.cmx select.cmx sortedby.cmx union.cmx use.cmx utility.cmx \
- mqint.cmi
+letin.cmo: letin.cmi
+letin.cmx: letin.cmi
+mqint.cmo: dbconn.cmi diff.cmi eval.cmi intersect.cmi letin.cmi \
+ mathql_semantics.cmo pattern.cmi select.cmi sortedby.cmi union.cmi \
+ use.cmi utility.cmi mqint.cmi
+mqint.cmx: dbconn.cmx diff.cmx eval.cmx intersect.cmx letin.cmx \
+ mathql_semantics.cmx pattern.cmx select.cmx sortedby.cmx union.cmx \
+ use.cmx utility.cmx mqint.cmi
* TODO: bisogna scegliere se questi parametri vengono
* passati come argomento
*)
-(*let connection_param = "dbname=helm";;*)
-let connection_param = "host=dotto.cs.unibo.it dbname=helm user=helm";;
+let connection_param = "dbname=helm";;
+(*let connection_param = "host=dotto.cs.unibo.it dbname=helm user=helm";;*)
(*
* connessione al db
* http://www.cs.unibo.it/helm/.
*)
-val letin_ex : MathQL.mqrvar -> Mathql_semantics.result -> Mathql_semantics.result
-val letref_ex : MathQL.mqrvar -> Mathql_semantics.result
+val letin_ex : MathQL.mqlvar -> Mathql_semantics.result -> Mathql_semantics.result
+val letref_ex : MathQL.mqlvar -> Mathql_semantics.result
| MQIntersect (l1, l2) ->
intersect_ex (execute_ex env l1) (execute_ex env l2)
| MQLRVar rvar -> [List.assoc rvar env]
- | MQLetIn (rvar, alist) ->
- letin_ex rvar (execute_ex env alist)
+ | MQLetIn (lvar, l1, l2) ->
+ let _ = letin_ex lvar (execute_ex env l1) in
+ execute_ex env l2
| MQLetRef rvar ->
letref_ex rvar
;;