Added check_input procedure to parser.
Updated match proceduere with new error recovery techniques.