{"id":19011248,"url":"https://github.com/drakmord2/rec-compiler","last_synced_at":"2026-05-16T06:35:51.326Z","repository":{"id":106619109,"uuid":"94668815","full_name":"Drakmord2/rec-compiler","owner":"Drakmord2","description":"A compiler for the REC language implemented in Java.","archived":false,"fork":false,"pushed_at":"2017-06-30T23:31:13.000Z","size":183,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T15:51:30.104Z","etag":null,"topics":["ada","compiler","java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Drakmord2.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}},"created_at":"2017-06-18T06:12:50.000Z","updated_at":"2023-01-19T21:22:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"44ca87c7-2c0d-44f7-ada2-a805b13d0edc","html_url":"https://github.com/Drakmord2/rec-compiler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Drakmord2/rec-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Frec-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Frec-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Frec-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Frec-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drakmord2","download_url":"https://codeload.github.com/Drakmord2/rec-compiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakmord2%2Frec-compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33092710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["ada","compiler","java"],"created_at":"2024-11-08T19:13:52.894Z","updated_at":"2026-05-16T06:35:51.311Z","avatar_url":"https://github.com/Drakmord2.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REC Compiler\n\nA compiler for the REC language implemented in Java.\n\n## REC programming language overview\nREC is based on the ADA language.\n\n```ada\nglobal num : Integer := 8;\n\nfunction fibonacci(pos : Integer) return Integer is\nbegin\n    if pos \u003c= 0 then\n        return 0;\n    end if;\n    \n    if pos \u003c 3 then\n        return 1;\n    end if;\n    \n    return fibonacci(pos-1) + fibonacci(pos-2);\nend fibonacci;\n\nprocedure Main () is\nbegin\n    show fibonacci(num);\n    \n    return;\nend Main;\n```\nYou can find REC's context-free grammars written in an EBNF variant on [/docs](https://github.com/Drakmord2/rec-compiler/tree/develop/docs)\n\n## The Compiler\nRight now lexical, syntatic, and semantic analysis are performed. Code generation will be added on the next release.\n\n* **Implementation**\n    * The Scanner simulates a Deterministic Finite Automaton (DFA) to create Tokens\n    * The Parser builds an Abstract Syntax Tree (AST) using the Recursive-descent parsing algorithm\n    * The Checker decorates the AST with information from indentification and type checking using the Visitor pattern\n \n## How to use\n\nWhile an executable is not available, build the project\n\n```bash\n$\u003e cd /Path/To/Project/root/\n\n$\u003e javac -d Compilador/bin -cp Compilador/src Compilador/src/compiler/Compiler.java\n```\n\nThen create an alias for the compiler with\n\n```bash\n$\u003e alias compile=\"java -cp Compilador/bin compiler.Compiler\"\n```\n\nNow you can compile your REC programs from the command line using\n\n```bash\n$\u003e compile /some/path/program.rec\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakmord2%2Frec-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrakmord2%2Frec-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakmord2%2Frec-compiler/lists"}