{"id":20128534,"url":"https://github.com/cococry/lantern","last_synced_at":"2025-06-26T14:33:14.535Z","repository":{"id":212172375,"uuid":"612975899","full_name":"cococry/Lantern","owner":"cococry","description":"Stack based programming language in C","archived":false,"fork":false,"pushed_at":"2023-04-12T17:52:18.000Z","size":238,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T18:05:28.260Z","etag":null,"topics":["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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cococry.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,"roadmap":null,"authors":null}},"created_at":"2023-03-12T14:43:47.000Z","updated_at":"2025-01-01T11:44:37.000Z","dependencies_parsed_at":"2023-12-12T22:48:36.410Z","dependency_job_id":null,"html_url":"https://github.com/cococry/Lantern","commit_stats":null,"previous_names":["cococry/lantern"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cococry%2FLantern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cococry%2FLantern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cococry%2FLantern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cococry%2FLantern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cococry","download_url":"https://codeload.github.com/cococry/Lantern/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248063862,"owners_count":21041854,"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":["programming-language"],"created_at":"2024-11-13T20:27:56.209Z","updated_at":"2025-04-09T15:50:44.954Z","avatar_url":"https://github.com/cococry.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lantern\n![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)\n\n\u003cimg src=\"https://github.com/cococry/Lantern/blob/main/branding/lantern_logo.png\"\n     alt=\"Lantern Logo\"\n     style=\"float: left; margin-right: 10px;\" \n     width=230px\n     /\u003e\n     \n**Lantern** is a [stack based](https://en.wikipedia.org/wiki/Stack-oriented_programming), [interpreted](https://en.wikipedia.org/wiki/Interpreter_(computing)) programming language written in **C**.\nThe goal of the project is creating a fast, bloatless and powerful programming tool \nthat can be used for multiple purposes. \n\nThe language has **access to the underlying memory structure** and in general\nis desinged to be easily used as a [low level programming language](https://en.wikipedia.org/wiki/Low-level_programming_language) too.\n\nLantern is, due to the stackbased paradigm of the language it is written in \n[reverse polish notation](https://en.wikipedia.org/wiki/Reverse_Polish_notation).\nwich sets it apart from a lot languages that work with AST or other structures.\n\n## Feature list\n\n- [x] Conditions \u0026 loops\n- [x] Heap Memory System\n- [x] Stackframe System\n- [x] Variables \u0026 Type checking\n- [x] Stack Mechanics\n- [x] Raw Memory Access\n- [ ] Functions\n- [x] Else-If Functionality\n- [x] Macros\n- [ ] Access to Syscalls\n- [ ] Defining Structs (C-Style)\n- [ ] Adding Fundamental Variable Types (float, double, char...)\n- [x] String Concatenation \u0026 Equality Operators\n\n## Building\n\n### Linux\n\n#### Requirements\n- GCC Compiler\n- Make command\n\n```console\nmkdir bin\nmake\n```\n\n### Windows\n\n#### Requirements\n- GCC Compiler\n\n```console\nmkdir bin\nbuild.bat\n```\n\n## Example Usage\n\n### A implentation of the [FizzBuzz problem](https://de.wikipedia.org/wiki/Fizz_buzz)\n```bash\n0 = counter\n\nwhile counter 10000 \u003c run\n    counter 3 % 0 == counter 5 % 0 == and if\n        \"fizzbuzz\" println\n    elif counter 3 % 0 == then\n        \"fizz\" println\n    elif counter 5 % 0 == then\n        \"buzz\" println\n    end\n    counter println\n    counter 1 + = counter\nend\n```\n\n## Inspiration\n- [Forth](https://de.wikipedia.org/wiki/Forth_(Programmiersprache)), a stack based, imperative programming language\n- [Python](https://de.wikipedia.org/wiki/Python_(Programmiersprache)), a easy to used, interpreted programming language\n- [C](https://de.wikipedia.org/wiki/C_(Programmiersprache)), a statically typed, low level programming language\n\n\n## Contributing\n\nYou can contribue to Lantern by:\n  - [Fixing bugs or contributing to features](https://github.com/cococry/Lantern/issues)\n  - [Changing features or adding new functionality](https://github.com/cococry/Lantern/pulls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcococry%2Flantern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcococry%2Flantern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcococry%2Flantern/lists"}