first scanner /parser copied from the jdt java version