Packages

trait Parsers extends AnyRef

EXPERIMENTAL

A slice of the Scala macros context that exposes functions to parse strings with Scala code into trees.

Self Type
blackbox.Context
Source
Parsers.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parsers
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def parse(code: String): blackbox.Context.Tree

    Parses a string with a Scala expression into an abstract syntax tree.

    Parses a string with a Scala expression into an abstract syntax tree. Only works for expressions, i.e. parsing a package declaration will fail.

    Exceptions thrown