Tim
Tim

Reputation: 99398

read-eval-print loop (REPL) for several languages

I was wondering if there are some recommended read-eval-print loop (REPL) respectively for

(1) C++

(2) C

(3) Java

Thanks!

Upvotes: 0

Views: 1312

Answers (4)

chiperortiz
chiperortiz

Reputation: 4991

This seems to be avalaible in Java 9 coming september 22 of 2016.

http://openjdk.java.net/jeps/222

Upvotes: 0

scravy
scravy

Reputation: 12283

There is also a Java REPL using the javax.tools.JavaCompiler interface here: http://www.scravy.de/blog/2012-02-27/a-read-eval-print-loop-for-java.htm (runs on the command line).

Upvotes: 0

Ken Bloom
Ken Bloom

Reputation: 58770

C and C++

You can use CERN's cint.

Java

You can use BeanShell, or if you don't care so much about having Java syntax (e.g. your goal is just to make sure the classes do what you want), you can use Groovy, Scala, JRuby, or Jython.

Upvotes: 4

tchrist
tchrist

Reputation: 80384

Those aren’t languages that support a dynamic eval function.

Upvotes: 0

Related Questions