Completed Backus-Naur Form parsing.