stage3/stage3.cc
changeset 516 8591746fa134
parent 510 9317e04c1dde
child 530 1eacd7afcab1
equal deleted inserted replaced
515:fdef852a6565 516:8591746fa134
    75 	error_count += flow_control_analysis(tree_root);
    75 	error_count += flow_control_analysis(tree_root);
    76 	error_count += type_safety(tree_root);
    76 	error_count += type_safety(tree_root);
    77 	error_count += lvalue_check(tree_root);
    77 	error_count += lvalue_check(tree_root);
    78 	
    78 	
    79 	if (error_count > 0) {
    79 	if (error_count > 0) {
    80 		fprintf(stderr, "%d errors found. Bailing out!\n", error_count); 
    80 		fprintf(stderr, "%d error(s) found. Bailing out!\n", error_count); 
    81 		return -1;
    81 		return -1;
    82 	}
    82 	}
    83 	return 0;
    83 	return 0;
    84 }
    84 }