Reporter

edu.vermontstate.mercury.Reporter
See theReporter companion object
trait Reporter

This trait describes the interface to error reporting objects. Different implementations report errors in different ways. By centralizing the way errors are reported, changes can be made to this important function without modifying the bulk of the compiler where errors are detected.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def reportError(line: Int, column: Int, message: String): Unit

Used to report an error condition. If an error is detected code can not be generated.

Used to report an error condition. If an error is detected code can not be generated.

Value parameters

column

The column on the line where the error was detected.

line

The line in the source file where the error was detected.

message

The human readable message describing the error.

Attributes

def reportWarning(line: Int, column: Int, message: String): Unit

Used to report a warning condition. Warnings do not prevent code from being generated.

Used to report a warning condition. Warnings do not prevent code from being generated.

Value parameters

column

THe column on hte line where the warning was detected.

line

The line in the source file where the warning was detected.

message

THe human readable message describing the warning.

Attributes