PPGrammarAccess ga = runner.get(PPGrammarAccess.class);
// Parse a string using the root rule "PuppetManifest"
// throws an exception with the IParseResult if there are syntax errors
// (test just fails if that is the case).
IParseResult parseResult = runner.parseString(ga.getPuppetManifestRule(), "'I am often quoted'");
// The RootASTElement is an instance of what the grammar rule specified
// as return
// (In this case a PuppetManifest).
EObject result = parseResult.getRootASTElement();