scala.reflect.macros.Parsers.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-reflect Show documentation
Show all versions of scala-reflect Show documentation
Compiler for the Scala Programming Language
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)]
}
}