{"id":18015603,"url":"https://github.com/nomemory/blog-java-shunting-yard","last_synced_at":"2026-06-29T19:31:38.153Z","repository":{"id":55453391,"uuid":"325382513","full_name":"nomemory/blog-java-shunting-yard","owner":"nomemory","description":"An academic implenentation for the Shunting Yard Algorithm in Java","archived":false,"fork":false,"pushed_at":"2021-01-02T20:48:37.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T15:17:20.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/nomemory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-29T20:38:36.000Z","updated_at":"2025-01-10T07:05:18.000Z","dependencies_parsed_at":"2022-08-15T00:40:09.470Z","dependency_job_id":null,"html_url":"https://github.com/nomemory/blog-java-shunting-yard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nomemory/blog-java-shunting-yard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fblog-java-shunting-yard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fblog-java-shunting-yard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fblog-java-shunting-yard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fblog-java-shunting-yard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomemory","download_url":"https://codeload.github.com/nomemory/blog-java-shunting-yard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomemory%2Fblog-java-shunting-yard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34941025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-30T04:14:30.487Z","updated_at":"2026-06-29T19:31:38.115Z","avatar_url":"https://github.com/nomemory.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"`\"Academic\"` implementation for the [Shunting Yard Algorithm](https://en.wikipedia.org/wiki/Shunting-yard_algorithm?oldformat=true) in Java.\n\nUsage:\n\n```java\nimport java.util.Arrays;\nimport java.util.List;\n\nimport static net.andreinc.shunting.yard.ShuntingYard.shuntingYard;\nimport static org.assertj.core.api.Assertions.assertThat;\n\n// *****\n\nList\u003cString\u003e given = Arrays.asList(\"( 1 + 2 ) * ( 3 / 4 ) ^ ( 5 + 6 )\".split(\" \"));\nList\u003cString\u003e expected = List.of(\"1\", \"2\", \"+\", \"3\", \"4\", \"/\", \"5\", \"6\", \"+\", \"^\", \"*\");\nList\u003cString\u003e computed = shuntingYard(given);\n\nSystem.out.println(\"infix:\" + given);\nSystem.out.println(\"rpn (expected):\" + expected);\nSystem.out.println(\"rpn (computed):\" + computed);\n\nassertThat(computed).isEqualTo(expected);\n```\n\nOutput:\n\n```\ninfix:[(, 1, +, 2, ), *, (, 3, /, 4, ), ^, (, 5, +, 6, )]\nrpn (expected):[1, 2, +, 3, 4, /, 5, 6, +, ^, *]\nrpn (computed):[1, 2, +, 3, 4, /, 5, 6, +, ^, *]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomemory%2Fblog-java-shunting-yard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomemory%2Fblog-java-shunting-yard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomemory%2Fblog-java-shunting-yard/lists"}