{"id":18319880,"url":"https://github.com/bitwalker/rpncalculator","last_synced_at":"2025-04-05T22:31:40.264Z","repository":{"id":9798418,"uuid":"11776357","full_name":"bitwalker/RPNCalculator","owner":"bitwalker","description":"Reverse Polish Notation calculator built in Scala for a impromptu code challenge at work","archived":false,"fork":false,"pushed_at":"2014-12-27T20:35:17.000Z","size":122,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T13:12:37.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitwalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-30T21:45:22.000Z","updated_at":"2017-12-05T08:03:54.000Z","dependencies_parsed_at":"2022-08-29T10:41:29.614Z","dependency_job_id":null,"html_url":"https://github.com/bitwalker/RPNCalculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2FRPNCalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2FRPNCalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2FRPNCalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2FRPNCalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitwalker","download_url":"https://codeload.github.com/bitwalker/RPNCalculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411237,"owners_count":20934650,"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-11-05T18:14:34.441Z","updated_at":"2025-04-05T22:31:39.997Z","avatar_url":"https://github.com/bitwalker.png","language":"Scala","readme":"## What is this?\n\nA small command line calculator built on scala which accepts operations in [Reverse Polish Notation](http://en.wikipedia.org/wiki/Reverse_Polish_notation).\n\n## Why?\n\nSomeone posted the equivalent version of this in Ruby, and asked anyone who was up for the challenge to produce their own using a language of their choice.\nSince I'm not the kind of person to let an opportunity to code in Scala go by, I sat down and wrote this out after brushing up on my parser combinators.\n\n## Usage\n\nTo run this, you'll need scala and sbt installed, which on OSX is as simple as:\n\n```\nbrew install scala sbt\n```\n\nThen, from the project directory, run `sbt assembly` to produce the executable jar, and finally, to use the calculator:\n\n```\njava -jar ./target/scala-2.XX/RPNCalculator-assembly-X.X.jar \"3 4 - 5 + 2 *\"\n```\n\nAlternatively you can use `sbt \"run \\\"3 4 - 5 + 2 *\\\"\"`, to compile and run the code directly using your scala installation.\n\nOf course, you can put whatever expression you want as the argument, but the above is a simple example.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Frpncalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitwalker%2Frpncalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Frpncalculator/lists"}