Skip to content

Commit 94b5d66

Browse files
authored
extensions
1 parent e789b35 commit 94b5d66

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cg/python2UML.cstl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,11 @@ _1 _2 |--> _1`removeAtomBrackets := _1_2`trailerUpdateForm<when> _1 atom, _2
727727

728728
_1 _2 |--> _1_2<when> _1 atom, _2 trailer
729729

730+
_1 _2 _3 |--> execute (_3`third : _1_2)<when> _1 atom, _3`second append
731+
_1 _2 _3 |--> execute (_3`third : _1_2)<when> _1 atom, _3`second add
732+
733+
_1 _2 _3 |--> _1_2_3<when> _1 atom, _2 trailer, _3 trailer
734+
730735
_1 , _* |--> _1 ;\n_*`recurse
731736
_1 |-->
732737

@@ -2369,7 +2374,7 @@ _1 _2 |--> _1 _2<when> _2`equalAssign true, _1 matches .*\..*
23692374
_1 _2 |--> _1 _2<when> _2`equalAssign true, _1 matches .*\[.*
23702375
_1 _2 |--> _1 _2<when> _2`equalAssign true, _1`hasTrailer true
23712376

2372-
_1 _2 |--> var _1 : _2`indicator2OCL _2<when> _2`equalAssign true <action> _1`defined true, _1 _2`indicatorType
2377+
_1 _2 |--> var _1 : _2`ocltype _2<when> _2`equalAssign true <action> _1`defined true, _1 _2`ocltype
23732378

23742379
_1 _2 |--> _1 := _1_2<when> _2 assign_part
23752380

@@ -2645,11 +2650,14 @@ int |-->int
26452650
float |-->double
26462651
str |-->String
26472652
dict |-->Map
2653+
dict _1 |-->Map
26482654
list |-->Sequence
2655+
list _1 |-->Sequence
26492656
deque |-->Sequence
26502657
OrderedDict |-->Map
26512658
Counter |-->Bag
26522659
set |-->Set
2660+
set _1 |-->Set
26532661
tuple |-->Sequence
26542662
bool |-->boolean
26552663
name |-->String

0 commit comments

Comments
 (0)