{"id":13667884,"url":"https://github.com/oriontransfer/PL0-Language-Tools","last_synced_at":"2025-04-26T18:30:44.855Z","repository":{"id":140938157,"uuid":"1787545","full_name":"oriontransfer/PL0-Language-Tools","owner":"oriontransfer","description":"An implementation of PL/0 including a tree-based interpreter and virtual machine.","archived":false,"fork":false,"pushed_at":"2023-12-17T14:50:22.000Z","size":521,"stargazers_count":75,"open_issues_count":2,"forks_count":25,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-02T09:10:08.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://programming.dojo.net.nz/study/pl0-language-tools/index","language":"Python","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/oriontransfer.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":"2011-05-23T11:08:08.000Z","updated_at":"2024-07-22T03:49:03.000Z","dependencies_parsed_at":"2024-01-14T16:14:46.056Z","dependency_job_id":"7b3fb232-ba68-4442-8260-75f0691a5925","html_url":"https://github.com/oriontransfer/PL0-Language-Tools","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/oriontransfer%2FPL0-Language-Tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oriontransfer%2FPL0-Language-Tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oriontransfer%2FPL0-Language-Tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oriontransfer%2FPL0-Language-Tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oriontransfer","download_url":"https://codeload.github.com/oriontransfer/PL0-Language-Tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251035127,"owners_count":21526308,"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-02T07:00:53.456Z","updated_at":"2025-04-26T18:30:41.249Z","avatar_url":"https://github.com/oriontransfer.png","language":"Python","readme":"# PL/0 Language Tools\n\nThe PL/0 Language Tools serve as an example of how to construct a\ncompiler. The language 'PL/0' was originally introduced in the book\n\"Algorithms + Data Structures = Programs\", by Niklaus Wirth in 1975.\n\n![Overview](Overview.png)\n\nThis project includes a full stack of tools designed for educational\npurposes to learn about compilers, interpreters and virtual machines.\nEach component can be executed independently and is typically between\n100-300 lines of code.\n\nIt is designed to be clear and concise at the expense of performance. It\nis easy to extend and modify, e.g. adding new syntax constructs or\nmachine instructions.\n\n## Installation\n\nInstall ply:\n\n\tsudo easy_install ply\n\nThen, simply download the files `pl0_*.py` and run them.\n\n## Basic Usage\n\nHere is a full example using the interpreter:\n\n\t$ ./pl0_interpreter.py \u003c examples/fibonacci.pl1\n\t1\n\t1\n\t2\n\t3\n\t5\n\t8\n\t13\n\t21\n\t34\n\t55\n\t89\n\t144\n\t233\n\t377\n\t610\n\t987\n\t1597\n\t2584\n\t4181\n\t6765\n\t10946\n\t-- Stack Frame --\n\tConstants: {'K': 20}\n\tVariables: {'count': 21, 'k': 17711, 'm': 17711, 'n': 28657}\n\tProcedures: {}\n\nIf you want to see a abstract syntax tree of your program, use the pl0_graphviz.py command:\n\n\t./pl0_graphviz.py \u003c examples/fibonacci.pl1\n\nA sample graph is included in the `examples` directory.\n\nFor more advanced usage, including documentation on individual components, please see the [online documentation](http://programming.dojo.net.nz/study/pl0-language-tools/index).\n\n## Cross Compiling\n\nRecent development adds several new compiler targets. I'm interested in the possibility of cross compiling PL/0 to other languages; most of my work on this targets this.\n\nI (Charles) am working on cross compilers for several stack based languages, including Retro, Parable, and ANS FORTH.\n\n## License\n\nCopyright, 2012, by Samuel G. D. Williams. \u003chttp://www.codeotaku.com\u003e  \nCopyright, 2012, by Michal J Wallace. \u003chttp://www.michaljwallace.com/\u003e  \nCopyright, 2012, 2016, 2017 by Charles Childers \u003chttp://forthworks.com/\u003e  \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriontransfer%2FPL0-Language-Tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foriontransfer%2FPL0-Language-Tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriontransfer%2FPL0-Language-Tools/lists"}