equal
deleted
inserted
replaced
1397 tree_root = new library_c(); |
1397 tree_root = new library_c(); |
1398 $$ = (list_c *)tree_root; |
1398 $$ = (list_c *)tree_root; |
1399 } |
1399 } |
1400 | library library_element_declaration |
1400 | library library_element_declaration |
1401 {$$ = $1; $$->add_element($2);} |
1401 {$$ = $1; $$->add_element($2);} |
|
1402 /* ERROR_CHECK_BEGIN */ |
1402 | library error END_OF_INPUT |
1403 | library error END_OF_INPUT |
1403 {$$ = NULL; |
1404 {$$ = NULL; |
1404 print_err_msg(current_filename, @2.first_line, "unknown error."); |
1405 print_err_msg(current_filename, @2.first_line, "unknown error."); |
1405 yyerrok; |
1406 yyerrok; |
1406 } |
1407 } |
|
1408 /* ERROR_CHECK_END */ |
1407 ; |
1409 ; |
1408 |
1410 |
1409 |
1411 |
1410 library_element_declaration: |
1412 library_element_declaration: |
1411 data_type_declaration |
1413 data_type_declaration |
3362 |
3364 |
3363 derived_function_name: |
3365 derived_function_name: |
3364 identifier |
3366 identifier |
3365 | prev_declared_derived_function_name |
3367 | prev_declared_derived_function_name |
3366 {$$ = $1; |
3368 {$$ = $1; |
3367 if (not(allow_function_overloading)) |
3369 if (not(allow_function_overloading)) { |
|
3370 fprintf(stderr, "Function overloading not allowed. Invalid identifier %s\n", ((token_c *)($1))->value); |
3368 ERROR; |
3371 ERROR; |
|
3372 } |
3369 } |
3373 } |
3370 ; |
3374 ; |
3371 |
3375 |
3372 |
3376 |
3373 function_declaration: |
3377 function_declaration: |