Changeset 37f527b in mainline for uspace/app/sbi/src/stree_t.h
- Timestamp:
- 2010-03-26T21:55:23Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4204ad9
- Parents:
- b535aeb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/stree_t.h
rb535aeb r37f527b 31 31 32 32 #include "list_t.h" 33 #include "builtin_t.h" 33 34 34 35 /* … … 156 157 list_t args; /* of stree_expr_t */ 157 158 } stree_index_t; 159 160 /** @c as conversion operation */ 161 typedef struct { 162 /** Expression to convert */ 163 struct stree_expr *arg; 164 /** Destination type of conversion. */ 165 struct stree_texpr *dtype; 166 } stree_as_t; 158 167 159 168 /** Arithmetic expression class */ … … 168 177 ec_call, 169 178 ec_assign, 170 ec_index 179 ec_index, 180 ec_as 171 181 } expr_class_t; 172 182 … … 188 198 stree_index_t *index; 189 199 stree_assign_t *assign; 200 stree_as_t *as_op; 190 201 } u; 191 202 } stree_expr_t; … … 200 211 typedef enum { 201 212 tlc_int, 213 tlc_resource, 202 214 tlc_string 203 215 } tliteral_class_t; … … 388 400 struct stree_symbol *outer_symbol; 389 401 390 /** Main block */402 /** Main block for regular procedures */ 391 403 stree_block_t *body; 404 405 /** Builtin handler for builtin procedures */ 406 builtin_proc_t bi_handler; 392 407 } stree_proc_t; 393 408 … … 512 527 } stree_module_t; 513 528 529 /** Symbol attribute class */ 530 typedef enum { 531 /** Builtin symbol (interpreter hook) */ 532 sac_builtin 533 } symbol_attr_class_t; 534 535 /** Symbol atribute */ 536 typedef struct { 537 symbol_attr_class_t sac; 538 } stree_symbol_attr_t; 539 540 514 541 typedef enum { 515 542 sc_csi, … … 539 566 /** Containing block (for block-level symbols) */ 540 567 stree_block_t *outer_block; 568 569 /** Symbol attributes. */ 570 list_t attr; /* of stree_symbol_attr_t */ 541 571 } stree_symbol_t; 542 572 … … 545 575 /** The one and only module in the program */ 546 576 stree_module_t *module; 577 578 /** Builtin symbols binding. */ 579 struct builtin *builtin; 547 580 } stree_program_t; 548 581
Note:
See TracChangeset
for help on using the changeset viewer.