Transform DSLReader definition to ES6 class