{"id":45778726,"url":"https://github.com/lk16/aaa","last_synced_at":"2026-02-26T10:52:16.053Z","repository":{"id":43959612,"uuid":"460949315","full_name":"lk16/aaa","owner":"lk16","description":"Stack based language","archived":false,"fork":false,"pushed_at":"2024-05-22T17:59:13.000Z","size":1991,"stargazers_count":3,"open_issues_count":56,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-22T18:01:45.408Z","etag":null,"topics":["hacktoberfest","stack-based-language"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lk16.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-02-18T17:42:02.000Z","updated_at":"2024-05-28T19:58:35.517Z","dependencies_parsed_at":"2023-11-25T14:28:31.123Z","dependency_job_id":"a9783ca5-8be5-4edb-aa88-cf771291d749","html_url":"https://github.com/lk16/aaa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lk16/aaa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk16%2Faaa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk16%2Faaa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk16%2Faaa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk16%2Faaa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lk16","download_url":"https://codeload.github.com/lk16/aaa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lk16%2Faaa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29856759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"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":["hacktoberfest","stack-based-language"],"created_at":"2026-02-26T10:52:15.364Z","updated_at":"2026-02-26T10:52:16.038Z","avatar_url":"https://github.com/lk16.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aaa\nStack-based language, like forth.\n\n### Contents\nThe following tools for the Aaa language can be found is this repo\n* A [parser](./python/aaa/parser/) for Aaa.\n* A [type checker](./python/aaa/type_checker/)\n* A [transpiler to Rust](./python/aaa/transpiler/)\n* A [VS Code extension](./aaa-vscode-extension/README.md) for the Aaa language.\n* A lot of tests, written both in python and Aaa\n\n### Examples\n```sh\ncd python\n\n# Run the obligatory hello world example\npdm run ./manage.py run 'fn main { \"Hello world\\n\" . }'\n\n# Run code from a file. Implements the famous fizzbuzz interview question.\npdm run ./manage.py run examples/fizzbuzz.aaa\n\n# Run bare-bones HTTP server in Aaa\npdm run ./manage.py run examples/http_server.aaa\n\n# Send request from different shell\ncurl http://localhost:8080\n```\n\n### Running tests\n\n```sh\n# Run tests written in Aaa\npdm run ./manage.py test .\n\n# Run tests written in Python\npdm run pytest\n```\n\n\n### Aaa features\n- elementary types (`int`, `bool`, `str`)\n- container types (`vec`, `map`)\n- type checking\n- branching, loops (`if`, `else`, `while`, `foreach`)\n- multi-file support (`import`)\n- [upcoming](https://github.com/lk16/aaa/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement)\n\n### Name\nThe name of this language is just the first letter of the Latin alphabet repeated three times. When code in this language doesn't work, its meaning becomes an [abbreviation](https://en.uncyclopedia.co/wiki/AAAAAAAAA!).\n\n### Setup\nAll these commands should be run from the root of this repository.\n\nThis project requires python 3.12.1 or newer. Consider using [pyenv](https://github.com/pyenv/pyenv).\n\n```sh\n# Download python 3.12.1\npyenv install 3.12.1\n\n# Use it in this project\npyenv local 3.12.1\n```\n\nThis project also requires rust, see instructions [here](https://www.rust-lang.org/tools/install) on how to install.\n\nAfter you setup rust and python, run the following commands.\n\n```sh\n# Install dependencies\npdm install\n\n# Tell Aaa where the standard library lives\nexport AAA_STDLIB_PATH=$(pwd)/stdlib\n\n# Run hello world program\npdm run ./manage.py run 'fn main { \"Hello world\\n\" . }'\n\n# Run tests\npdm run pytest\npdm run ./manage.py test .\n\n# Setup pre-commit hooks\npdm run pre-commit install\n```\n\nNow you can start running code in Aaa or develop the language!\n\nTo enable syntax highlighting for VS Code, enable the [Aaa language extension](./aaa-vscode-extension/README.md)\n\n\n### Aaa and porth\nAfter watching part of the [Youtube series](https://www.youtube.com/playlist?list=PLpM-Dvs8t0VbMZA7wW9aR3EtBqe2kinu4) on [porth](https://gitlab.com/tsoding/porth), I wanted to make my own stack-based language. Aaa and porth have some similarities, but obviously are not compatible with each other. No code was copied over from the porth repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flk16%2Faaa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flk16%2Faaa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flk16%2Faaa/lists"}