Mercurial > hg > Gears > Gears
changeset 666:9bf4e49d3399
...
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Aug 2020 19:45:26 +0900 |
parents | fb729a3c83f1 |
children | 72b7863ea5b4 |
files | src/parallel_execution/lib/Gears/Util.pm |
diffstat | 1 files changed, 60 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parallel_execution/lib/Gears/Util.pm Tue Aug 18 19:30:35 2020 +0900 +++ b/src/parallel_execution/lib/Gears/Util.pm Tue Aug 18 19:45:26 2020 +0900 @@ -112,7 +112,66 @@ return grep { !$seen{$_}++ } @_; } -sub parse_with_separate_code_data_gears{ +sub separate_code_and_data_gear_after_parse { +# create this data structure +#\ { +# codes [ +# [0] { +# args "Impl* stackTest, struct Stack* stack, __code next(...)", +# name "insertTest1" +# }, +# [1] { +# args "Impl* stackTest, struct Stack* stack, __code next(...)", +# name "insertTest2" +# }, +# [2] { +# args "Impl* stackTest, struct Stack* stack, __code next(...)", +# name "pop2Test" +# }, +# [3] { +# args "Impl* stackTest, union Data* data, union Data* data1, struct Stack* stack, __code next(...)", +# name "pop2Test1" +# }, +# [4] { +# args "...", +# name "next" +# } +# ], +# content [ +# [0] "enum Code insertTest1; +#", +# [1] "union Data* stackTest; +#", +# [2] "struct Stack* stack; +#", +# [3] "enum Code insertTest2; +#", +# [4] "enum Code pop2Test; +#", +# [5] "enum Code pop2Test1; +#", +# [6] "union Data* data; +#", +# [7] "union Data* data1; +#", +# [8] "enum Code next; +#" +# ], +# data [ +# [0] "union Data* stackTest; +#", +# [1] "struct Stack* stack; +#", +# [2] "union Data* data; +#", +# [3] "union Data* data1; +#" +# ], +# file_name "/Users/anatofuz/src/firefly/hg/Gears/Gears/src/parallel_execution/tools/../examples/pop_and_push/StackTest.h", +# name "StackTest" +#} +# + my ($class, $file) = @_; my $ir = _parse_base($file);