/** Build config for parsing. */
 static ParserConfig forParsing(Buffer buffer, DefaultErrorSource errorSource) {
   ParserConfig config = new ParserConfig(buffer, errorSource);
   config.showErrors = Options.getBool("showErrors");
   config.displayCodeParameters = Options.getBool("displayCodeParameters");
   config.showDoccoHeadings = Options.getBool("showDoccoHeadings");
   config.isCakefile = buffer.getName().equals("Cakefile");
   return config;
 }
 /** Build config for compiling. */
 static ParserConfig forCompiling(Buffer buffer, DefaultErrorSource errorSource) {
   ParserConfig config = new ParserConfig(buffer, errorSource);
   config.showErrors = true;
   return config;
 }