Skip to content

Commit

Permalink
Added accessibility field to the attributes.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@401 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x97davka committed Sep 11, 1998
1 parent d31da39 commit 0b0b070
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modeq/explode.rml
Expand Up @@ -68,9 +68,14 @@ module SCode :

datatype Attributes = ATTR of Absyn.ArrayDim
* bool (* flow *)
* Accessibility
* Absyn.Variability (* parameter *)
* Absyn.Direction

datatype Accessibility = RW (* read/write *)
| RO (* read-only *)
| WO (* write-only (not used) *)

relation elaborate : Absyn.Program => Program

(* Modification handling *)
Expand Down Expand Up @@ -198,7 +203,7 @@ relation elab_elementspec: (bool,bool,Absyn.ElementSpec) => Element list =
elab_elementspec(final,prot,
Absyn.COMPONENTS(attr as Absyn.ATTR(fl,pa,di),t,
(Absyn.COMPONENT(n,d,m))::xs))
=> COMPONENT(n,final,prot,ATTR(d,fl,pa,di),t,mod)::xs'
=> COMPONENT(n,final,prot,ATTR(d,fl,RW,pa,di),t,mod)::xs'

end

Expand Down

0 comments on commit 0b0b070

Please sign in to comment.