{"id":26610489,"url":"https://github.com/iwillspeak/ullage","last_synced_at":"2025-04-10T00:04:44.742Z","repository":{"id":30727557,"uuid":"34283820","full_name":"iwillspeak/ullage","owner":"iwillspeak","description":"A statically-typed compiled language defined by a simple grammar","archived":false,"fork":false,"pushed_at":"2022-08-28T09:58:03.000Z","size":713,"stargazers_count":24,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T00:04:37.455Z","etag":null,"topics":["language","programming-language","rust"],"latest_commit_sha":null,"homepage":"http://willspeak.me/ullage/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iwillspeak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-20T20:14:09.000Z","updated_at":"2025-02-07T17:35:09.000Z","dependencies_parsed_at":"2022-09-26T20:41:26.240Z","dependency_job_id":null,"html_url":"https://github.com/iwillspeak/ullage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwillspeak%2Fullage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwillspeak%2Fullage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwillspeak%2Fullage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwillspeak%2Fullage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iwillspeak","download_url":"https://codeload.github.com/iwillspeak/ullage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131320,"owners_count":21052819,"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":["language","programming-language","rust"],"created_at":"2025-03-24T01:48:28.533Z","updated_at":"2025-04-10T00:04:44.714Z","avatar_url":"https://github.com/iwillspeak.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ullage\n\n[![Build Status][build_status_image]][build_status]\n\nA statically-typed compiled language defined by a simple grammar.\n\n## Current Status\n\nIt is now possible to write simple programs. The following program\ncomputes 9 factorial:\n\n    fn fact(n: Number): Number\n        var acc = 1\n        var i = 1\n        while i \u003c n\n            acc = acc * i\n            i = i + 1\n        end\n        acc\n    end\n    \n    print fact(9) # =\u003e 362880\n\nYou can also mess around with constant strings:\n\n    # FizzBuzz\n    #\n    # Implementation of the legendary `FizzBuzz` algorithm.\n    fn fizzbuzz(n: Number): String\n        (print 'fizzbuzz') if mod(n, 15) == 0 else\n        (print 'fizz') if mod(n, 3) == 0 else\n        (print 'buzz') if mod(n, 5) == 0 else\n        print_num(n)\n    end\n\n## Building and Testing\n\nThe main build is performed by `cargo`. For running the functional\ntests and benchmarks you'll need Python and to `cargo install just`. The suggested process is to\nuse the `build.sh` script:\n\n * `$ ./build.sh` will build the compiler `target/release/ullage`.\n * `$ ./build.sh test` will build the compiler and run the test suite\n   from `specs/`.\n * `$ ./build.sh bench` will run the benchmarks from `spec/bench/`.\n\n## License\n\nUllage is open source, under the [MIT License](LICENSE.md).\n\n## Features and Progress\n\n * [ ] Custom data structures\n * [ ] Pattern matching\n * [ ] First-class functions\n\n### Lexer\n\n * [x] Recognise words, numbers, comments, operators and white-space\n * [x] Position information on each token\n * [ ] Interpolated strings\n * [x] Expose whitespace to the parser\n\n### Parser\n\n * [x] Parse base constructs\n * [ ] For loops and iterators\n * [ ] Traditional `if` blocks\n * [x] Keep track of _all_ underlying tokens\n * [x] Expose position \u0026 span information on syntax nodes\n * [ ] Round-trippable/pretty-printable trees\n\n### Code Generation / Lowering\n\n * [x] Create LLVM module and lower basic constructs\n * [ ] Array indexing\n * [x] Arbitrary types for local variables\n * [ ] Heap allocated types\n    * [x] Lowering of `String` type\n    * [ ] User-defined types\n    * [ ] RC garbage collection (#26)\n * [ ] Library output types (LLVM ir, LLVM bc, object, staticlib, dylib, exe)\n * [x] Control of target machine \u0026 features\n * [x] Optimisation\n * [ ] Linker support:\n   * [x] `clang` - macOS linker default\n   * [ ] gold - GNU ld\n   * [ ] lld/llvm-link\n   * [ ] Microsoft LINK\n\n\n [build_status_image]: https://dev.azure.com/iwillspeak/GitHub/_apis/build/status/iwillspeak.ullage?branchName=main\n [build_status]: https://dev.azure.com/iwillspeak/GitHub/_build/latest?definitionId=2\u0026branchName=main\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwillspeak%2Fullage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiwillspeak%2Fullage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwillspeak%2Fullage/lists"}