building pre-parser