All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.reflect.macros.Parsers.scala Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
package scala.reflect
package macros

trait Parsers {
  self: Context =>

  /** .. */
  // todo. distinguish between `parseExpr` and `parse`
  def parse(code: String): Tree

  /** Represents an error during parsing
   */
  type ParseError <: Throwable
  val ParseError: ParseErrorExtractor
  abstract class ParseErrorExtractor {
    def unapply(error: ParseError): Option[(Position, String)]
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy