16

I'm just wondering if this is possible using either (Python, Java or C)? I'm looking for something like IPython for Python.

Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539
Mino Yarre
  • 161
  • 1
  • 1
  • 3
  • See [ Have you used any of the C++ interpreters (not compilers)? ](http://stackoverflow.com/questions/69539/have-you-used-any-of-the-c-interpreters-not-compilers/) and [ Is there an interpreter for C? ](http://stackoverflow.com/questions/584714/is-there-an-interpreter-for-c). – Matthew Flaschen Sep 23 '10 at 05:42
  • There is a very neat C++ interpreter in IRC (##c++) called Geordi: http://www.eelis.net/geordi/ So you can test it without installing. – math Jul 03 '13 at 07:50

3 Answers3

15

Yes, and such things already exist, you just have to google for them :-)

  • Ch is one popular example
  • CINT is another

That said, actually developing a functional interpreter like this from scratch is much more difficult than finding one online. So now it depends on what's behind your question - do you want just an interpreter to use? Then pick one of the linked above. Do you want to develop such an interpreter? Well, then start reading.

Community
  • 1
  • 1
Eli Bendersky
  • 263,248
  • 89
  • 350
  • 412
4

GDB, or any other debugger such as the ups debugger, will generally implement a subset of C that can be used interactively.

There is also the Ch C interpreter, a commercial C interpreter, and the open source ccons C interpreter, which is based on clang/LLVM.

Brian Campbell
  • 322,767
  • 57
  • 360
  • 340
2

c-repl should fit the bill.

sigjuice
  • 28,661
  • 12
  • 68
  • 93