Changeset fa36f29 in mainline for uspace/app/sbi/src/parse.c


Ignore:
Timestamp:
2010-02-27T17:59:14Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94d484a
Parents:
09ababb7
Message:

Update SBI to rev. 75.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/parse.c

    r09ababb7 rfa36f29  
    6868static stree_for_t *parse_for(parse_t *parse);
    6969static stree_raise_t *parse_raise(parse_t *parse);
     70static stree_return_t *parse_return(parse_t *parse);
    7071static stree_wef_t *parse_wef(parse_t *parse);
    7172static stree_exps_t *parse_exps(parse_t *parse);
     
    342343        stree_for_t *for_s;
    343344        stree_raise_t *raise_s;
     345        stree_return_t *return_s;
    344346        stree_wef_t *wef_s;
    345347        stree_exps_t *exp_s;
     
    370372                stat = stree_stat_new(st_raise);
    371373                stat->u.raise_s = raise_s;
     374                break;
     375        case lc_return:
     376                return_s = parse_return(parse);
     377                stat = stree_stat_new(st_return);
     378                stat->u.return_s = return_s;
    372379                break;
    373380        case lc_with:
     
    485492}
    486493
     494/** Parse @c return statement. */
     495static stree_return_t *parse_return(parse_t *parse)
     496{
     497        stree_return_t *return_s;
     498
     499        return_s = stree_return_new();
     500
     501        lmatch(parse, lc_return);
     502        return_s->expr = parse_expr(parse);
     503        lmatch(parse, lc_scolon);
     504
     505        return return_s;
     506}
     507
    487508/* Parse @c with-except-finally statement. */
    488509static stree_wef_t *parse_wef(parse_t *parse)
Note: See TracChangeset for help on using the changeset viewer.