blob: 7d2e51b240acf558016fb74af199c0b6dc8e19d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* NSC -- new Scala compiler
* Copyright 2005-2007 LAMP/EPFL
* @author Martin Odersky
*/
// $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) {
global.informProgress("parsing " + unit)
unit.body = new UnitParser(unit).parse()
}
}
}
|