Modularized the ragel parser.