REPL for Arduino?

Coming mostly from Javascript, I'm still getting used to Arduino syntax. Sometimes I just want to run a line of Arduino to try to understand the language. As opposed to writing a sketch with a bunch of Serial.println's, uploading it to my Arduino Uno, watching the serial monitor, etc.

In Javascript I can run lines of code one by one in DevTools. In Ruby, I can run lines of code one by one with the Interactive Ruby Shell. I believe these are referred to as REPLs.

Is there anything like a REPL for the Arduino language?

If you just want to test some C++, you can use an online compiler such as: Online C++ Compiler and get instant results back. Of course, it is pure C++ and will not support Arduino specific stuff.
Also, C++ is not an interpreted language so you can't dynamically generate code statements and run them as you can say with java script (eval() etc.) .

6v6gt:
If you just want to test some C++, you can use an online compiler such as: Online C++ Compiler | Run C++ Code Online and get instant results back. Of course, it is pure C++ and will not support Arduino specific stuff.
Also, C++ is not an interpreted language so you can't dynamically generate code statements and run them as you can say with java script (eval() etc.) .

Thanks!