* @return generator constructed from string
*/
public static Generator createGeneratorFromString(String string){
try {
Rule rule = UrbanParser.parse(string + "@ 0,0\n").rule();
return new RuleToGeneratorTransformer().transform(rule);
} catch (RecognitionException e) {
e.printStackTrace();
return null;
}
}