equal
deleted
inserted
replaced
1455 |
1455 |
1456 /***************************/ |
1456 /***************************/ |
1457 /* B 0 - Programming Model */ |
1457 /* B 0 - Programming Model */ |
1458 /***************************/ |
1458 /***************************/ |
1459 void *visit(library_c *symbol) { |
1459 void *visit(library_c *symbol) { |
1460 generate_location_list_c generate_location_list(&located_variables_s4o); |
|
1461 symbol->accept(generate_location_list); |
|
1462 |
|
1463 for(int i = 0; i < symbol->n; i++) { |
1460 for(int i = 0; i < symbol->n; i++) { |
1464 symbol->elements[i]->accept(*this); |
1461 symbol->elements[i]->accept(*this); |
1465 } |
1462 } |
|
1463 generate_location_list_c generate_location_list(&located_variables_s4o); |
|
1464 symbol->accept(generate_location_list); |
1466 return NULL; |
1465 return NULL; |
1467 } |
1466 } |
1468 |
1467 |
1469 /*************************/ |
1468 /*************************/ |
1470 /* B.1 - Common elements */ |
1469 /* B.1 - Common elements */ |
1475 void *visit(identifier_c *symbol) { |
1474 void *visit(identifier_c *symbol) { |
1476 current_name = symbol->value; |
1475 current_name = symbol->value; |
1477 return NULL; |
1476 return NULL; |
1478 } |
1477 } |
1479 |
1478 |
|
1479 /********************************/ |
|
1480 /* B 1.3.3 - Derived data types */ |
|
1481 /********************************/ |
|
1482 /* TYPE type_declaration_list END_TYPE */ |
|
1483 void *visit(data_type_declaration_c *symbol) { |
|
1484 symbol->accept(generate_c_pous); |
|
1485 return NULL; |
|
1486 } |
|
1487 |
1480 /**************************************/ |
1488 /**************************************/ |
1481 /* B.1.5 - Program organization units */ |
1489 /* B.1.5 - Program organization units */ |
1482 /**************************************/ |
1490 /**************************************/ |
1483 /***********************/ |
1491 /***********************/ |
1484 /* B 1.5.1 - Functions */ |
1492 /* B 1.5.1 - Functions */ |