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