question: private void expect ( char expectedSymbol ) throws ParseException { if ( ! accept ( expectedSymbol ) ) throw new ParseException ( "Expected '" + expectedSymbol + "' but found '" + ( char ) data [ index ] + "'" , index ) ; }
target:  Expects the input to have the given symbol at the current parsing position.