{"id":19143362,"url":"https://github.com/2a5f/l-exp","last_synced_at":"2025-10-09T11:17:52.856Z","repository":{"id":97795849,"uuid":"126328290","full_name":"2A5F/L-exp","owner":"2A5F","description":"Just a try / It is an extended version of a prefix expression","archived":false,"fork":false,"pushed_at":"2023-12-15T14:45:13.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T11:17:18.943Z","etag":null,"topics":["l-expression","left","left-expression","left-notation","math","polish-notation","prefix","prefix-expression","prefix-notation"],"latest_commit_sha":null,"homepage":"http://static.abits.io/l-exp/","language":"JavaScript","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/2A5F.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-22T11:57:18.000Z","updated_at":"2023-04-26T18:45:58.000Z","dependencies_parsed_at":"2023-12-15T15:54:28.629Z","dependency_job_id":null,"html_url":"https://github.com/2A5F/L-exp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/2A5F/L-exp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2A5F%2FL-exp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2A5F%2FL-exp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2A5F%2FL-exp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2A5F%2FL-exp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2A5F","download_url":"https://codeload.github.com/2A5F/L-exp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2A5F%2FL-exp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001290,"owners_count":26083058,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["l-expression","left","left-expression","left-notation","math","polish-notation","prefix","prefix-expression","prefix-notation"],"created_at":"2024-11-09T07:30:49.364Z","updated_at":"2025-10-09T11:17:52.839Z","avatar_url":"https://github.com/2A5F.png","language":"JavaScript","readme":"### It is an extended version of a Prefix Notation(Polish notation)\n### 这是一个前缀表达式(波兰表达式)的扩展\n\n## Syntax 语法\n\u003e No float support temporarily 暂时不支持浮点数\n- Default is Multiplication 默认是乘法\n  ```\n  1 2 = 1 * 2\n  ```\n- Can multiple values 可以一次计算多个值\n  ```\n  +1 2 3 4 5 = 1 + 2 + 3 + 4 + 5\n  ```\n- `,` The Closure 闭合符  \n  ```\n  /-2 1,3 = (2 - 1) / 3\n  ```\n- `;` The Back 返回符  \n    Back to two consecutive operators  \n    返回到两个连续的操作符处\n  ```\n  /-2+5 1;3 = (2 - (5 + 1)) / 3\n  ↑      ↓\n  ←-←-←-←-\n  ```\n```\n**/3+1*9 0;8,2 = ((3 / (1 + (9 * 0))) * 8) * 2\n↑↑        ↓ ↓\n↑ ↖←-←-←-↙ ↓\n↖-←-←-←-←-←↙\n```\n[Try Online](http://static.abits.io/l-exp/)  \n**lexp** ( exp_str : `string` ) =\u003e com_res : `number`  \nExample:\n```javascript\nlexp('**/3+1*9 0;8,2')\n```\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\nI bet someone already thought of this.  \n我感觉肯定早就有人想出这个了\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2a5f%2Fl-exp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2a5f%2Fl-exp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2a5f%2Fl-exp/lists"}