{"id":37125773,"url":"https://github.com/xzebra/zeno","last_synced_at":"2026-01-14T14:32:26.290Z","repository":{"id":57529996,"uuid":"193166281","full_name":"xzebra/zeno","owner":"xzebra","description":"Math expression parser written in Go","archived":false,"fork":false,"pushed_at":"2019-07-11T15:45:30.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-16T07:01:09.343Z","etag":null,"topics":["calculator","latex","math-expression-parser","postfix"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/xzebra.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":"2019-06-21T22:21:02.000Z","updated_at":"2022-01-18T19:17:42.000Z","dependencies_parsed_at":"2022-09-26T18:11:24.582Z","dependency_job_id":null,"html_url":"https://github.com/xzebra/zeno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xzebra/zeno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xzebra%2Fzeno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xzebra%2Fzeno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xzebra%2Fzeno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xzebra%2Fzeno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xzebra","download_url":"https://codeload.github.com/xzebra/zeno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xzebra%2Fzeno/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28423376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["calculator","latex","math-expression-parser","postfix"],"created_at":"2026-01-14T14:32:23.892Z","updated_at":"2026-01-14T14:32:26.280Z","avatar_url":"https://github.com/xzebra.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zeno\r\n\r\n[![Build Status](https://travis-ci.com/xzebra/zeno.svg?branch=master)](https://travis-ci.com/xzebra/zeno) [![GoDoc](https://godoc.org/github.com/xzebra/zeno?status.svg)](https://godoc.org/github.com/xzebra/zeno) [![Go Report Card](https://goreportcard.com/badge/github.com/xzebra/zeno)](https://goreportcard.com/report/github.com/xzebra/zeno)\r\n\r\n**zeno** is a math expression parser capable of:\r\n\r\n- Generating a postfix equivalent to given expression\r\n- Create a binary operation tree\r\n- Calculate the result of the expression (without variables)\r\n- Generate LaTeX representation of an operation tree\r\n\r\n## Install\r\n\r\nUse golang package manager to install zeno\r\n````\r\n$ go get -u github.com/xzebra/zeno\r\n````\r\n\r\n## Usage\r\n\r\n````go\r\nimport \"github.com/xzebra/zeno\"\r\n\r\nint main() {\r\n    expression := \"-2.1483*3.14^3+4\"\r\n    // Get a postfix representation of the expression\r\n    postfix, _ := zeno.ToPostfix(expression)\r\n    fmt.Println(postfix) // \"-2.1483 3.14 3 ^ * 4 +\"\r\n\r\n    // Get the binary tree representation\r\n    tree, _ := zeno.PostfixToTree(postfix)\r\n    // You can also get it using ToTree\r\n    tree, _ = zeno.ToTree(expression)\r\n\r\n    // After that you can get the result (if the expression \r\n    // doesn't have variables) or its LaTeX representation.\r\n    fmt.Println(tree.Calculate()) // -62.509529055200005\r\n    fmt.Println(tree.LaTeX()) // \"neg(2.1483)\\cdot3.14^3+4\"\r\n}\r\n````\r\n\r\n## Contributing\r\n\r\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Remember to update tests according to the changes.\r\n\r\n## License\r\n[MIT](https://github.com/xzebra/zeno/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxzebra%2Fzeno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxzebra%2Fzeno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxzebra%2Fzeno/lists"}