{"id":22769776,"url":"https://github.com/bfontaine/jcalc","last_synced_at":"2025-03-30T11:29:49.808Z","repository":{"id":16832193,"uuid":"19591634","full_name":"bfontaine/JCalc","owner":"bfontaine","description":"toy stack-based calculator","archived":false,"fork":false,"pushed_at":"2014-05-11T19:53:44.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:43:40.892Z","etag":null,"topics":["experimental","gui","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"poole/hyde","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfontaine.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":"2014-05-08T22:51:31.000Z","updated_at":"2017-06-30T15:41:01.000Z","dependencies_parsed_at":"2022-08-04T11:30:17.442Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/JCalc","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/bfontaine%2FJCalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FJCalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FJCalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2FJCalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/JCalc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246313195,"owners_count":20757444,"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":["experimental","gui","java"],"created_at":"2024-12-11T15:15:42.095Z","updated_at":"2025-03-30T11:29:49.771Z","avatar_url":"https://github.com/bfontaine.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JCalc\n\n[![Build Status](https://travis-ci.org/bfontaine/JCalc.svg)](https://travis-ci.org/bfontaine/JCalc)\n\n`JCalc` is a toy stack-based calculator written in Java. It was made to learn\nthe Swing API, not as a real project.\n\n## Build\n\n    mvn install\n\n## Run\n\n    java -jar target/JCalc-1.0.jar\n\nOr double-click on the jar to open the app.\n\n## Usage\n\n`JCalc` uses a stack, which means you can make complicated operations which\ndeal with priorities without using parentheses. To add the current value to the\nstack, press the “push” button (`\u003c\u003c`). You can now type a new value, and either\npush it on the stack or use one of the six simple operations.\n\nAn operation pop the top of the stack, applies itself on it and the current\nvalue (in that order), and replace the current value with the result.\n\nYou can reset everything at any time with the `R` button.\n\n### Example\n\nWe want to compute `(3+5)*(4-2)`. In the following table, the first column shows\nthe pressed button, the second one shows the resulting value and the last one\nthe internal stack (top on the right).\n\n| Command | Result | Stack |\n|---------|-------:|:------|\n| `3`     |      3 | -     |\n| `\u003c\u003c`    |      - | 3     |\n| `5`     |      5 | 3     |\n| `+`     |      8 | -     |\n| `\u003c\u003c`    |      - | 8     |\n| `4`     |      4 | 8     |\n| `\u003c\u003c`    |      - | 8, 4  |\n| `2`     |      2 | 8, 4  |\n| `-`     |      2 | 8     |\n| `*`     | **16** | -     |\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fjcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fjcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fjcalc/lists"}