{"id":25144273,"url":"https://github.com/bbpezsgo/interpreter","last_synced_at":"2025-04-03T05:41:35.483Z","repository":{"id":65773327,"uuid":"553993047","full_name":"BBpezsgo/Interpreter","owner":"BBpezsgo","description":"Programming language","archived":false,"fork":false,"pushed_at":"2024-05-22T05:58:35.000Z","size":3992,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-22T12:55:38.510Z","etag":null,"topics":["brainfuck","brainfuck-compiler","bytecode","code-generation","compiler","interpreter","parser","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BBpezsgo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-10-19T04:39:09.000Z","updated_at":"2024-06-11T06:35:37.405Z","dependencies_parsed_at":"2024-06-11T06:49:49.939Z","dependency_job_id":null,"html_url":"https://github.com/BBpezsgo/Interpreter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBpezsgo%2FInterpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBpezsgo%2FInterpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBpezsgo%2FInterpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBpezsgo%2FInterpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BBpezsgo","download_url":"https://codeload.github.com/BBpezsgo/Interpreter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944383,"owners_count":20858773,"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":["brainfuck","brainfuck-compiler","bytecode","code-generation","compiler","interpreter","parser","programming-language"],"created_at":"2025-02-08T19:39:50.339Z","updated_at":"2025-04-03T05:41:35.474Z","avatar_url":"https://github.com/BBpezsgo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Programming Language\n\n[![.Net 9.0](https://img.shields.io/badge/.NET-9.0-5C2D91)](#)\n[![C# 11](https://img.shields.io/badge/C%23-11-239120.svg)](#)\n\n## [VSCode Extension](https://github.com/BBpezsgo/InterpreterVSCodeExtension)\n\n## [Language Server](https://github.com/BBpezsgo/BBCode-LanguageServer)\n\n## About\nIt's my own programming language that can generate bytecodes (executed by a custom interpreter) and [brainfuck](https://esolangs.org/wiki/brainfuck) (with limitations).\n\nI found a [youtuber](https://www.youtube.com/c/uliwitness) who made a great [tutorial series](https://www.youtube.com/watch?v=2DTNDrdqGlo\u0026list=PLZjGMBjt_VVAMW53XnMtNfAQowZwMviBF) showing how to make a parser and a compiler. I basically copied the code with minimal changes. When the series ended, I was left on my own, so I improved the code myself.\n\n## Command Line Arguments\n\n`BBLang [options...] source`\n\n- `--help` Prints some information about the program\n\n- `--verbose` Prints some information about the compilation process\n\n- `--format format` Specifies which generator to use. Supported formats are `bytecode`, `brainfuck` and `assembly`.\n\n\u003e [!WARNING]\n\u003e Brainfuck sometimes aint working.\n\n\u003e [!WARNING]\n\u003e Assembly 100% not working.\n\n- `--debug` Launches the debugger screen (only avaliable on Windows) [More info](https://github.com/BBpezsgo/Interpreter/wiki/Debugger)\n\n- `--output file` Writes the generated code to the specified file (this option only works for brainfuck)\n\n- `--throw-errors` Crashes the program whenever an exception thrown. This useful for me when debugging the compiler.\n\n- `--print-instructions` Prints the generated instructions before execution\n\n- `--print-memory` Prints the memory after execution\n\n- `--basepath directory` Sets the path where source files will be searched for `using` statements\n\n- `--dont-optimize` Disables all optimization\n\n- `--no-debug-info` Disables debug information generation (if you compiling into brainfuck, generating debug informations will take a lots of time)\n\n- `--stack-size size` Specifies the stack size\n\n- `--heap-size size` Specifies the HEAP size\n\u003e [!NOTE]\n\u003e For brainfuck, if you specify zero the HEAP will not be initialized and wherever you try to access it, it will not compile.\n\n\u003e [!NOTE]\n\u003e Because of how HEAP represented, its size can't be larger than 126.\n\n- `--no-nullcheck` Disables null check generation when dereferencing a pointer\n\n## Hello World:\n```\nusing \"https://raw.githubusercontent.com/BBpezsgo/Interpreter/master/StandardLibrary/System.Console.bbc\";\n\nPrintLine(\"hello, world\");\n```\n\n## api-ms-win-crt-string-l1-1-0.dll Missing Error\nThis can be fixed by install [this](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170).\n\n## Project Structure\n\n- `/Examples` Some basic examples for using the project. I only tested the `ExposedFunctions.cs`, `ExternalFunctions.cs` and `HelloWorld.cs` 😅.\n- `/StandardLibrary` Contains some preimplemented functions and structures and some \"external function\" declarations.\n- `/TestFiles` Contains all the test files I use for testing the project.\n- `/Source` All the source code for the core functionality can be found here.\n- `/Utility` This contains the command line utility and the debugger.\n\n## Project Dependencies\n\n### Core Library\n\n- [System.Collections.Immutable](https://www.nuget.org/packages/System.Collections.Immutable)\n\u003e [!NOTE]\n\u003e With .NET 9 this is already installed.\n\n### Command Line Utility\n\n- The core library\n- [Win32-Stuff](https://github.com/BBpezsgo/Win32-Stuff)\n- [Maths](https://github.com/BBpezsgo/Math)\n\n## Unity\n\n- Import the `/Unity/package.json` to the Unity project.\n- Make sure to make a symlink to the Sources directory. Run this inside the `/Unity` directory:\n```sh\nln -s ../Source Runtime\n```\n\u003e [!NOTE]\n\u003e If you are on Windows, move and rename the `/Source` directory to `/Unity/Runtime`.\n\n- Inside Unity, naviage to `Edit \u003e Project Settings... \u003e Player \u003e Other Settings \u003e Scripting Define Symbols` and add the `UNITY` variable.\n- If you are using the Burst compiler, add `UNITY_BURST` too.\n- If you are not using the Burst compiler, remove the `Unity.Burst` reference from `/Unity/BBLang.asmdef`.\n- If you want some profiler analytics, add `UNITY_PROFILER` too.\n- You can install the necessary NuGet packages with this tool: [NuGetForUnity](https://github.com/GlitchEnzo/NuGetForUnity).\n\n## [Tests](https://github.com/BBpezsgo/Interpreter/blob/master/Tests.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbpezsgo%2Finterpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbpezsgo%2Finterpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbpezsgo%2Finterpreter/lists"}