{"id":17623680,"url":"https://github.com/zachgrayio/kalk","last_synced_at":"2025-07-01T11:07:20.922Z","repository":{"id":57288191,"uuid":"102717086","full_name":"zachgrayio/kalk","owner":"zachgrayio","description":"A CLI calculator written in Kotlin.","archived":false,"fork":false,"pushed_at":"2017-10-04T12:52:09.000Z","size":92,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T12:09:33.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/zachgrayio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-07T09:15:59.000Z","updated_at":"2017-10-07T00:08:18.000Z","dependencies_parsed_at":"2022-09-09T23:50:11.437Z","dependency_job_id":null,"html_url":"https://github.com/zachgrayio/kalk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zachgrayio/kalk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fkalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fkalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fkalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fkalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachgrayio","download_url":"https://codeload.github.com/zachgrayio/kalk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fkalk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262950348,"owners_count":23389643,"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":[],"created_at":"2024-10-22T21:23:29.055Z","updated_at":"2025-07-01T11:07:20.884Z","avatar_url":"https://github.com/zachgrayio.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kalk\n\nA CLI calculator written in Kotlin.\n\n### Notable features\n\n- This program implements the [shunting-yard](https://en.wikipedia.org/wiki/Shunting-yard_algorithm) in Kotlin as an extension method on `String` - see [String.toRPNExpression()](https://github.com/zachgrayio/kalk/blob/master/src/main/kotlin/io/zachgray/kalk/math/ext/String.kt). \n- Also implemented is an [RPN expression evaluator](https://github.com/zachgrayio/kalk/blob/master/src/main/kotlin/io/zachgray/kalk/math/RPNExpression.kt) which is fairly succinct thanks to the use of the `Operator` sealed class which can be found [here](https://github.com/zachgrayio/kalk/blob/master/src/main/kotlin/io/zachgray/kalk/math/Operator.kt). \n\n### Usage\n\n- `$ kalk` for interactive mode\n- `$ kalk 2 + 2` to verify two plus two is in fact four!\n\n### Installation\n\n- Install with NPM: `$ npm i -g kalk`\n\n### Build \u0026 run from source\n\n- `$ git clone git@github.com:zachgrayio/kalk.git`\n- `$ cd kalk`\n- `$ ./gradlew assembleDist`\n- `$ unzip build/distributions/kalk-1.1.0.zip`\n- inline: `$ kalk-1.1.0/bin/kalk 2 + 2`\n- interactive: `$ kalk-1.1.0/bin/kalk`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachgrayio%2Fkalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachgrayio%2Fkalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachgrayio%2Fkalk/lists"}