kiama.example.til

trait Main

[source: kiama/example/til/Main.scala]

trait Main
extends AnyRef
Standard main program for TIL chairmarks. Also includes a simple testing framework.
Direct Known Subclasses:
ParsingMain

Method Summary
def main (args : scala.Array[java.lang.String]) : Unit
Accept file name arguments and process them one-by-one by passing a reader on the file to process. The resulting value is printed.
abstract def process (reader : java.io.Reader) : Any
Process the file given by the argument reader and return some useful result.
def test [T](str : java.lang.String, result : T) : Unit
Try to process a string and expect a given result. Return a JUnit test case result.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def main(args : scala.Array[java.lang.String]) : Unit
Accept file name arguments and process them one-by-one by passing a reader on the file to process. The resulting value is printed.

abstract def process(reader : java.io.Reader) : Any
Process the file given by the argument reader and return some useful result.

def test[T](str : java.lang.String, result : T) : Unit
Try to process a string and expect a given result. Return a JUnit test case result.