Skip to content

Commit

Permalink
Save assignment modifications in the environment.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@166 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x97davka committed Mar 7, 1998
1 parent e8dec72 commit 9c03aca
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions modeq/env.rml
Expand Up @@ -21,6 +21,7 @@ module Env:
* bool (* constant *)
* bool (* input *)
* bool (* output *)
* Exp.Exp option (* equation *)

datatype Frame = FRAME of (Explode.Ident*FrameVar) list
* (Explode.Ident*Explode.Class*Mod.Mod) list
Expand Down Expand Up @@ -76,15 +77,6 @@ end

relation lookup_class: (Env,Explode.Path) => (Explode.Class,Mod.Mod) =

(*
rule lookup_var(f,IDENT(n)) => v & &
print "lookup_class: FIXME\n" &
fail
----------------
lookup_class(f,Explode.QUALIFIED(n,p))
=> fail
*)

rule lookup_class_f(cs,id) => (c,m)
---------------------
lookup_class(FRAME(_,cs)::fs,Exp.IDENT(id)) => (c,m)
Expand Down Expand Up @@ -128,7 +120,7 @@ end

relation extend_frame_v : (Env,FrameVar) => Env =

axiom extend_frame_v(FRAME(vs,cs)::fs,v as FRAMEVAR(n,_,_,_,_,_,_,_))
axiom extend_frame_v(FRAME(vs,cs)::fs,v as FRAMEVAR(n,_,_,_,_,_,_,_,_))
=> (FRAME((n,v)::vs,cs)::fs)

end

0 comments on commit 9c03aca

Please sign in to comment.