The main statement parsing method is now a switch.