{"id":15429526,"url":"https://github.com/lxsmnsyc/arithmeticparserdemo","last_synced_at":"2025-10-25T14:35:30.868Z","repository":{"id":71066624,"uuid":"171564427","full_name":"lxsmnsyc/ArithmeticParserDemo","owner":"lxsmnsyc","description":"An Arithmetic Parser Demo using Recursive Descent in Lua","archived":false,"fork":false,"pushed_at":"2019-02-20T00:07:21.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T03:51:40.369Z","etag":null,"topics":["arithmetic","arithmetic-computation","arithmetic-expression","arithmetic-expression-evaluator","parser","parsing","recursive-descent","recursive-descent-parser"],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/lxsmnsyc.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},"funding":{"github":"lxsmnsyc"}},"created_at":"2019-02-19T23:06:34.000Z","updated_at":"2019-02-20T00:07:23.000Z","dependencies_parsed_at":"2023-08-28T20:23:16.946Z","dependency_job_id":null,"html_url":"https://github.com/lxsmnsyc/ArithmeticParserDemo","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"3f5bfda006f82c652ce4c29c07fdab454676be6b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FArithmeticParserDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FArithmeticParserDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FArithmeticParserDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FArithmeticParserDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lxsmnsyc","download_url":"https://codeload.github.com/lxsmnsyc/ArithmeticParserDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240981558,"owners_count":19888346,"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":["arithmetic","arithmetic-computation","arithmetic-expression","arithmetic-expression-evaluator","parser","parsing","recursive-descent","recursive-descent-parser"],"created_at":"2024-10-01T18:11:23.703Z","updated_at":"2025-10-25T14:35:25.837Z","avatar_url":"https://github.com/lxsmnsyc.png","language":"Lua","funding_links":["https://github.com/sponsors/lxsmnsyc"],"categories":[],"sub_categories":[],"readme":"# ArithmeticParserDemo\nAn Arithmetic Parser Demo using Recursive Descent in Lua\n\n## Features\n  * Right-associative addition, subtraction, multiplication and addition.\n  * Left-associative exponentiation\n  * 'e' notation e.g 1e10\n  * Unary\n  * Parser error reporting (prints the position of the character error)\n\n## Grammar\nThis is in ANTLR4 format:\n```antlr\nexpr\n  :   sum\n  ;\n  \nsum\n  :   prod (('+' | '-')? prod)* \n  ;\n  \nprod   \n  :   pow (('*' | '/')? pow)*\n  ;\n  \npow\n  :   value ('^' pow)*\n  ;\n  \nvalue:  \n  :   digits \n  |   ('(' expr ')')?\n  ;\n  \ndigits\n  : ('-')? [0-9]* (('.')? [0-9]*)? (('e' | 'E')? [0-9]*)?\n  ;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxsmnsyc%2Farithmeticparserdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flxsmnsyc%2Farithmeticparserdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxsmnsyc%2Farithmeticparserdemo/lists"}