After the program has been successfully parsed, check for duplicate function definitions and one main() function. Still to do: check that function parameters match between calling function and definition.