{"id":17280153,"url":"https://github.com/akuli/stupid-c-repl","last_synced_at":"2026-01-29T21:32:10.360Z","repository":{"id":81319569,"uuid":"96706099","full_name":"Akuli/stupid-c-repl","owner":"Akuli","description":"Stupid REPL for C and C++","archived":false,"fork":false,"pushed_at":"2017-07-09T19:47:28.000Z","size":5,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T01:03:26.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Akuli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-09T19:21:29.000Z","updated_at":"2024-06-13T01:03:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f976fd0-da32-464f-a13b-681090ca8f84","html_url":"https://github.com/Akuli/stupid-c-repl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Akuli/stupid-c-repl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fstupid-c-repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fstupid-c-repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fstupid-c-repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fstupid-c-repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Akuli","download_url":"https://codeload.github.com/Akuli/stupid-c-repl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akuli%2Fstupid-c-repl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28885563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T09:19:35.675Z","updated_at":"2026-01-29T21:32:10.331Z","avatar_url":"https://github.com/Akuli.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stupid-c-repl\n\nThis is a stupid REPL for C and C++. It writes the program to a\ntemporary file and compiles it every time you press enter.\n\n## Examples\n\nHello World!!!\n\n    $ python3 crepl.py\n    \u003e\u003e\u003e #include \u003cstdio.h\u003e\n    \u003e\u003e\u003e printf(\"Hello World!!!\\n\");\n    Hello World!!!\n    \u003e\u003e\u003e \n\nHello World with C++\n\n    $ CC=c++ python3 crepl.py\n    \u003e\u003e\u003e #include \u003ciostream\u003e\n    \u003e\u003e\u003e std::cout \u003c\u003c \"Hello World!\\n\";\n    Hello World!\n    \u003e\u003e\u003e \n\nVariables\n\n    $ python3 crepl.py\n    \u003e\u003e\u003e #include \u003cstdio.h\u003e\n    \u003e\u003e\u003e char s[] = \"Hello World!\"; \\\n    ... printf(\"%s\\n\", s);\n    Hello World!\n    \u003e\u003e\u003e \n\nIf, else, switch and case\n\n    $ python3 crepl.py\n    \u003e\u003e\u003e #include \u003cstdio.h\u003e\n    \u003e\u003e\u003e int i = 1; \\\n    ... if (i == 1) { \\\n    ...     printf(\"It's working!\\n\"); \\\n    ... } else { \\\n    ...     printf(\"It's not working!\\n\"); \\\n    ... }\n    It's working!\n    \u003e\u003e\u003e int i = 1; \\\n    ... switch (i) { \\\n    ... case 1: \\\n    ...     printf(\"It's working!\\n\"); \\\n    ...     break; \\\n    ... default: \\\n    ...     printf(\"It's not working!\"); \\\n    ...     break; \\\n    ... }\n    It's working!\n    \u003e\u003e\u003e \n\nHello World with GTK+ 3\n\n    $ CFLAGS=\"`pkg-config --cflags gtk+-3.0`\" LIBS=\"`pkg-config --libs gtk+-3.0`\" python3 crepl.py\n    \u003e\u003e\u003e #include \u003cgtk/gtk.h\u003e\n    \u003e\u003e\u003e gtk_init(\u0026argc, \u0026argv); \\\n    ... GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); \\\n    ... gtk_container_add(GTK_CONTAINER(window), gtk_label_new(\"Hello!\")); \\\n    ... g_signal_connect(window, \"delete-event\", gtk_main_quit, NULL); \\\n    ... gtk_widget_show_all(window); \\\n    ... gtk_main();\n    \u003e\u003e\u003e \n\nHello World with Python\n\n    $ CFLAGS=\"`pkg-config --cflags python3`\" LIBS=\"`pkg-config --libs python3`\" python3 crepl.py\n    \u003e\u003e\u003e Py_Initialize(); \\\n    ... PyRun_SimpleString(\"print('Hello World!')\"); \\\n    ... Py_Finalize();\n    Hello World!\n    \u003e\u003e\u003e \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakuli%2Fstupid-c-repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakuli%2Fstupid-c-repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakuli%2Fstupid-c-repl/lists"}