I've just come across the Ubuntu c-repl package which provides a REPL interface for C programming. Great! It is quite excellent for trying snippets and ideas, and intuitive to use. I love it. But there is no documentation at all, and I'd like to find out more about how to drive it.
Example:
> int foo( double x ) { return x+0.5;}
> foo(5.5);
> int x = foo(5.5);
> x
p x
$1 = 6
Things are going swimmingly well but then:
> #include <stdlib.h>
<stdin>:1:22: warning: extra tokens at end of #include directive
So I guess it doesn't like that... Anyone know of a good tutorial/blog/reference?