Separated out calling the ANTLR parser from the main class read to add an alternative implementation