First, let's have a look at the infrastructure developed for Scala. Let's have a look at the Scala interpreter first.
Scala infrastructure
Scala interpreter
Although Scala is a compiled language, it has its own interpreter. It comes as part of the standard language distribution, and if you install Scala, you will have access to it. Please consult https://www.scala-lang.org/ on the instructions to install Scala.
You can access the interpreter from the command line by simply typing scala.
In this interpreter, you can run Scala expressions and get evaluations of them in real time. Besides ordinary expressions, you can run interpreter-specific expressions to tune it up. This kind of expression usually starts with a...