# HG changeset patch # User anatofuz # Date 1597747526 -32400 # Node ID 9bf4e49d3399f4dc3cde622c360324ef451bfa90 # Parent fb729a3c83f1786caca09e5595ab02d38866d60a ... diff -r fb729a3c83f1 -r 9bf4e49d3399 src/parallel_execution/lib/Gears/Util.pm --- 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);