Scala Library
|
|
abstract
class
Tester
extends
AnyRefFacilitates 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')
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 |
Method Details |
def
test(in : java.lang.String) : Unit
phrase(parser)
, and prints the input and the
parsed result to the console.
Scala Library
|
|