Move parser rules to config.

Suggested in #27