parser: init grammar. scan: split up traits