{"id":18858014,"url":"https://github.com/kvbc/rylang","last_synced_at":"2025-08-09T01:53:31.262Z","repository":{"id":184664055,"uuid":"643620677","full_name":"kvbc/rylang","owner":"kvbc","description":"A programming language in progress","archived":false,"fork":false,"pushed_at":"2023-12-10T16:03:05.000Z","size":12320,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T01:53:30.899Z","etag":null,"topics":[],"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/kvbc.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":"2023-05-21T18:31:59.000Z","updated_at":"2023-11-08T21:04:54.000Z","dependencies_parsed_at":"2023-11-23T13:40:08.597Z","dependency_job_id":"944a1276-0666-4079-9d08-ef6d37fddb4b","html_url":"https://github.com/kvbc/rylang","commit_stats":null,"previous_names":["kvbc/rylang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kvbc/rylang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvbc%2Frylang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvbc%2Frylang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvbc%2Frylang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvbc%2Frylang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kvbc","download_url":"https://codeload.github.com/kvbc/rylang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvbc%2Frylang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269518573,"owners_count":24430637,"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-08T02:00:09.200Z","response_time":72,"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":[],"created_at":"2024-11-08T04:09:36.346Z","updated_at":"2025-08-09T01:53:31.223Z","avatar_url":"https://github.com/kvbc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rylang\n\nA programming language in progress, which this repository will host the compiler of.\n\nSee [docs/spec.md](docs/spec.md)\n\nFor ease of reading the Markdown files, I recommend opening them up in VSCode\n\n# TODO\n\n-   Link to external Markdown reader, for example: https://dillinger.io/ (this one doesn't work with custom heading ids)\n-   Better error messages and handling\n-   Perhaps separate all stringify functions in `ASTNode` into its own `Stringifier` class\n\n# Compiler\n\n```mermaid\ngraph TD\n    Lexer --\u003e |Tokens| Parser\n    Parser --\u003e |Untyped AST| Analyzer\n    Analyzer --\u003e |Untyped AST| Typer\n    Typer --\u003e |Typed AST| CTEE[Compile-time expression evaluator - CTEE]\n    subgraph Frontend\n        Lexer \u0026 Parser \u0026 Analyzer \u0026 Typer\n    end\n\n    CTEE ---\u003e |Unmodified Typed AST| Transpiler\n    CTEE .-\u003e |Modified Typed AST| Transpiler\n    Transpiler --\u003e C[C code]\n    C --\u003e CComp[C Compiler]\n\n    C .-\u003e JIT[C JIT]\n    JIT .-\u003e |evaluations| CTEE\n    CTEE \u003c.-\u003e |?| Macro[Macro Processor ?]\n\n    subgraph Third-party\n        JIT \u0026 CComp\n    end\n\n    subgraph Backend\n        Macro \u0026 CTEE \u0026 Transpiler\n    end\n\n    CComp --\u003e EXE[Final Executable]\n```\n\n# Overview\n\n```rust\nVector2 := $[\n    x, y #i32;\n    \n    add[self *#Vector2, other *Vector2] =\u003e [] = {\n        self.x += other.x;\n        self.y += other.y;\n    }\n]\n\nmain[] =\u003e [] = {\n    pos Vector2 = [1, 2];\n    ofs Vector2 = [3, 4];\n    pos.add[\u0026ofs];\n}\n```\n\n\u003c!--\n```rust\nast = import \"ast\";\nPair[T ast:Node \u0026 type] =\u003e ast:Node \u0026 struct = [\n    a T;\n    b T;\n]\nmain[] =\u003e [] = {\n    pair Pair[i32] = [1; 2]\n    sum i32 = pair.a + pair.b; // 3\n    dif i32 = pair..0 - pair..1; // -1\n}\n```\n--\u003e\n\n# Installing\n\n1. Get meson with `pip3 install meson`\n2. Get [ninja](https://github.com/ninja-build/ninja/releases)\n3. Run `setup.bat`\n\n# Building\n\nRun `build.bat`\n\n# Running\n\nRun `run.bat`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvbc%2Frylang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkvbc%2Frylang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvbc%2Frylang/lists"}