<commit_before>/* NSC -- new scala compiler
 * Copyright 2005 LAMP/EPFL
 * @author <NAME>
 */
// $Id$
package scala.tools.nsc.ast.parser;

/** An nsc sub-component.
 */
abstract class SyntaxAnalyzer extends SubComponent with Parsers with MarkupParsers with Scanners {
  val phaseName = "parser";
  def newPhase(prev: Phase): StdPhase = new ParserPhase(prev);
  class ParserPhase(prev: scala.tools.nsc.Phase) extends StdPhase(prev) {
    def apply(unit: global.CompilationUnit): unit = {
      global.informProgress("parsing " + unit);
      unit.body = new Parser(unit).parse();
    }
  }
  //Moez addition. I wished not to add/modify here, but the fact that Parsers
  // are NOT accessible (because of Parsers' self type) except in SyntaxAnalyzer
  // had bitten me, and thus I had to add the following code here.
  def interpreterParse(unit: global.CompilationUnit): List[global.Tree] =
    new Parser(unit).templateStatSeq()
}
<commit_msg>removed a hack for supporting the interpreter t...<commit_after>/* NSC -- new scala compiler
 * Copyright 2005 LAMP/EPFL
 * @author <NAME>
 */
// $Id$
package scala.tools.nsc.ast.parser;

/** An nsc sub-component.
 */
abstract class SyntaxAnalyzer extends SubComponent with Parsers with MarkupParsers with Scanners {
  val phaseName = "parser";
  def newPhase(prev: Phase): StdPhase = new ParserPhase(prev);
  class ParserPhase(prev: scala.tools.nsc.Phase) extends StdPhase(prev) {
    def apply(unit: global.CompilationUnit): unit = {
      global.informProgress("parsing " + unit);
      unit.body = new Parser(unit).parse();
    }
  }
}

{'fraction_non_alphanumeric': 0.11820480404551201, 'fraction_numerical': 0.0050568900126422255, 'mean_word_length': 3.811550151975684, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1790289', 'n_tokens_mistral': 510, 'n_tokens_neox': 498, 'n_words': 150}