Move parser generator code to its own module.