Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/stree_t.h

    r051b3db8 rc5cb943d  
    11/*
    2  * Copyright (c) 2011 Jiri Svoboda
     2 * Copyright (c) 2010 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    364364} texpr_class_t;
    365365
    366 /** Type expression */
     366/** Arithmetic expression */
    367367typedef struct stree_texpr {
    368368        texpr_class_t tc;
     
    394394        stree_ident_t *name;
    395395        stree_texpr_t *type;
    396 
    397         /** Type of this variable or @c NULL if not typed yet */
    398         struct tdata_item *titem;
    399396} stree_vdecl_t;
    400397
     
    404401        stree_texpr_t *etype;
    405402        stree_block_t *block;
    406 
    407         /** Evaluated etype or @c NULL if not typed yet */
    408         struct tdata_item *titem;
    409403} stree_except_t;
    410404
     
    424418} stree_if_t;
    425419
    426 /** @c when clause */
    427 typedef struct {
    428         /** List of expressions -- cases -- for this clause */
    429         list_t exprs; /* of stree_expr_t */
    430         stree_block_t *block;
    431 } stree_when_t;
    432 
    433 /** Switch statement */
    434 typedef struct {
    435         /** Switch expression */
    436         stree_expr_t *expr;
    437 
    438         /** When clauses */
    439         list_t when_clauses; /* of stree_when_t */
    440 
    441         /** Else block */
    442         stree_block_t *else_block;
    443 } stree_switch_t;
    444 
    445420/** While statement */
    446421typedef struct {
     
    473448} stree_exps_t;
    474449
    475 /** With-try-except-finally (WEF) statement */
     450/** With-try-except-finally statement (WEF) */
    476451typedef struct {
    477452        stree_block_t *with_block;
     
    484459        st_vdecl,
    485460        st_if,
    486         st_switch,
    487461        st_while,
    488462        st_for,
     
    501475                stree_vdecl_t *vdecl_s;
    502476                stree_if_t *if_s;
    503                 stree_switch_t *switch_s;
    504477                stree_while_t *while_s;
    505478                stree_for_t *for_s;
     
    537510/** Function signature.
    538511 *
    539  * Formal parameters and return type. This is common to function and delegate
     512 * Foormal parameters and return type. This is common to function and delegate
    540513 * delcarations.
    541514 */
     
    815788        } u;
    816789
    817         /** Containing CSI */
     790        /** Containing CSI (for all symbols) */
    818791        stree_csi_t *outer_csi;
    819792
    820         /** Symbol attributes */
     793        /** Containing block (for block-level symbols) */
     794        stree_block_t *outer_block;
     795
     796        /** Symbol attributes. */
    821797        list_t attr; /* of stree_symbol_attr_t */
    822798} stree_symbol_t;
Note: See TracChangeset for help on using the changeset viewer.