{"id":21434236,"url":"https://github.com/candh/compiler-toolkit","last_synced_at":"2025-03-16T22:46:02.829Z","repository":{"id":62564169,"uuid":"289573396","full_name":"candh/compiler-toolkit","owner":"candh","description":"useful programs for syntax analysis","archived":false,"fork":false,"pushed_at":"2020-08-23T15:52:08.000Z","size":379,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T01:17:41.830Z","etag":null,"topics":["compiler-design","compiler-toolset","first-set","syntax-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","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/candh.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":"2020-08-22T21:58:38.000Z","updated_at":"2021-09-11T13:03:52.000Z","dependencies_parsed_at":"2022-11-03T16:00:36.788Z","dependency_job_id":null,"html_url":"https://github.com/candh/compiler-toolkit","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/candh%2Fcompiler-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Fcompiler-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Fcompiler-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Fcompiler-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candh","download_url":"https://codeload.github.com/candh/compiler-toolkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945529,"owners_count":20372894,"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":["compiler-design","compiler-toolset","first-set","syntax-analysis"],"created_at":"2024-11-22T23:34:12.976Z","updated_at":"2025-03-16T22:46:02.809Z","avatar_url":"https://github.com/candh.png","language":"Python","readme":"## compiler-toolkit\nCollection of programs useful for syntax analysis.\n![screenshot of the tool](screenshot.png)\n\n---\n\n  ```bash\n  $ pip install compilertk\n  $ compilertk FILE\n  ```\n---\n\nFeatures:\n\n  - Elimination of Null Productions\n  - Elimination of Unit Productions\n  - Elimination of Left Recursion\n  - Calculates First Sets\n  - Calculates Follow Sets\n  - Prints Parsing Table\n  - Generates a log file\n\n## Notation\n\nUsing this example of a grammar:\n\n```\nS -\u003e S a A | B\nA -\u003e a A | eps\nB -\u003e d E'\nE' -\u003e int a | eps\n```\n\n  - Every symbol on the left side is a non-terminal\n  - Non-terminals and its productions are separated by \"-\u003e\"\n  - Individual symbols are separated with a **space**.\n  - Null productions are specified with **eps**\n  - **|** is used to specify alternative productions\n\n## Tests\n\nMake sure everything runs fine by running the test cases\n\n  1. `./run_tests.sh`\n\n## TODOs\n\n  - Add docstrings to functions\n  - Add test cases for parsing table\n  - Add more tests cases\n\n## Useful Links\n\n  - https://mikedevice.github.io/first-follow/\n  - http://hackingoff.com/compilers\n  - http://hackingoff.com/compilers/predict-first-follow-set (unreliable)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandh%2Fcompiler-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandh%2Fcompiler-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandh%2Fcompiler-toolkit/lists"}