Changes in uspace/app/sbi/src/stree_t.h [051b3db8:c5cb943d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/stree_t.h
r051b3db8 rc5cb943d 1 1 /* 2 * Copyright (c) 201 1Jiri Svoboda2 * Copyright (c) 2010 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 364 364 } texpr_class_t; 365 365 366 /** Typeexpression */366 /** Arithmetic expression */ 367 367 typedef struct stree_texpr { 368 368 texpr_class_t tc; … … 394 394 stree_ident_t *name; 395 395 stree_texpr_t *type; 396 397 /** Type of this variable or @c NULL if not typed yet */398 struct tdata_item *titem;399 396 } stree_vdecl_t; 400 397 … … 404 401 stree_texpr_t *etype; 405 402 stree_block_t *block; 406 407 /** Evaluated etype or @c NULL if not typed yet */408 struct tdata_item *titem;409 403 } stree_except_t; 410 404 … … 424 418 } stree_if_t; 425 419 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 445 420 /** While statement */ 446 421 typedef struct { … … 473 448 } stree_exps_t; 474 449 475 /** With-try-except-finally (WEF) statement*/450 /** With-try-except-finally statement (WEF) */ 476 451 typedef struct { 477 452 stree_block_t *with_block; … … 484 459 st_vdecl, 485 460 st_if, 486 st_switch,487 461 st_while, 488 462 st_for, … … 501 475 stree_vdecl_t *vdecl_s; 502 476 stree_if_t *if_s; 503 stree_switch_t *switch_s;504 477 stree_while_t *while_s; 505 478 stree_for_t *for_s; … … 537 510 /** Function signature. 538 511 * 539 * Fo rmal parameters and return type. This is common to function and delegate512 * Foormal parameters and return type. This is common to function and delegate 540 513 * delcarations. 541 514 */ … … 815 788 } u; 816 789 817 /** Containing CSI */790 /** Containing CSI (for all symbols) */ 818 791 stree_csi_t *outer_csi; 819 792 820 /** Symbol attributes */ 793 /** Containing block (for block-level symbols) */ 794 stree_block_t *outer_block; 795 796 /** Symbol attributes. */ 821 797 list_t attr; /* of stree_symbol_attr_t */ 822 798 } stree_symbol_t;
Note:
See TracChangeset
for help on using the changeset viewer.