read implementation using alternate rd parser

Start of replacement of the lemon parser with a rd parser