view paper/src/StackParseDetail.pl @ 86:eff53884ce6c

...
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 05 Feb 2021 12:33:08 +0900
parents
children
line wrap: on
line source

\ {
    codeName           {
        clear     {
            argc   1,
            args   "Impl* stack,__code next(...)",
            name   "clear"
        },
        get       {
            argc   1,
            args   "Impl* stack, __code next(union Data* data, ...)",
            name   "get"
        },
        get2      {
            argc   1,
            args   "Impl* stack, __code next(union Data* data, union Data* data1, ...)",
            name   "get2"
        },
        isEmpty   {
            argc   2,
            args   "Impl* stack, __code next(...), __code whenEmpty(...)",
            name   "isEmpty"
        },
        pop       {
            argc   1,
            args   "Impl* stack, __code next(union Data* data, ...)",
            name   "pop"
        },
        pop2      {
            argc   1,
            args   "Impl* stack, __code next(union Data* data, union Data* data1, ...)",
            name   "pop2"
        },
        push      {
            argc   2,
            args   "Impl* stack,union Data* data, __code next(...)",
            name   "push"
        }
    },
    codes              [
        [0] var{codeName}{clear},
        [1] var{codeName}{push},
        [2] var{codeName}{pop},
        [3] var{codeName}{pop2},
        [4] var{codeName}{isEmpty},
        [5] var{codeName}{get},
        [6] var{codeName}{get2}
    ],
    content            [
        [0]  "enum Code clear;",
        [1]  "union Data* stack;",
        [2]  "enum Code push;",
        [3]  "union Data* data;",
        [4]  "enum Code pop;",
        [5]  "enum Code pop2;",
        [6]  "union Data* data1;",
        [7]  "enum Code isEmpty;",
        [8]  "enum Code get;",
        [9]  "enum Code get2;",
        [10] "enum Code next;",
        [11] "enum Code whenEmpty;"
    ],
    data               [
        [0] "union Data* stack;",
        [1] "union Data* data;",
        [2] "union Data* data1;"
    ],
    file_name          "Stack.h",
    hasOutputArgs      {
        get    {
            data   "Data*"
        },
        get2   {
            data    "Data*",
            Data    "union",
            data1   "*"
        },
        pop    {
            data   "Data*"
        },
        pop2   {
            data    "Data*",
            Data    "union",
            data1   "*"
        }
    },
    inner_code_gears   {
        next        1,
        whenEmpty   1
    },
    name               "Stack"
}