{"id":33232191,"url":"https://github.com/RomanYankovsky/DelphiAST","last_synced_at":"2025-12-01T04:00:54.322Z","repository":{"id":20734148,"uuid":"24018393","full_name":"RomanYankovsky/DelphiAST","owner":"RomanYankovsky","description":"Abstract syntax tree builder for Delphi","archived":false,"fork":false,"pushed_at":"2023-12-26T17:32:49.000Z","size":941,"stargazers_count":252,"open_issues_count":97,"forks_count":119,"subscribers_count":51,"default_branch":"master","last_synced_at":"2024-02-01T15:03:13.944Z","etag":null,"topics":["delphi","pascal","syntax-tree"],"latest_commit_sha":null,"homepage":"","language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RomanYankovsky.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}},"created_at":"2014-09-14T09:35:31.000Z","updated_at":"2024-01-21T10:11:08.000Z","dependencies_parsed_at":"2024-01-09T01:02:01.583Z","dependency_job_id":"0f38498f-672f-40bf-93b6-9b6bd53ec33d","html_url":"https://github.com/RomanYankovsky/DelphiAST","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RomanYankovsky/DelphiAST","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanYankovsky%2FDelphiAST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanYankovsky%2FDelphiAST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanYankovsky%2FDelphiAST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanYankovsky%2FDelphiAST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RomanYankovsky","download_url":"https://codeload.github.com/RomanYankovsky/DelphiAST/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanYankovsky%2FDelphiAST/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27422214,"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","status":"online","status_checked_at":"2025-12-01T02:00:06.371Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["delphi","pascal","syntax-tree"],"created_at":"2025-11-16T18:00:21.983Z","updated_at":"2025-12-01T04:00:54.316Z","avatar_url":"https://github.com/RomanYankovsky.png","language":"Pascal","funding_links":[],"categories":["Language"],"sub_categories":[],"readme":"[![](https://tokei.rs/b1/github/RomanYankovsky/DelphiAST?category=lines)](https://github.com/RomanYankovsky/DelphiAST) [![](https://tokei.rs/b1/github/RomanYankovsky/DelphiAST?category=code)](https://github.com/RomanYankovsky/DelphiAST) [![](https://tokei.rs/b1/github/RomanYankovsky/DelphiAST?category=files)](https://github.com/RomanYankovsky/DelphiAST)\n### Abstract Syntax Tree Builder for Delphi \nWith DelphiAST you can take real Delphi code and get an abstract syntax tree. One unit at time and without a symbol table though. \n\nFreePascal and Lazarus compatible.\n\n#### Sample input\n```delphi\nunit Unit1;\n\ninterface\n\nuses\n  Unit2;\n\nfunction Sum(A, B: Integer): Integer;\n\nimplementation\n\nfunction Sum(A, B: Integer): Integer;\nbegin\n  Result := A + B;\nend;\n\nend.\n```\n\n#### Sample outcome\n```xml\n\u003cUNIT line=\"1\" col=\"1\" name=\"Unit1\"\u003e\n  \u003cINTERFACE begin_line=\"3\" begin_col=\"1\" end_line=\"10\" end_col=\"1\"\u003e\n    \u003cUSES begin_line=\"5\" begin_col=\"1\" end_line=\"8\" end_col=\"1\"\u003e\n      \u003cUNIT line=\"6\" col=\"3\" name=\"Unit2\"/\u003e\n    \u003c/USES\u003e\n    \u003cMETHOD begin_line=\"8\" begin_col=\"1\" end_line=\"10\" end_col=\"1\" kind=\"function\" name=\"Sum\"\u003e\n      \u003cPARAMETERS line=\"8\" col=\"13\"\u003e\n        \u003cPARAMETER line=\"8\" col=\"14\"\u003e\n          \u003cNAME line=\"8\" col=\"14\" value=\"A\"/\u003e\n          \u003cTYPE line=\"8\" col=\"20\" name=\"Integer\"/\u003e\n        \u003c/PARAMETER\u003e\n        \u003cPARAMETER line=\"8\" col=\"17\"\u003e\n          \u003cNAME line=\"8\" col=\"17\" value=\"B\"/\u003e\n          \u003cTYPE line=\"8\" col=\"20\" name=\"Integer\"/\u003e\n        \u003c/PARAMETER\u003e\n      \u003c/PARAMETERS\u003e\n      \u003cRETURNTYPE line=\"8\" col=\"30\"\u003e\n        \u003cTYPE line=\"8\" col=\"30\" name=\"Integer\"/\u003e\n      \u003c/RETURNTYPE\u003e\n    \u003c/METHOD\u003e\n  \u003c/INTERFACE\u003e\n  \u003cIMPLEMENTATION begin_line=\"10\" begin_col=\"1\" end_line=\"17\" end_col=\"1\"\u003e\n    \u003cMETHOD begin_line=\"12\" begin_col=\"1\" end_line=\"17\" end_col=\"1\" kind=\"function\" name=\"Sum\"\u003e\n      \u003cPARAMETERS line=\"12\" col=\"13\"\u003e\n        \u003cPARAMETER line=\"12\" col=\"14\"\u003e\n          \u003cNAME line=\"12\" col=\"14\" value=\"A\"/\u003e\n          \u003cTYPE line=\"12\" col=\"20\" name=\"Integer\"/\u003e\n        \u003c/PARAMETER\u003e\n        \u003cPARAMETER line=\"12\" col=\"17\"\u003e\n          \u003cNAME line=\"12\" col=\"17\" value=\"B\"/\u003e\n          \u003cTYPE line=\"12\" col=\"20\" name=\"Integer\"/\u003e\n        \u003c/PARAMETER\u003e\n      \u003c/PARAMETERS\u003e\n      \u003cRETURNTYPE line=\"12\" col=\"30\"\u003e\n        \u003cTYPE line=\"12\" col=\"30\" name=\"Integer\"/\u003e\n      \u003c/RETURNTYPE\u003e\n      \u003cSTATEMENTS begin_line=\"13\" begin_col=\"1\" end_line=\"15\" end_col=\"4\"\u003e\n        \u003cASSIGN line=\"14\" col=\"3\"\u003e\n          \u003cLHS line=\"14\" col=\"3\"\u003e\n            \u003cIDENTIFIER line=\"14\" col=\"3\" name=\"Result\"/\u003e\n          \u003c/LHS\u003e\n          \u003cRHS line=\"14\" col=\"13\"\u003e\n            \u003cEXPRESSION line=\"14\" col=\"13\"\u003e\n              \u003cADD line=\"14\" col=\"15\"\u003e\n                \u003cIDENTIFIER line=\"14\" col=\"13\" name=\"A\"/\u003e\n                \u003cIDENTIFIER line=\"14\" col=\"17\" name=\"B\"/\u003e\n              \u003c/ADD\u003e\n            \u003c/EXPRESSION\u003e\n          \u003c/RHS\u003e\n        \u003c/ASSIGN\u003e\n      \u003c/STATEMENTS\u003e\n    \u003c/METHOD\u003e\n  \u003c/IMPLEMENTATION\u003e\n\u003c/UNIT\u003e\n```\n\n#### Copyright\nCopyright (c) 2014-2020 Roman Yankovsky (roman@yankovsky.me) et al\n\nDelphiAST is released under the Mozilla Public License, v. 2.0\n\nSee LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRomanYankovsky%2FDelphiAST","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRomanYankovsky%2FDelphiAST","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRomanYankovsky%2FDelphiAST/lists"}