{"id":23148893,"url":"https://github.com/stynh/novabasicv2","last_synced_at":"2025-07-01T10:03:49.704Z","repository":{"id":210103321,"uuid":"724562288","full_name":"StynH/NovaBASICv2","owner":"StynH","description":"Custom programming language interpreted in C#. I have no earlier experience building Interpreters. Hobby project.","archived":false,"fork":false,"pushed_at":"2023-12-13T11:31:59.000Z","size":2926,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T10:03:49.523Z","etag":null,"topics":["abstract-syntax-tree","basic-programming","csharp","interpreter","programming-language"],"latest_commit_sha":null,"homepage":"","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/StynH.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}},"created_at":"2023-11-28T10:35:49.000Z","updated_at":"2024-11-02T15:46:19.000Z","dependencies_parsed_at":"2023-12-10T16:41:57.742Z","dependency_job_id":null,"html_url":"https://github.com/StynH/NovaBASICv2","commit_stats":null,"previous_names":["stynh/novabasicv2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StynH/NovaBASICv2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StynH%2FNovaBASICv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StynH%2FNovaBASICv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StynH%2FNovaBASICv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StynH%2FNovaBASICv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StynH","download_url":"https://codeload.github.com/StynH/NovaBASICv2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StynH%2FNovaBASICv2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262941541,"owners_count":23388148,"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":["abstract-syntax-tree","basic-programming","csharp","interpreter","programming-language"],"created_at":"2024-12-17T17:13:28.662Z","updated_at":"2025-07-01T10:03:49.667Z","avatar_url":"https://github.com/StynH.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NovaBASICv2\n![novabasic](https://github.com/StynVanDeHaterd/NovaBASIC/assets/9077578/80dc5727-aeb1-4a8d-b800-6cc74a2b202f)\n\nSecond implementation of my own programming language called NovaBASIC. Made in C# .NET 8, using Blazor as front-end.\n\n## Examples\nStandard operations in NovaBASIC:\n\n### Variables\n```\nLET i = 50\nIMMUTABLE j = 100\nLET myArray = NEW[10]\n```\n\n### Loops\n```\nFOR LET i = 0 TO 10\n    PRINT i\nEND\n\nFOR LET i = 0 TO 10 STEP 2\n    PRINT i\nEND\n\nLET j = 0\nWHILE j \u003c 10\n    PRINT j\n    j = j + 1\nENDWHILE\n\nLET h = 10\nREPEAT\n    PRINT h\n    h = h + 1\nUNTIL h \u003e 20\n```\n\n### Functions \u0026 References\n```\nFUNC myFunc(arrRef, index)\n    arrRef[index] = 20\nENDFUNC\n\nLET myArray = NEW[5]\nmyFunc(REF myArray, 4)\n```\n\n### If/Else\n```\nLET i = 6\n\nIF i % 2 == 0 THEN\n    PRINT \"Value \" + i + \" is dividable by 2.\"\nELSEIF i % 3 == 0 THEN\n    PRINT \"Value \" + i + \" is dividable by 3.\"\nENDIF\n```\n\n### Switch\n```\nLET dayOfWeek = \"Friday\"\n\nSWITCH dayOfWeek\n    CASE \"Monday\":\n        PRINT \"Start of the workweek\"\n        BREAK\n    CASE \"Friday\":\n        PRINT \"End of the workweek\"\n        BREAK\n    DEFAULT:\n        PRINT \"Middle of the workweek\"\n        BREAK\nENDSWITCH\n```\n\n### Guard\n```\nFUNC myFunc(param)\n    GUARD param \u003c 20 ELSE\n        PRINT \"Too much!\"\n        RETURN null\n    ENDGUARD\n\n    RETURN param * 50\nENDFUNC\n\nLET i = 10\nLET j = 20\nmyFunc(i)\nmyFunc(j)\n```\n\n### Type Checking\n```\nSTRUCT Person\n    Name\nENDSTRUCT\n\nFUNC GetNameLength(p)\n    GUARD p IS Person ELSE\n        PRINT \"Parameter must be a 'Person'!\"\n        RETURN -1\n    ENDGUARD\n\n    RETURN COUNT(p.Name)\nENDFUNC\n\nPRINT GetNameLength(NEW Person(\"Bob Ross\"))\nPRINT GetNameLength(25)\n```\n\n### Array Slicing\n```\nLET arr = NEW[10]\nLET firstTwo = arr[:3]\nLET lastSeven = arr[3:]\nLET between = arr[2:5]\nLET inTwo = arr[1:10:2]\n```\n\n### Import/Export (Desktop Only)\n```\n//File1.nova\nIMMUTABLE myConst = 3.14\n\nSTRUCT myStruct\n    Val\nENDSTRUCT\n\nEXPORT\n    myConst,\n    myStruct\nENDEXPORT\n\n//File2.nova\nFUNC myFunc(var1)\n    PRINT var1\nENDFUNC\n\nEXPORT\n    myFunc\nENDEXPORT\n\n//File3.nova\nIMPORT FROM \"File1\"\nIMPORT \"MyFunc\" FROM \"File2\"\n\nLET i = NEW myStruct(myConst)\nmyFunc(i)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstynh%2Fnovabasicv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstynh%2Fnovabasicv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstynh%2Fnovabasicv2/lists"}