diff options
author | Martin Odersky <odersky@gmail.com> | 2016-02-14 15:56:22 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-17 18:39:35 +0100 |
commit | 4550b524771af0719846eb906795a5ba83106eb9 (patch) | |
tree | 39d008ec7e26d341beff0041d219c6f99fa35cda /src/dotty/tools/dotc/repl/Main.scala | |
parent | 37b6df435f1595f8610ec6d5fbe16d079da2eff7 (diff) | |
download | dotty-4550b524771af0719846eb906795a5ba83106eb9.tar.gz dotty-4550b524771af0719846eb906795a5ba83106eb9.tar.bz2 dotty-4550b524771af0719846eb906795a5ba83106eb9.zip |
Revisions to REPL
Changes necessary to make basic REPL functionality work.
Major refactoing: Code of Interpreter is now in CompilingInterpreter.scala.
Interpreter.scala contains just the API.
Diffstat (limited to 'src/dotty/tools/dotc/repl/Main.scala')
-rw-r--r-- | src/dotty/tools/dotc/repl/Main.scala | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/repl/Main.scala b/src/dotty/tools/dotc/repl/Main.scala new file mode 100644 index 000000000..ef362ce94 --- /dev/null +++ b/src/dotty/tools/dotc/repl/Main.scala @@ -0,0 +1,27 @@ +package dotty.tools +package dotc +package repl + +/* This REPL was adapted from an old (2008-ish) version of the Scala + * REPL. The original version from which the adaptation was done is found in: + * + * https://github.com/odersky/legacy-svn-scala/tree/spoon + * + * The reason this version was picked instead of a more current one is that + * the older version is much smaller, therefore easier to port. It is also + * considerably less intertwined with nsc than later versions. + * + * There are a number of TODOs: + * + * - re-enable bindings (urgent, easy) + * - re-enable jline support (urgent, easy) + * - create or port REPL tests (urgent, intermediate) + * - copy improvements of current Scala REPL wrt to this version + * (somewhat urgent, intermediate) + * - make string generation more functional (not urgent, easy) + * - better handling of ^C (not urgent, intermediate) + * - syntax highlighting (not urgent, intermediate) + * - integrate with presentation compiler for command completion (not urgent, hard) + */ +/** The main entry point of the REPL */ +object Main extends REPL
\ No newline at end of file |