scala.util.parsing.combinator.testing
class Tester

[source: `scala/util/parsing/combinator/testing/Tester.scala`]

`abstract` `class` Tester
  `extends` AnyRef

  Facilitates testing a given parser on various input strings.

  Example use:

          val syntactic = new MyParsers

  and

          val parser = syntactic.term

  (if MyParsers extends TokenParsers with a parser called `term')

Author
  Martin Odersky, Adriaan Moors

Value Summary
`abstract val` | parser : Parser[Any]
`abstract val` | syntactic : TokenParsers

Method Summary
`def` | test (in : java.lang.String) : Unit Scans a String (using a `syntactic.lexical.Scanner'), parses it using `phrase(parser)`, and prints the input and the parsed result to the console.

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Value Details

`abstract` `val` syntactic : TokenParsers

`abstract` `val` parser : Parser[Any]

Method Details

`` `def` test(in : java.lang.String) : Unit

  Scans a String (using a `syntactic.lexical.Scanner'), parses it using `phrase(parser)`, and prints the input and the parsed result to the console.