Replaced the grammar read function by a generated parser using PEG.