{"id":17070909,"url":"https://github.com/singpolyma/rpnr","last_synced_at":"2025-03-23T11:23:01.889Z","repository":{"id":842937,"uuid":"567339","full_name":"singpolyma/RPNR","owner":"singpolyma","description":"Reverse Polish Notation for Ruby","archived":false,"fork":false,"pushed_at":"2010-03-31T22:05:55.000Z","size":104,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-28T17:46:26.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/singpolyma.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-03-17T22:08:02.000Z","updated_at":"2019-07-14T09:58:02.000Z","dependencies_parsed_at":"2022-07-18T14:47:25.734Z","dependency_job_id":null,"html_url":"https://github.com/singpolyma/RPNR","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/singpolyma%2FRPNR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singpolyma%2FRPNR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singpolyma%2FRPNR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singpolyma%2FRPNR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singpolyma","download_url":"https://codeload.github.com/singpolyma/RPNR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245092316,"owners_count":20559535,"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-14T11:34:30.046Z","updated_at":"2025-03-23T11:23:01.844Z","avatar_url":"https://github.com/singpolyma.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Reverse Polish Notation for Ruby =\n\n== Buiding ==\n\nYou will need make, lex, and a C compiler.\n\nRun make\n\n== Running ==\n\nThe rpnr utility takes RPNR on standard in and outputs valid Ruby on stanadard out.\n\nrpnr \u003c code.rpnr \u003e code.rb\n\n== RPNR Syntax ==\n\n* Tokens are seperated by whitespace\n* '(' and ')' are whitespace\n* Tokens that are all non-alphanumeric or start with a ':' are messages\n* Tokens in double quotes are strings.\n* Tokens in single quotes are symbols.\n* Tokens in /.*/ are regular expressions.\n* Tokens that are numbers are numbers\n\nWhen a non-message is encountered, it is pushed onto the stack.\n\nWhen a message is encountered:\n* The top two items are popped\n* The next-to-top item is passed the message with the argument being the top\n\n=== Edge cases ===\n\n'a,b' (a b +) :lambda #=\u003e lambda{|a,b| a.send(:'+', b)}\n\na 1 = #=\u003e a = 1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingpolyma%2Frpnr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingpolyma%2Frpnr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingpolyma%2Frpnr/lists"}