{"id":13894282,"url":"https://github.com/eantcal/nubasic","last_synced_at":"2026-04-06T13:01:23.913Z","repository":{"id":99383386,"uuid":"39561139","full_name":"eantcal/nubasic","owner":"eantcal","description":"nuBASIC is an implementation of a BASIC interpreter and IDE for Windows and Linux","archived":false,"fork":false,"pushed_at":"2026-04-01T16:07:09.000Z","size":39264,"stargazers_count":43,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-04-03T01:11:23.045Z","etag":null,"topics":["android","basic","basic-programming-language","c-plus-plus","c-plus-plus-17","debugger","gtk2","ide","interpreter","language","linux","macosx","programming-language","syntax-highlighting","windows"],"latest_commit_sha":null,"homepage":"https://www.eantcal.eu","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eantcal.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-07-23T10:29:29.000Z","updated_at":"2026-04-01T16:07:14.000Z","dependencies_parsed_at":"2024-10-03T22:00:41.606Z","dependency_job_id":"47e892fc-b8f7-4b9c-8bbf-3deada606066","html_url":"https://github.com/eantcal/nubasic","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/eantcal/nubasic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eantcal%2Fnubasic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eantcal%2Fnubasic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eantcal%2Fnubasic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eantcal%2Fnubasic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eantcal","download_url":"https://codeload.github.com/eantcal/nubasic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eantcal%2Fnubasic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31473271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T08:36:52.050Z","status":"ssl_error","status_checked_at":"2026-04-06T08:36:51.267Z","response_time":112,"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":["android","basic","basic-programming-language","c-plus-plus","c-plus-plus-17","debugger","gtk2","ide","interpreter","language","linux","macosx","programming-language","syntax-highlighting","windows"],"created_at":"2024-08-06T18:01:28.467Z","updated_at":"2026-04-06T13:01:23.904Z","avatar_url":"https://github.com/eantcal.png","language":"C++","funding_links":[],"categories":["C++","Dialects"],"sub_categories":[],"readme":"# nuBASIC\n\nnuBASIC is a modern, open-source BASIC interpreter written in C++17, available for Windows, Linux, and macOS. It is designed to be both approachable for beginners and capable enough for real programs.\n\n![nuBASIC IDE on Linux/GTK](https://user-images.githubusercontent.com/13032534/27808819-69aaa2c2-6042-11e7-9132-675d1c71d162.png)\n\n## Features\n\n- **Structured programming** — `Sub`, `Function`, `For`, `While`, `Do…Loop While`, `If/ElIf/Else`; `Call` keyword; `ByRef` / `ByVal` parameter passing; `Include` / `#Include` for multi-file programs\n- **Rich type system** — Integer, Double, Boolean, Long64, String, Byte, Any, user-defined `Struct`\n- **Arrays and hash tables** built into the language\n- **Full file I/O** — sequential, binary, and random access\n- **Graphics** — lines, rectangles, ellipses, filled shapes, text, bitmaps, pixel access (Windows GDI / Linux X11)\n- **Screen mode switching** — `Screen 0` (text/headless) / `Screen 1` (GDI graphics), like GW-BASIC `SCREEN`; `-t` CLI flag for CI/scripting\n- **Flicker-free rendering** — `ScreenLock` / `ScreenUnlock` / `Refresh` for double-buffered animation\n- **Mouse and keyboard input** — `GetMouse()` returns a `Mouse` struct (`x`, `y`, `btn`) in one call\n- **Date/time** — `GetDateTime()` returns a `DateTime` struct with all fields in one call\n- **UTF-8** string literals and console output\n- **Built-in help** — `Help \u003ckeyword\u003e` and `Apropos \u003ctopic\u003e` accessible from the REPL\n- **IDE** for Windows and Linux (GTK+2) with syntax highlighting, auto-completion, and integrated debugger\n- **Tiny build** for headless/embedded systems (no graphics, no external dependencies)\n- **MIT License**\n\n## Documentation\n\n- **[Wiki](https://github.com/eantcal/nubasic/wiki)** — full language reference, graphics API, IDE guide, interpreter internals, and build instructions\n- **[User Guide](https://github.com/eantcal/nubasic/blob/master/docs/nubasic-guide.md)** — complete guide in a single document (v1.61)\n- **[Examples](https://github.com/eantcal/nubasic/tree/master/examples)** — ready-to-run `.bas` programs covering games, graphics, fractals, animations, and more\n\n## Quick Start\n\n```bash\n# Interactive REPL\nnubasic\n\n# Run a program file\nnubasic myprogram.bas\n```\n\n```basic\nPrint \"Hello, world!\"\n```\n\n## Building from Source\n\nnuBASIC builds with CMake 3.14+ and a C++20 compiler.\n\n**Windows (Visual Studio 2022):**\n\n```bat\ngit clone https://github.com/eantcal/nubasic.git\ncd nubasic\nmkdir build \u0026\u0026 cd build\ncmake -G \"Visual Studio 17 2022\" ..\ncmake --build . --config Release\n```\n\n**Linux:**\n\n```sh\ngit clone https://github.com/eantcal/nubasic.git\ncd nubasic\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake -j$(nproc)\nsudo make install\n```\n\n**Tiny build (no graphics, no IDE):**\n\n```sh\ncmake .. -DWITH_X11=OFF -DWITH_IDE=OFF\nmake -j$(nproc)\n```\n\nSee the [Building from Source](https://github.com/eantcal/nubasic/wiki/Building-from-Source) wiki page for full details including macOS, iOS/iSH, CMake options, and installer creation.\n\n## Running the Test Suite\n\nTests live in the `tests/` directory as `test_*.bas` files.  They use\n`Screen 0` (text mode) so output goes to stdout without needing a GUI.\n\n**Windows (PowerShell):**\n```powershell\n.\\tests\\run_tests.ps1 -Interpreter .\\build\\release\\Release\\nubasic.exe\n```\n\n**From Visual Studio:** right-click the **RunTests** target → Build.\n\n**Linux / macOS (Bash):**\n```sh\n./tests/run_tests.sh --interpreter ./build/release/nubasic\n```\n\nOr via CMake:\n```sh\ncmake --build build/release --target RunTests\n```\n\n## Platforms\n\n| Platform | Interpreter | IDE |\n|----------|-------------|-----|\n| Windows | `nubasic.exe` | `NuBasicIDE.exe` (GDI console + Scintilla editor) |\n| Linux | `nubasic` | `nubasicide` (GTK+2 + Scintilla editor) |\n| macOS | `nubasic` | — |\n| iOS (iSH) | `nubasic` (tiny) | — |\n\n## License\n\nnuBASIC is open source under the [MIT License](https://opensource.org/licenses/MIT).\n\nBug reports and feature requests: antonino.calderone@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feantcal%2Fnubasic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feantcal%2Fnubasic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feantcal%2Fnubasic/lists"}