{"id":16912704,"url":"https://github.com/wez/lemon-php","last_synced_at":"2025-09-20T14:32:23.112Z","repository":{"id":138754629,"uuid":"1017701","full_name":"wez/lemon-php","owner":"wez","description":"A PHP parser generator, based on the lemon parser generator tool. lemon-php requires a C compiler to build, and this will generate pure-PHP parsers.","archived":false,"fork":false,"pushed_at":"2012-04-12T23:57:47.000Z","size":395,"stargazers_count":73,"open_issues_count":0,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-27T15:52:40.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://wezfurlong.org/blog/2006/nov/parser-and-lexer-generators-for-php","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wez.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-23T14:49:30.000Z","updated_at":"2024-12-21T09:45:05.000Z","dependencies_parsed_at":"2024-03-30T22:46:30.219Z","dependency_job_id":null,"html_url":"https://github.com/wez/lemon-php","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/wez%2Flemon-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wez%2Flemon-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wez%2Flemon-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wez%2Flemon-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wez","download_url":"https://codeload.github.com/wez/lemon-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233670648,"owners_count":18711697,"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-13T19:10:58.120Z","updated_at":"2025-09-20T14:32:17.860Z","avatar_url":"https://github.com/wez.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"(for licensing and copyright information, see COPYING)\n\nThis is an adaptation of lemon that optionally emits PHP code to implement a\nparser for the grammar described in a .y file.\n\nUsage:\n\n cc -o lemon lemon.c\n lemon -lPHP my.y\n\nThis will output my.php, which contains a PHP class that implements your parser.\nUsage is along the lines of:\n\n$P = new ParseParser();\n$S = new Yylex(); // you can get one of these using the JLexPHP package\n\nwhile ($t = $S-\u003eyylex()) {\n\t$P-\u003eParse($t-\u003etype, $t);\n}\n$P-\u003eParse(0);\n\n\nYou can find out more about the lemon syntax from:\nhttp://www.hwaci.com/sw/lemon/lemon.html\n\n\nEnjoy!\n\n--Wez.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwez%2Flemon-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwez%2Flemon-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwez%2Flemon-php/lists"}