Package com.puppetlabs.geppetto.validation.runner

Examples of com.puppetlabs.geppetto.validation.runner.PPDiagnosticsRunner.parseString()


    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();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.