{"id":16679581,"url":"https://github.com/mfelsche/pony-ast","last_synced_at":"2026-02-15T00:32:19.973Z","repository":{"id":65311802,"uuid":"588318199","full_name":"mfelsche/pony-ast","owner":"mfelsche","description":":horse: :deciduous_tree: Library for accessing AST generated by ponyc","archived":false,"fork":false,"pushed_at":"2026-01-19T07:36:19.000Z","size":155,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-19T16:25:02.289Z","etag":null,"topics":["compiler","ffi-bindings","parser","pony","pony-language","ponylang"],"latest_commit_sha":null,"homepage":"","language":"Pony","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/mfelsche.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":"2023-01-12T20:55:38.000Z","updated_at":"2026-01-19T07:36:24.000Z","dependencies_parsed_at":"2023-12-17T11:21:37.953Z","dependency_job_id":"a5257e16-b274-47f0-a3d7-4480e5c289a8","html_url":"https://github.com/mfelsche/pony-ast","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mfelsche/pony-ast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfelsche%2Fpony-ast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfelsche%2Fpony-ast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfelsche%2Fpony-ast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfelsche%2Fpony-ast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfelsche","download_url":"https://codeload.github.com/mfelsche/pony-ast/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfelsche%2Fpony-ast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29461911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T22:42:09.113Z","status":"ssl_error","status_checked_at":"2026-02-14T22:42:05.053Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","ffi-bindings","parser","pony","pony-language","ponylang"],"created_at":"2024-10-12T13:36:13.227Z","updated_at":"2026-02-15T00:32:19.958Z","avatar_url":"https://github.com/mfelsche.png","language":"Pony","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pony-AST :horse: :deciduous_tree:\n\nPony library wrapping `libponyc` via C-FFI, so Pony programs can finally compile themselves. :horse: :point_right: :horse:\n\n## Current Status\n\nThis software is:\n\n* Untested\n* Dangerous\n* Hacky\n* hopelessly broken\n\nIt will:\n\n* Leak memory\n* Eat all the memory on your machine\n* Segfault\n* Steal all of your bitcoins\n\n**Use only if you know what you are doing!**\n\n## Requirements\n\nIn order to make the current compiler work, and have it pick up the Pony standard library one needs to point the `PONYPATH` environment variable to the pony stdlib. If you have a pony installation you compiled yourself, it will most likely live in: `ponyc-repository/packages`. If you have a pre-compiled installation obtained via ponyup it might live in something like: `$HOME/.local/share/ponyup/ponyc-release-\u003cRELEASE-NUMBER\u003e-\u003cARCH\u003e-\u003cSYSTEM\u003e/packages`.\n\n## Usage\n\nThe main entrypoint is the Compiler, that is running the pony compiler passes until (including) the `expr` pass and is emitting the produced `ast_t` structure in the `Program` class. It can be used to access packages, modules and entities, rerieve AST nodes at certain positions, go to definitions etc. etc.\n\n```pony\nuse ast = \"ast\"\n\nactor Main\n  new create(env: Env) =\u003e\n    try\n      let path = FilePath(FileAuth(env.root), env.args(env.args.size() - 1)?)\n      match ast.Compiler.compile(env, path)\n      | let program: ast.Program =\u003e\n        // do something with the parsed program AST\n        env.out.print(\"OK\")\n      | let errors: Array[ast.Error] =\u003e\n        // do something with the compilation errors\n        for e in errors.values() do\n          env.err.print(e.msg)\n        end\n      end\n    end\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfelsche%2Fpony-ast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfelsche%2Fpony-ast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfelsche%2Fpony-ast/lists"}