{"id":21158712,"url":"https://github.com/wqweto/vbpeg","last_synced_at":"2026-02-15T01:31:12.591Z","repository":{"id":145870725,"uuid":"120297874","full_name":"wqweto/VbPeg","owner":"wqweto","description":"PEG parser generator for VB6","archived":false,"fork":false,"pushed_at":"2019-03-05T14:45:47.000Z","size":5171,"stargazers_count":14,"open_issues_count":5,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-08T20:43:40.943Z","etag":null,"topics":["grammar","parser","parser-generator","peg","vb6"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic","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/wqweto.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-05T11:48:32.000Z","updated_at":"2023-12-11T04:31:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfe84e5c-ab40-4ccb-b93b-04931631d959","html_url":"https://github.com/wqweto/VbPeg","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wqweto%2FVbPeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wqweto%2FVbPeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wqweto%2FVbPeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wqweto%2FVbPeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wqweto","download_url":"https://codeload.github.com/wqweto/VbPeg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243602085,"owners_count":20317565,"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":["grammar","parser","parser-generator","peg","vb6"],"created_at":"2024-11-20T12:32:42.560Z","updated_at":"2026-02-15T01:31:07.569Z","avatar_url":"https://github.com/wqweto.png","language":"Visual Basic","funding_links":[],"categories":[],"sub_categories":[],"readme":"## VbPeg\r\nPEG parser generator for VB6\r\n\r\n### Description\r\n\r\nVbPeg is a simple parser generator for VB6 that can be used to build interpreters, compilers and other tools that need to match and process  complex input data.\r\n\r\nVbPeg generates recursive-descent parsers from Parsing Expression Grammars (PEG) [[Ford 2004]](http://bford.info/pub/lang/peg.pdf) and is currently based on the original Ford syntax with some additions for 'semantic actions' as implemented by Ian Piumarta's [peg/leg](http://piumarta.com/software/peg/) project.\r\n\r\nVbPeg is self-hosted, meaning it can produce it's own parser in `src\\cParser.cls` from the grammar in `VbPeg.peg` in root.\r\n\r\n### Sample usage\r\n\r\n - Generate a private VB6 class from PEG grammar in VbPeg.peg\r\n```\r\n    c:\u003e VbPeg.exe VbPeg.peg -o src\\cParser\r\n```\r\n### Command-line\r\n```\r\nUsage: VbPeg.exe [options] \u003cin_file.peg\u003e\r\n\r\nOptions:\r\n  -o OUTFILE      write result to OUTFILE [default: stdout]\r\n  -tree           output parse tree\r\n  -ir             output intermediate represetation\r\n  -set NAME=VALUE set or modify grammar settings\r\n  -q              in quiet operation outputs only errors\r\n  -nologo         suppress startup banner\r\n  -allrules       output all rules (don't skip unused)\r\n  -trace          trace in_file.peg parsing as performed by %1.exe\r\n\r\nIf no -tree/-ir is used emits VB6 code. If no -o is used writes result to console.\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwqweto%2Fvbpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwqweto%2Fvbpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwqweto%2Fvbpeg/lists"}