Parser: implementation of parser helper functions parseDouble and parseDate