_makelistCall:
    MAKELIST
    openParen
    errExpression
    {
        $$ = SVmove(&$3);
    }
;

_makeList_normal:
    {
        $$ = SVint(IS_FILE);
    }
;

_old_young:
    OLDER
|
    YOUNGER
;

_older_younger:
    {
        gp_parse_error = err_older_younger; 
    }
    _old_young
    {
        $$ = SVmove(&$2);
    }
;

makeList:
    _makelistCall                   /* regex ($1)                   */
    _makeList_normal                /* O_FILE  IS_FILE expression   */
    {
        $$ = pmv_makeList1(&$1, &$2); // makelist of a file regex

    }
|
    _makelistCall                   /* match mode (O_FILE, $1)      */
    comma
    errExpression                   /* regex ($3)                   */
    {
        $$ = pmv_makeList1(&$3, &$1);
    }
|
    _makelistCall                   /* regex            ($1)    */
    comma _older_younger            /* decision mode    ($3)    */
    comma errExpression             /* compare file     ($5)    */
    _makeList_normal                /* O_FILE mode      ($6)    */
    {
        $$ = pmv_makeList2(svType(&$3), &$6, &$1, &$5);
    }
|
    _makelistCall                   /* match mode       ($1)        */
    comma errExpression             /* regex            ($3)        */
    comma _older_younger            /* decision mode    ($5)        */
    comma errExpression             /* compare file     ($7)        */
    {
        $$ = pmv_makeList2(svType(&$5), &$1, &$3, &$7);
    }
;



