{"id":28824050,"url":"https://github.com/rcosta358/aguda-rs","last_synced_at":"2026-05-03T07:38:44.954Z","repository":{"id":296895480,"uuid":"959372887","full_name":"rcosta358/aguda-rs","owner":"rcosta358","description":"Compiler in Rust for the AGUDA Programming Language","archived":false,"fork":false,"pushed_at":"2025-07-18T16:06:56.000Z","size":629,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T20:42:27.717Z","etag":null,"topics":["ast","code-generation","compiler","inkwell","lalrpop","lexer","llvm","logos","lr-parser","parser","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rcosta358.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-02T17:26:56.000Z","updated_at":"2025-07-18T16:07:00.000Z","dependencies_parsed_at":"2025-06-03T06:46:57.221Z","dependency_job_id":"4cc98553-ad61-4ad1-98ab-7dc2b643f055","html_url":"https://github.com/rcosta358/aguda-rs","commit_stats":null,"previous_names":["r1c4rdco5t4/aguda-rs","rcosta358/aguda-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rcosta358/aguda-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcosta358%2Faguda-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcosta358%2Faguda-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcosta358%2Faguda-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcosta358%2Faguda-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rcosta358","download_url":"https://codeload.github.com/rcosta358/aguda-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcosta358%2Faguda-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["ast","code-generation","compiler","inkwell","lalrpop","lexer","llvm","logos","lr-parser","parser","rust"],"created_at":"2025-06-19T01:02:32.159Z","updated_at":"2026-04-28T01:32:21.758Z","avatar_url":"https://github.com/rcosta358.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AGUDA Compiler in Rust 🏝️🦀\r\n\r\n## Introduction\r\n\r\nCompiler for the AGUDA programming language implemented in Rust for the Compilation Techniques course.\r\nAGUDA is an imperative language where programs consist solely of expressions.\r\nEach program is a sequence of declarations, introduced by the `let` keyword.\r\n\r\n## Syntax\r\n\r\n### Expressions\r\n\r\n- **Variable**: `id`\r\n- **Literals**: `...`, `-1`, `0`, `1`, `...`, `true`, `false`, `null`, `\"string\"`\r\n- **Binary operators**: `;`, `+`, `-`, `*`, `/`, `%`, `^`, `==`, `!=`, `\u003c`, `\u003c=`, `\u003e`, `\u003e=`, `!`, `||`, `\u0026\u0026`\r\n- **Unary operators**: `-`, `!`\r\n- **Function call**: `id(exp1,...,expn)` (n \u003e= 1)\r\n- **Assignment**: `set lhs = exp`\r\n- **Variable declarations**: `let id : type = exp`\r\n- **Conditionals**: `if exp1 then exp2 else exp3`, `if exp1 then exp2`\r\n- **While loop**: `while exp1 do exp2`\r\n- **Array creation**: `new type [ exp1 | exp2 ]`\r\n- **Array access**: `exp1[exp2]`\r\n- **Parenthetical expression**: `(exp)`\r\n\r\n### Declarations\r\n\r\n- **Variables**: `let id : type = exp`\r\n- **Functions**: `let id (id1, ..., idn) : type = exp` (n \u003e= 1)\r\n\r\n### Types\r\n\r\n- **Basic**: `Int`, `Bool`, `Unit`, `String`\r\n- **Arrays**: `type []`\r\n- **Functions**: `type -\u003e type` or `(type1, ..., type) -\u003e type` (n \u003e= 1)\r\n\r\n## Example\r\n\r\nHere's a simple AGUDA program that creates a 2x2 identity matrix and prints it:\r\n\r\n```aguda\r\nlet printMatrix (a) : Int[][] -\u003e Unit =\r\n    let i : Int = 0;\r\n    while i \u003c length(a) do (\r\n        let j : Int = 0;\r\n        while j \u003c length(a[0]) do (\r\n            print(a[i][j]); print(\" \");\r\n            set j = j + 1\r\n        );\r\n        print(\"\\n\");\r\n        set i = i + 1\r\n    )\r\n\r\nlet main(_): Unit -\u003e Unit =\r\n    let a : Int[][] = new Int[][2 | new Int[2 | 0]];\r\n    set a[0][0] = 1;\r\n    set a[1][1] = 1;\r\n    printMatrix(a)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcosta358%2Faguda-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcosta358%2Faguda-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcosta358%2Faguda-rs/lists"}