I was wondering if there is something like an interpreter for C. That is, in a Linux terminal I can type in "python" and then code in that interpreter. (I'm not sure interpreter the right word). This is really helpful for testing different things out and I'm curious if something similar exists for C. Though I doubt it. The only thing I can think of that would do it would be the C shell...
相关问题
- Multiple sockets for clients to connect to
- What is the best way to do a search in a large fil
- glDrawElements only draws half a quad
- Index of single bit in long integer (in C) [duplic
- Equivalent of std::pair in C
the ROOT project provides a very functional C and C++ interpreter called Cint. I'm quite fond of it. It takes a little getting used to interpretively, though.
TCC is a very good choice as well, but i'm not able to vouch for its REPL
picoc - A very small C interpreter
I know we use CINT in class. It seemed pretty good you might want to give it a try!
Give a look to the Ch Interpreter.
More recently there is Cling (based on LLVM/Clang)
http://root.cern.ch/drupal/content/cling
It has been done, even though the vast majority of C work is compiled. One example is CH