Turn parser into a real class