Skip to content

Commit 27dd384

Browse files
authored
Add files via upload
1 parent e95e599 commit 27dd384

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

cg/cobol2UML.cstl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,8 +2317,8 @@ MOVE _1 |-->_1
23172317

23182318

23192319
moveToStatement::
2320-
_1 TO _2 |--> _2 := StringLib.leftAlignInto("" + _1, _2`fieldWidth);\n<when> _1 String
2321-
_1 TO _2 |--> _2 := StringLib.padLeftWithInto("" + _1, " ", _2`fieldWidth);\n<when> _1 real, _2 String
2320+
_1 TO _2 |--> _2 := StringLib.leftAlignInto("" + _1, _2`fieldWidth);\n<when> _1`oclType String
2321+
_1 TO _2 |--> _2 := StringLib.padLeftWithInto("" + _1, " ", _2`fieldWidth);\n<when> _2`oclType String
23222322
_1 TO _2 |--> _2 := _1 ;\n
23232323
_1 TO _2 _* |--> (var _moveTmp : OclAny ; _moveTmp := _1;\n _2 := _moveTmp;\n_*`moveAssignments skip) ; \n
23242324

cg/python2UML.cstl

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ _1 & _2 |-->MathLib.bitwiseAnd(_1, _2)
254254
_1 ^ _2 |-->MathLib.bitwiseXor(_1, _2)
255255
_1 | _2 |-->MathLib.bitwiseOr(_1, _2)
256256

257+
_1 _2 _3 |-->_1_2<when> _2`isBasicTypeTrailer true, _3 matches .value
258+
257259
_1 _2 |-->OclIterator.newOclIterator_Function(lambda _i : int in self._1(_i))<when> _1 generator, _2 trailer
258260

259261
_1 _2 |-->(_1.new_1()).initialise_2<when> _1 Class, _2 trailer
@@ -673,6 +675,18 @@ _1 |-->_1
673675
_1 : _2 |-->_1
674676

675677

678+
isBasicTypeTrailer::
679+
. _1 |-->true<when> _1 int
680+
. _1 |-->true<when> _1 real
681+
. _1 |-->true<when> _1 String
682+
. _1 |-->true<when> _1 boolean
683+
. _1 |-->false
684+
685+
686+
687+
688+
689+
676690
trailer::
677691
. count _1 |-->->count_1
678692
. index _1 |-->->indexOf_1 - 1
@@ -919,6 +933,29 @@ mathType::
919933
_1 |-->OclAny
920934

921935

936+
numpyType::
937+
. arange _1 |-->Sequence
938+
. shape _1 |-->Sequence
939+
. empty _1 |-->Sequence
940+
. empty_like _1 |-->Sequence
941+
. eye _1 |-->Sequence
942+
. identity _1 |-->Sequence
943+
. ones _1 |-->Sequence
944+
. ones_like _1 |-->Sequence
945+
. zeros _1 |-->Sequence
946+
. zeros_like _1 |-->Sequence
947+
. full _1 |-->Sequence
948+
. full_like _1 |-->Sequence
949+
. array _1 |-->Sequence
950+
. asarray _1 |-->Sequence
951+
. asanyarray _1 |-->Sequence
952+
. ascontiguousarray _1 |-->Sequence
953+
. asmatrix _1 |-->Sequence
954+
. copy _1 |-->Sequence
955+
. fromstring _1 |-->Sequence
956+
. linspace _1 |-->Sequence
957+
958+
922959
pickleTrailer::
923960
. dump _1 |-->_1`secondArg.writeObject(_1`firstArg)
924961
. load _1 |-->_1.readObject()
@@ -1524,6 +1561,8 @@ asyncio _1 |-->OclProcess
15241561

15251562
math _1 |-->_1`mathType
15261563
re _1 |-->_1`reType
1564+
np _1 |-->_1`numpyType
1565+
numpy _1 |-->_1`numpyType
15271566

15281567
_1 if _2 else _3 |-->_1`ocltype
15291568
lambda _1 : _2 |-->Function
@@ -1804,7 +1843,7 @@ _1 |-->_1`classcontent<when> _1 compound_stmt
18041843

18051844
_1 |-->_1`methodDefinition<when> _1 funcdef
18061845

1807-
_1 _2 |--> static attribute _1 : _2`ocltype _2;\n<when> _2 assign_part
1846+
_1 _2 |--> static attribute _1 : _2`ocltype _2;\n<when> _2 assign_part <action> _1 _2`ocltype
18081847

18091848
_1 |-->
18101849
_* |-->

0 commit comments

Comments
 (0)