Extract the base Grammar structure from parsers.