{"id":13638402,"url":"https://github.com/pygram/pygram","last_synced_at":"2026-01-11T02:38:15.136Z","repository":{"id":217087254,"uuid":"14880555","full_name":"pygram/pygram","owner":"pygram","description":"An open source grammar analyzer.","archived":false,"fork":false,"pushed_at":"2013-12-16T20:20:56.000Z","size":676,"stargazers_count":45,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T08:39:34.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/pygram.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}},"created_at":"2013-12-03T01:49:42.000Z","updated_at":"2024-05-10T00:51:34.000Z","dependencies_parsed_at":"2024-01-14T13:55:32.561Z","dependency_job_id":"c88378fe-4483-427b-a20f-e89e33381e08","html_url":"https://github.com/pygram/pygram","commit_stats":null,"previous_names":["pygram/pygram"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pygram%2Fpygram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pygram%2Fpygram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pygram%2Fpygram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pygram%2Fpygram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pygram","download_url":"https://codeload.github.com/pygram/pygram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249750193,"owners_count":21320091,"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-08-02T01:00:45.255Z","updated_at":"2025-04-19T17:33:45.225Z","avatar_url":"https://github.com/pygram.png","language":"CSS","readme":"pygram\n======\nAn open source grammar analyzer that uses [PLY](http://www.dabeaz.com/ply/) under the hood.\nIts purpose is to serve as an educational aid for undergraduate students taking an introductory course on compilers.\n\nFeatures\n========\n* SLR(1) and LALR(1) grammar support.\n* Augmented grammar.\n* First and follow sets.\n* Automaton state graph visualization.\n* Parsing table.\n* Parser simulator.\n\nDemo\n====\nThere is a demo hosted on a Heroku free instance: [http://pygram.herokuapp.com](http://pygram.herokuapp.com).\n\n![alt text](http://i.imgur.com/xmMg8oE.png \"Preview\")\n\nExample\n------------\n\n**Terminals**\n\n    OPMULT OPDIV\n    OPADD OPSUB\n    FACTOR\n\n**Productions**\n\n    expr: expr OPADD term\n           | expr OPSUB term\n           | term;\n    term: term OPMULT FACTOR\n           | term OPDIV FACTOR\n           | FACTOR; \n\nInstallation\n============\n\nDependencies\n------------\nThe following are the main dependencies used by pygram, for the complete list refer to 'requirements.txt'.\n\n* flask: [http://flask.pocoo.org/](http://flask.pocoo.org/).\n* graphviz: [http://www.graphviz.org/](http://www.graphviz.org/).\n* ply: [http://www.dabeaz.com/ply/](http://www.dabeaz.com/ply/).\n* pydot: [https://bitbucket.org/prologic/pydot/overview](https://bitbucket.org/prologic/pydot/overview).\n\nNote: pydot is included in the src folder 'pydot/'\n\nUbuntu\n------\n\n    $ virtualenv -p `which python3` pygram\n    $ source pygram/bin/activate\n    $ pip install -r requirements.txt\n    $ apt-get install graphviz\n\n\nDeployment on Heroku\n--------------------\nIn order to install graphviz you need to use a custom buildpack.\nThe easiest way to do it is to use the [heroku-buildpack-multi](https://github.com/ddollar/heroku-buildpack-multi) together with the [heroku-buildpack-python](https://github.com/heroku/heroku-buildpack-python) and the [heroku-buildpack-graphviz](https://github.com/gokceneraslan/heroku-buildpack-graphviz) buildpacks.\n\n    heroku login\n    heroku config:add BUILDPACK_URL:https://github.com/ddollar/heroku-buildpack-multi.git\n    heroku config:add PATH:/usr/local/bin:/usr/bin:/bin:/app/bin\n\nTo-do\n=====\n* Add support for localization.\n* Add support for LL(1) and LR(1) parsers.\n\nSimilar tools\n=============\nThe following is a list of other grammar analyzers. Please, feel free to add more references to the list below.\n* [Anagra](http://webdiis.unizar.es/~ezpeleta/doku.php?id=material_de_apoyo)\n\nLicense\n=======\nPygram uses the [MIT](http://opensource.org/licenses/MIT) license.\nThe dependencies used by Pygram are subject to their respective licenses.\n","funding_links":[],"categories":["Career Path"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpygram%2Fpygram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpygram%2Fpygram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpygram%2Fpygram/lists"}