Skip to content

Commit

Permalink
Fixed bug in getNthComponentModification, not wrapping modifier in Co…
Browse files Browse the repository at this point in the history
…de operator

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1057 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Dec 12, 2003
1 parent 9211d68 commit 79e9472
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modeq/interactive.rml
Original file line number Diff line number Diff line change
Expand Up @@ -2461,11 +2461,12 @@ relation get_componentitems_modification: Absyn.ComponentItem list => string =

rule Dump.print_exp_str Absyn.CODE(Absyn.C_MODIFICATION(mod)) => s1 &
get_componentitems_modification(rest) => s2 &
Util.string_append_list([s1,",",s2]) => res
Util.string_append_list(["Code(",s1,"),",s2]) => res
-------------------------------------------
get_componentitems_modification (Absyn.COMPONENTITEM(Absyn.COMPONENT(_,_,SOME(mod)),_)::(rest as (_::_))) => res

rule Dump.print_exp_str Absyn.CODE(Absyn.C_MODIFICATION(mod)) => res
rule Dump.print_exp_str Absyn.CODE(Absyn.C_MODIFICATION(mod)) => s1 &
Util.string_append_list(["Code(",s1,")"]) => res
-------------------------------------------------------------
get_componentitems_modification ([Absyn.COMPONENTITEM(Absyn.COMPONENT(_,_,SOME(mod)),_)]) => res

Expand Down

0 comments on commit 79e9472

Please sign in to comment.