{"id":15863898,"url":"https://github.com/dimasmith/brainterpreter","last_synced_at":"2025-08-07T23:04:44.509Z","repository":{"id":159766646,"uuid":"620528672","full_name":"dimasmith/brainterpreter","owner":"dimasmith","description":"Draft implementation of a toy programming language interpreter. For educational purposes.","archived":false,"fork":false,"pushed_at":"2025-08-03T11:13:16.000Z","size":1562,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-03T13:08:17.829Z","etag":null,"topics":["compilers","interpreters","virtual-machines"],"latest_commit_sha":null,"homepage":"https://dimasmith.github.io/brainterpreter/","language":"Rust","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/dimasmith.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2023-03-28T21:31:56.000Z","updated_at":"2025-08-03T11:13:19.000Z","dependencies_parsed_at":"2023-09-30T12:31:54.050Z","dependency_job_id":"c5056ff1-d966-4209-b50d-5d6b0254fb32","html_url":"https://github.com/dimasmith/brainterpreter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dimasmith/brainterpreter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimasmith%2Fbrainterpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimasmith%2Fbrainterpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimasmith%2Fbrainterpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimasmith%2Fbrainterpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimasmith","download_url":"https://codeload.github.com/dimasmith/brainterpreter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimasmith%2Fbrainterpreter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268550461,"owners_count":24268392,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["compilers","interpreters","virtual-machines"],"created_at":"2024-10-05T23:01:08.675Z","updated_at":"2025-08-07T23:04:44.479Z","avatar_url":"https://github.com/dimasmith.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brainterpreter\n\n[![Build](https://github.com/dimasmith/brainterpreter/actions/workflows/rust.yml/badge.svg)](https://github.com/dimasmith/brainterpreter/actions/workflows/rust.yml)\n[![Coverage](https://codecov.io/gh/dimasmith/brainterpreter/branch/main/graph/badge.svg?token=ZCTAGTAWRJ)](https://codecov.io/gh/dimasmith/brainterpreter)\n[![Documentation](https://github.com/dimasmith/brainterpreter/actions/workflows/znai-pages-deploy.yml/badge.svg)](https://github.com/dimasmith/brainterpreter/actions/workflows/znai-pages-deploy.yml)\n\nAn interpreter for a Bauble programming language.\nCreated for TechIn talks in [Levi9](https://www.levi9.com/).\n\nNOTE: it is a sandbox of the implementation.\nI plan to deliver a new repository with the same functionality but better suited for education.\n\nAn interpreter is created as an educational experiment.\nThe main goal is to run the interpreter of [Brainfuck](https://esolangs.org/wiki/Brainfuck) written in this toy language. \nYou can check a \"hello, world\" in `examples` section.\n\n## What's inside?\n\nThe repository containts parser, compiler, and virtual machine for a Bauble programming language.\nThe language has C-like syntax. Supported features:\n\n- arithmetics;\n- strings;\n- boolean values;\n- if statement;\n- while loop;\n- arrays;\n\n## What's Bauble?\n\nBauble is a toy programming language created specifically for a tech talk.\n\n## Documentation\n\nPlease check the [project pages](https://dimasmith.github.io/brainterpreter/) for some docs.\n\nDocumenting is still very much in progress.\n\n## Running interpreter\n\nBy default, the project builds as a library with all parts to run the interpreter.\nIf you don't want to build your own binary, build brainterpreter with the `cli` feature enabled.\n\n```shell\ncargo build --features cli\n```\n\nThe `cli` feature provides a `bauble` binary. \n`bauble` runs the interpreter for a given source file.\n\nIf you want to trace the virtual machine execution for your program, set logging level to `debug`:\n\n```shell\nRUST_LOG=debug bauble examples/hello_world.bbl run\n```\n\nAfter the build the binary can be found in `target/debug/bauble` (or `target/release/bauble` if you build with `--release` flag).\n\nYou can also run the interpreter with the `cargo run` command:\n\n```shell\ncargo run --features cli -- examples/hello_world.bbl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimasmith%2Fbrainterpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimasmith%2Fbrainterpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimasmith%2Fbrainterpreter/lists"}