Rewrite of ruleparser to a commandline tool