{"id":13444547,"url":"https://github.com/udhos/basgo","last_synced_at":"2026-03-12T13:34:41.434Z","repository":{"id":57487851,"uuid":"162175519","full_name":"udhos/basgo","owner":"udhos","description":"basgo compiles BASIC-lang to Golang. Then 'go build' can translate code to native executable binary.","archived":false,"fork":false,"pushed_at":"2023-03-09T03:12:32.000Z","size":840,"stargazers_count":37,"open_issues_count":5,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-31T16:13:46.195Z","etag":null,"topics":["basic","basic-lang","basica","binary","compiler","executable","go","golang","gw-basic","gwbasic","native"],"latest_commit_sha":null,"homepage":"","language":"Go","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/udhos.png","metadata":{"files":{"readme":"README-windows.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}},"created_at":"2018-12-17T18:49:03.000Z","updated_at":"2024-10-16T21:36:09.000Z","dependencies_parsed_at":"2024-01-16T02:45:30.153Z","dependency_job_id":"3ccf5a51-f901-4fd9-9fd5-286cbe80c72d","html_url":"https://github.com/udhos/basgo","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fbasgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fbasgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fbasgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fbasgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udhos","download_url":"https://codeload.github.com/udhos/basgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252980321,"owners_count":21835209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["basic","basic-lang","basica","binary","compiler","executable","go","golang","gw-basic","gwbasic","native"],"created_at":"2024-07-31T04:00:29.904Z","updated_at":"2026-03-12T13:34:36.398Z","avatar_url":"https://github.com/udhos.png","language":"Go","readme":"# Recipe for Windows\n\n# Requirements\n\n## Install 7-zip\n\nYou will need 7-zip to extract mingw64 files in the next step.\n\nIf you have another archiving software that can extract .7z files, you can skip this step.\n\nInstall 7-zip from https://www.7-zip.org/\n\n## Install mingw64\n\n- Download x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0.7z from:\n\nhttps://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/sjlj/x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0.7z\n\n- Within the package, find the folder `mingw64` and extract it as c:\\mingw64\n\n- Add c:\\mingw64\\bin to the environment variable PATH\n\n- If the installation is fine, you should be able to test it with `gcc --version`\n\n```\nC:\\Users\\evert\u003egcc --version\ngcc (x86_64-posix-sjlj-rev0, Built by MinGW-W64 project) 8.1.0\nCopyright (C) 2018 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions.  There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\nC:\\Users\\evert\u003e\n```\n\n## Install Git Bash\n\nIf you have git in the system, skip this one.\n\nInstall Git Bash from https://gitforwindows.org/\n\nTest it with `git version`:\n\n```\nC:\\Users\\evert\u003egit version\ngit version 2.33.0.windows.2\n\nC:\\Users\\evert\u003e\n```\n\n## Install Golang\n\nInstall Golang from https://golang.org/dl/\n\nCurrently, pick this one: https://golang.org/dl/go1.17.windows-amd64.msi\n\nTest it with `go version`\n\n```\nC:\\Users\\evert\u003ego version\ngo version go1.17 windows/amd64\n\nC:\\Users\\evert\u003e\n```\n\n## Install basgo\n\n- Download this file:\n\nhttps://github.com/udhos/basgo/releases/download/v0.10.0/basgo_windows_amd64_v0.10.0.zip\n\n- Extract these two files into a directory in your PATH:\n\n```\nbasgo-build.exe\nbasc.exe\n```\n\nTest it with `basc`, like this:\n\n```\nC:\\Users\\evert\u003ebasc\n2021/09/01 21:28:21 basc version 0.10.0 runtime go1.17 GOMAXPROC=12\nbasc: missing input files\nusage: basc FILE [flags]\n  -basgoBuild string\n        basgo-build command (default \"basgo-build\")\n  -baslibImport string\n        baslib package (default \"github.com/udhos/baslib/baslib\")\n  -baslibModule string\n        baslib module (default \"github.com/udhos/baslib@v0.11.0\")\n  -getFlags string\n        go get flags\n  -output string\n        output file name\n\nC:\\Users\\evert\u003e\n```\n\n# Compilation\n\n## Create a sample program\n\n    echo 10 print \"hello world!\" \u003e hello.bas\n\n## Compile with basc\n\n    basc hello.bas\n\nThat `basc` invokation will output the compiled code into a folder named `hello`.\n\n## Run the compiled program\n\n    .\\hello\\hello.exe\n\n## Example\n\n```\nC:\\Users\\evert\u003eecho 10 print \"hello world!\" \u003e hello.bas\n\nC:\\Users\\evert\u003ebasc hello.bas\n2021/09/01 21:30:24 basc version 0.10.0 runtime go1.17 GOMAXPROC=12\n2021/09/01 21:30:24 basc: basename: hello\n2021/09/01 21:30:24 basc: cat input=hello.bas output=hello\\hello.bas\n2021/09/01 21:30:24 basc: basgo-build: command=basgo-build input=hello\\hello.bas output=hello\\hello.go baslibImport=github.com/udhos/baslib/baslib\n2021/09/01 21:30:24 basgo-build version 0.10.0 runtime go1.17 GOMAXPROC=12\n2021/09/01 21:30:24 basgo-build baslibImport=github.com/udhos/baslib/baslib\n2021/09/01 21:30:24 basgo-build: compile: baslibImport: github.com/udhos/baslib/baslib\n2021/09/01 21:30:24 basgo-build: reading BASIC code from stdin...\n2021/09/01 21:30:24 basgo-build: DEBUG=[] debug=false level=0\n2021/09/01 21:30:24 basgo-build: INPUTSZ=[] size=0\n2021/09/01 21:30:24 basgo-build: input buffer size: 4096\n2021/09/01 21:30:24 defineType: range a-z as FLOAT\n2021/09/01 21:30:24 basgo-build: reading BASIC code from stdin...done\n2021/09/01 21:30:24 basgo-build: FIXME WRITEME replace duplicate lines\n2021/09/01 21:30:24 basgo-build: checking lines used/defined\n2021/09/01 21:30:24 basgo-build: sorting lines\n2021/09/01 21:30:24 basgo-build: scanning used vars\n2021/09/01 21:30:24 basgo-build: issuing code\n2021/09/01 21:30:24 basc: gofmt: hello\\hello.go\n2021/09/01 21:30:24 basc: build: dir=hello baslibModule=github.com/udhos/baslib@v0.11.0 output=\n2021/09/01 21:30:24 basc: build: entering dir=hello\ngo: creating new go.mod: module hello\ngo: to add module requirements and sums:\n        go mod tidy\ngo get: added github.com/udhos/baslib v0.11.0\n2021/09/01 21:30:28 basc: output: hello\\hello\n\nC:\\Users\\evert\u003e.\\hello\\hello.exe\n2021/09/01 21:31:46 baslib: version 0.11.0 runtime go1.17 GOMAXPROC=12\n2021/09/01 21:31:46 baslib: BASLIB_ALERT_OFF= showAlert=true\n2021/09/01 21:31:46 baslib: env var BASLIB_ALERT_OFF is empty, set it to non-empty to disable alerts\n2021/09/01 21:31:46 loading codepage 437\n2021/09/01 21:31:46 loading codepage 437: found 256 symbols\n2021/09/01 21:31:46 BASLIB ALERT: newInkey(): will consume os.Stdin\nhello world!\n\nC:\\Users\\evert\u003e\n```\n","funding_links":[],"categories":["Dialects"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fbasgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudhos%2Fbasgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fbasgo/lists"}