Modularized parser