scala.tools.nsc.ast.parser

Parsers

trait Parsers extends Scanners with MarkupParsers with ParsersCommon

Performs the following context-free rewritings:

- Places all pattern variables in Bind nodes. In a pattern, for identifiers x:

                x  => x @ _
              x:T  => x @ (_ : T)

if there are no variables in pattern

       val p = e  ==>  e match (case p => ())

if there is exactly one variable in pattern

       val x_1 = e match (case p => (x_1))

if there is more than one variable in pattern

       val p = e  ==>  private synthetic val t$ = e match (case p => (x_1, ..., x_N))
                       val x_1 = t$._1
                       ...
                       val x_N = t$._N

- Removes function types as follows:

       (argtpes) => restpe   ==>   scala.Function_n[argtpes, restpe]

- Wraps naked case definitions in a match as follows:

       { cases }   ==>   (x => x.match {cases}), except when already argument to match

Self Type
Parsers
Source
Parsers.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Parsers
  2. ParsersCommon
  3. MarkupParsers
  4. Scanners
  5. ScannersCommon
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Type Members

  1. trait CommonTokenData extends AnyRef

  2. class MalformedInput extends Exception

  3. class MarkupParser extends MarkupParserCommon

  4. type Offset = Int

    Offset into source character array

    Offset into source character array

    Definition Classes
    Scanners
  5. case class OpInfo (operand: Tree, operator: Name, offset: Offset) extends Product with Serializable

  6. class OutlineParser extends SourceFileParser

  7. class ParensAnalyzer extends UnitScanner

  8. class Parser extends ParserCommon

    Attributes
    abstract
  9. trait ParserCommon extends AnyRef

  10. class Scanner extends CharArrayReader with TokenData with ScannerCommon

    Attributes
    abstract
  11. trait ScannerCommon extends CommonTokenData

  12. class SourceFileParser extends Parser

  13. class SourceFileScanner extends Scanner

    A scanner for a given source file not necessarily attached to a compilation unit.

  14. trait TokenData extends CommonTokenData

  15. class UnitParser extends SourceFileParser

  16. class UnitScanner extends SourceFileScanner

    A scanner over a given compilation unit

Abstract Value Members

  1. val global : Global

    Attributes
    abstract
    Definition Classes
    ParsersParsersCommonScannersScannersCommon

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. object ConfusedAboutBracesControl extends Throwable with ControlThrowable with Product with Serializable

  7. val InBlock : Int(1)

    Attributes
    final
  8. val InTemplate : Int(2)

    Attributes
    final
  9. val Local : Int(0)

    Attributes
    final
  10. object MissingEndTagControl extends Throwable with ControlThrowable with Product with Serializable

  11. val NoOffset : Offset

    An undefined offset

    An undefined offset

    Definition Classes
    Scanners
  12. object TruncatedXMLControl extends Throwable with ControlThrowable with Product with Serializable

  13. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  14. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def createKeywordArray (keywords: Seq[(Name, Int)], defaultToken: Int): (Int, Array[Int])

    Definition Classes
    ScannersCommon
  16. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  17. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  20. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  21. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  22. def name2token (name: Name): Int

    Convert name to token

    Convert name to token

    Attributes
    final
    Definition Classes
    Scanners
  23. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  27. def toString (): String

    Definition Classes
    AnyRef → Any
  28. val token2name : Map[Int, Name]

    Attributes
    final
    Definition Classes
    Scanners
  29. def token2string (token: Int): String

    Returns the string representation of given token.

    Returns the string representation of given token.

    Definition Classes
    Scanners
  30. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ParsersCommon

Inherited from MarkupParsers

Inherited from Scanners

Inherited from ScannersCommon

Inherited from AnyRef

Inherited from Any