Skip to content

Instantly share code, notes, and snippets.

@njlr
Last active August 15, 2016 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save njlr/580653f2ae398cc9859550584c243abf to your computer and use it in GitHub Desktop.
Save njlr/580653f2ae398cc9859550584c243abf to your computer and use it in GitHub Desktop.
// Jyt is a REPL for C++
// You can write code interactively
// Highlight some code and press alt-enter to execute it
// For example:
auto x = "hello world";
// Now you can query the value in the terminal on the right
// e.g. "x"
// You can also update the value
// x = "hello again";
// You can define functions
int foo(int x) {
return x + 1;
}
// And you can use standard libraries
#include<iostream>
int main(std::string x) {
std::cout << x << std::endl;
return 0;
}
auto result = main(x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment