{"id":17205503,"url":"https://github.com/frozen/sprout","last_synced_at":"2025-06-19T10:38:13.521Z","repository":{"id":150598937,"uuid":"282268026","full_name":"Frozen/sprout","owner":"Frozen","description":"Assignment:","archived":false,"fork":false,"pushed_at":"2020-07-24T17:51:36.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T09:41:39.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frozen.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-07-24T16:29:01.000Z","updated_at":"2020-07-24T17:51:38.000Z","dependencies_parsed_at":"2023-06-11T17:15:12.913Z","dependency_job_id":null,"html_url":"https://github.com/Frozen/sprout","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/Frozen%2Fsprout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frozen%2Fsprout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frozen%2Fsprout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frozen%2Fsprout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frozen","download_url":"https://codeload.github.com/Frozen/sprout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245442384,"owners_count":20616007,"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-15T02:25:31.329Z","updated_at":"2025-03-25T10:25:25.490Z","avatar_url":"https://github.com/Frozen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"```bash\n\nrustup override set nightly\ncargo run\n\n```\n\n#### tokenize.rs\n\nSplits input string into tokens\n\n#### base1.rs\n\nEvaluation logic for exprs like `A \u0026\u0026 B \u0026\u0026 !C =\u003e H = M`\n\n#### base2.rs\nLogic for exprs like `H = M =\u003e K = D + (D * E / 10)`\n\n#### expr.rs\ncombines Base1 and Base2\n\n\n1) Incoming string `A \u0026\u0026 B \u0026\u0026 !C =\u003e H = M` parses into intermidiate representation like \n```rust\nvec![Token::A, Token::And, Token::B]; // and so on\n```\n\n2) Then it converts into second called `Executable`. Internally it is https://en.wikipedia.org/wiki/Reverse_Polish_notation\n3) Is executes... \n\n\nbase1 expressions (a \u0026\u0026 b) compared by `vec![Token]`\nbase2 expression (D / F) compares by `H = M`\n\nApi examples in main.rs test mod.\n\nGET: http://localhost:8000/true/true/true/1.0/52/1\nPOST: http://localhost:8000/true/true/true/1.0/52/1  with data \n```json\n{\"exprs\": [\"A \u0026\u0026 B \u0026\u0026 !C =\u003e H = P\"]}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrozen%2Fsprout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrozen%2Fsprout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrozen%2Fsprout/lists"}