diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-01-15 22:35:17 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-01-15 22:35:17 +0000 |
commit | 8bb851f21e29ab1f83776ad830922894a7b9c426 (patch) | |
tree | bff22e63fbd75fa332d772b95c1864e27dfa9a60 /src/compiler/scala/tools/nsc/InterpreterResults.scala | |
parent | 8190c6b5da11d3d05cf492b686fb35265d2fd779 (diff) | |
download | scala-8bb851f21e29ab1f83776ad830922894a7b9c426.tar.gz scala-8bb851f21e29ab1f83776ad830922894a7b9c426.tar.bz2 scala-8bb851f21e29ab1f83776ad830922894a7b9c426.zip |
Support multi-line expressions and definitions ...
Support multi-line expressions and definitions in the interpreter.
Diffstat (limited to 'src/compiler/scala/tools/nsc/InterpreterResults.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/InterpreterResults.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/InterpreterResults.scala b/src/compiler/scala/tools/nsc/InterpreterResults.scala new file mode 100644 index 0000000000..9ae055abbf --- /dev/null +++ b/src/compiler/scala/tools/nsc/InterpreterResults.scala @@ -0,0 +1,16 @@ +package scala.tools.nsc + +object InterpreterResults { + /** A result from interpreting one line of input */ + abstract sealed class Result + + /** The line was interpreted successfully */ + case object Success extends Result + + /** The line was erroneous in some way */ + case object Error extends Result + + /** The input was incomplete. The caller should request more + * input. */ + case object Incomplete extends Result +}
\ No newline at end of file |