a statement that is expressed in a valid, syntactically correct, manner

listen to the pronunciation of a statement that is expressed in a valid, syntactically correct, manner
English - English
well-formed formula

This program works correctly on all well-formed formulas but it blows up on illegal input.