{"id":15060903,"url":"https://github.com/artem-burashnikov/simpleparser","last_synced_at":"2025-10-04T19:32:07.689Z","repository":{"id":208022447,"uuid":"720564885","full_name":"artem-burashnikov/SimpleParser","owner":"artem-burashnikov","description":"Part of the SPBU's programming course. Parser, interpretator and optimizer for a simple formal language.","archived":true,"fork":false,"pushed_at":"2023-12-22T18:42:19.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-30T06:22:41.589Z","etag":null,"topics":["fsharp","interpretator","optimizer","parser","parser-combinators"],"latest_commit_sha":null,"homepage":"","language":"F#","has_issues":false,"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/artem-burashnikov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-11-18T21:41:34.000Z","updated_at":"2024-07-27T20:25:53.000Z","dependencies_parsed_at":"2023-12-22T19:32:29.648Z","dependency_job_id":"e2e7517f-dd72-471d-813f-d203c8b967c1","html_url":"https://github.com/artem-burashnikov/SimpleParser","commit_stats":null,"previous_names":["artem-burashnikov/simpleparser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-burashnikov%2FSimpleParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-burashnikov%2FSimpleParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-burashnikov%2FSimpleParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem-burashnikov%2FSimpleParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artem-burashnikov","download_url":"https://codeload.github.com/artem-burashnikov/SimpleParser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235303878,"owners_count":18968443,"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":["fsharp","interpretator","optimizer","parser","parser-combinators"],"created_at":"2024-09-24T23:06:18.258Z","updated_at":"2025-10-04T19:32:02.377Z","avatar_url":"https://github.com/artem-burashnikov.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT License][license-shield]][license-url]\n\n# SimpleParser\n\nSPBU 3rd semester homework assignment.\n\n\u003col\u003e\n    \u003cli\u003e\n        \u003ca href=\"#language-grammar\"\u003eLanguage Grammar\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n        \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n        \u003cul\u003e\n            \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n        \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n    \u003c/li\u003e\n\u003c/ol\u003e\n\n## Language grammar\n\nDefinition using [EBNF][grammar-notation] notation:\n\n`[x]` denotes one or more\n\n`{x}` denotes zero or more\n\n`(x)` denotes a capture group\n\n```ignorelang\ndigit = \"1\" | ... | \"9\"\n\nnumber = { digit }\n\nletter = \"a\" | ... | \"z\" | \"A\" | ... | \"Z\"\n\nidentifier = letter { letter | digit }\n\nfactor = identifier | number | ifExpression | (factor \"*\" factor)\n\nadd = factor | (add \"+\" add)\n\narithmeticExpression = factor | add\n\nbooleanValue = \"true\" | \"false\"\n\nrelationalOperator = \"=\" | \"\u003c\u003e\" | \"\u003c=\" | \"\u003c\" | \"\u003e=\" | \"\u003e\"\n\nbooleanExpression = booleanValue | (arithmeticExpression | identifier) relationalOperator (arithmeticExpression | identifier)\n\nifExpression = \"if\" \"(\" booleanExpression \")\" \"then\" \n                   \"(\" [ arithmeticExpression | booleanExpression | ifExpression ] \")\"\n               \"else\"\n                   \"(\" [ arithmeticExpression | booleanExpression | ifExpression ] \")\"                \n\ncommand = \"print:\" (arithmeticExpression | identifier)\n\nassignment = identifier \"=\" (booleanValue | arithmeticExpression | identifier | ifExpression)\n\nstatement = assignment | command\n\nprogram = {statement}\n```\n\n## Getting Started\n\nTo get a local copy up and running follow the steps below.\n\n### Prerequisites\n\n[.NET \u003e= 7.0][net-link]\n\n### Installation\n\n1. Clone the repo:\n\n    ```shell\n    git clone https://github.com/artem-burashnikov/SimpleParser.git\n    ```\n   \n2. Build the project:\n\n    ```shell\n    ./build.sh\n    ```\n\n### Usage\n\nCLI is available:\n\n```ignorelang\nUSAGE: SimpleParser [--help] \u003cpath\u003e\n\nFILEPATH:\n\n    \u003cpath\u003e                Specify a path to the file \n                          containing a program.\n\nOPTIONS:\n\n    --help                Display this list of options.\n```\nFollowing a language definition, a simple program may look like this:\n```\nx=3\ny=2\nz=if(true)then(x*y+7)else(1)\nprint:z\n```\nOutputs `13` to the console.\n\n## License\n\nDistributed under the MIT License. See [LICENSE][license-url] for more information.\n\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[license-shield]: https://img.shields.io/github/license/artem-burashnikov/SimpleParser.svg?style=for-the-badge\n[license-url]: https://github.com/artem-burashnikov/SimpleParser/blob/main/LICENSE\n[net-link]: https://dotnet.microsoft.com/en-us/download\n[grammar-notation]: https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartem-burashnikov%2Fsimpleparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartem-burashnikov%2Fsimpleparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartem-burashnikov%2Fsimpleparser/lists"}