class ChefCookbookAnalyzer {

    public static CookbookParseResult compile(CharStream input, CookbookParseResult cookbookConfigs) {
        CookbookParseResult extractedCookbookConfigs;
        ChefDSLLexer chefDSLLexer = new ChefDSLLexer(input);
        CommonTokenStream commonTokenStream = new CommonTokenStream(chefDSLLexer);
        ChefDSLParser chefDSLParser = new ChefDSLParser(commonTokenStream);
        
        CookbookVisitor cookbookVisitor = new CookbookVisitor(cookbookConfigs);
        extractedCookbookConfigs = cookbookVisitor.visit(chefDSLParser.program());
        return extractedCookbookConfigs;
        
    }

}