{"id":15648550,"url":"https://github.com/daniel-beard/yorkie","last_synced_at":"2026-02-26T20:01:05.317Z","repository":{"id":148525943,"uuid":"48625195","full_name":"daniel-beard/yorkie","owner":"daniel-beard","description":"yorkie is a toy language.","archived":false,"fork":false,"pushed_at":"2016-12-21T23:08:08.000Z","size":248,"stargazers_count":1,"open_issues_count":19,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-10T12:22:30.564Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daniel-beard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2015-12-26T22:19:29.000Z","updated_at":"2018-06-26T08:12:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdddb856-92fb-4e33-a4d5-7b17604ec979","html_url":"https://github.com/daniel-beard/yorkie","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/daniel-beard/yorkie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fyorkie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fyorkie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fyorkie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fyorkie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniel-beard","download_url":"https://codeload.github.com/daniel-beard/yorkie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fyorkie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29870362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-03T12:25:11.352Z","updated_at":"2026-02-26T20:01:05.294Z","avatar_url":"https://github.com/daniel-beard.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## yorkie [![Build Status](https://travis-ci.org/daniel-beard/yorkie.svg)](https://travis-ci.org/daniel-beard/yorkie)\n- yorkie is a toy ~~dog~~ language, implemented as a learning experience.\n- It is *not* intended for actual use.\n- Based on the LLVM tutorial: http://llvm.org/docs/tutorial/LangImpl1.html\n\n### Language Syntax\n```\n# Top level expressions\n4+5;\n\n# Control Flow - if/then/else\nif x \u003c 3 then\n    1\nelse\n    2\nend\n\n# Forward declarations and calling 'C' code\nextern sin(x) # Because we link against libm, we can use that function natively here!\nsin(10)\n\n# Control Flow - for loops\n# (initial value), (end condition), (optional step value)\nfor i = 1, i \u003c n, 1.0 in\n    putchard(i)\nend\n\n# User defined unary operators\ndef unary-(v)\n    0-v\nend\n\n# User defined binary operators\ndef binary\u003e 10 (LHS RHS)\n    RHS \u003c LHS\nend\n\n# Functions\n# Compute the x'th fibonacci number.\ndef fib(x)\n    if x \u003c 3 then\n        1\n    else\n        fib(x-1)+fib(x-2)\n    end\nend\n\n# This expression will compute the 40th number.\nfib(40)\n\n# Mutable variables\ndef foo()\n    var x = 10 in\n        x = 11\n    end\nend\n```\n\n### Building\n- Make sure you have LLVM setup - http://llvm.org/docs/GettingStarted.html\n- Run the command `cmake .`\n- Run `make`\n- Build one of the examples: `./yorkie \u003c examples/fib.yk 2\u003e\u00261 | clang -x ir -`\n- Run the example: `./a.out`\n\n### Testing\n- `cmake .`\n- `cmake --build .`\n- `ctest -VV`\n\n### License\n- MIT\n\n### References / Links\n- http://llvm.org/docs/LangRef.html contains references to other interesting instructions that should be relatively easy to add to this language.\n- http://llvm.org/docs/LangRef.html#call-instruction LLVM call instructions\n- https://en.wikipedia.org/wiki/Visitor_pattern Visitor pattern, would be better to use for codegen.\n- http://llvm.org/docs/WritingAnLLVMPass.html#what-passmanager-does - LLVM Passes (used for optimizations)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-beard%2Fyorkie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-beard%2Fyorkie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-beard%2Fyorkie/lists"}