{"id":21971604,"url":"https://github.com/mandarancio/dyaf","last_synced_at":"2025-03-22T23:11:15.823Z","repository":{"id":142911130,"uuid":"118385640","full_name":"Mandarancio/DYAF","owner":"Mandarancio","description":"Do Yourself A Favor: an extensible parser and AST Generator","archived":false,"fork":false,"pushed_at":"2018-01-22T17:18:27.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T00:14:01.371Z","etag":null,"topics":["ast","compiler","dsl","extensible","modular","parser"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mandarancio.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-01-22T00:12:19.000Z","updated_at":"2023-01-20T23:01:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"a18380ed-3570-4ad5-8ede-0716f7fbbe19","html_url":"https://github.com/Mandarancio/DYAF","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/Mandarancio%2FDYAF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mandarancio%2FDYAF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mandarancio%2FDYAF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mandarancio%2FDYAF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mandarancio","download_url":"https://codeload.github.com/Mandarancio/DYAF/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245031509,"owners_count":20549925,"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":["ast","compiler","dsl","extensible","modular","parser"],"created_at":"2024-11-29T14:52:32.932Z","updated_at":"2025-03-22T23:11:15.799Z","avatar_url":"https://github.com/Mandarancio.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DYAF\nDo Yourself A Favor is a simple extensible parser and **AST** generator (and in future compiler).\n\nBy default the parser is unable to parse anything and the AST will only contain a block with all the code but \nvia the ```Extension``` class is possible to define new symbols and the extra parsing capabilities.\n\nA simple example is ```scidown.h``` extension.\n\n## Example \n\nUsing the ```scidown``` extension on the text:\n\n```  \n# Title\nAnother _line_...\n## A sub-chapter\netc *etc* etc...\n# A Second chapter\nthis is ~not~ a [link](url).\n Bla -bla- bla...\nThis @(ref1) is a reference to something not yet referenced.\n\n```\n\nDYAF generate the following **AST**\n\n```\n┬─ NaN()\n├┬─ Chapter(Title)\n│├┬─ Line()\n││├── NaN(): [Another ]\n││├┬─ underline()\n│││└── NaN(): [line]\n││└── NaN(): [...]\n│└┬─ SubChapter( A sub-chapter)\n│ └┬─ Line()\n│  ├── NaN(): [etc ]\n│  ├┬─ bold()\n│  │└── NaN(): [etc]\n│  └── NaN(): [ etc...]\n└┬─ Chapter(A Second chapter)\n ├┬─ Line()\n │├── NaN(): [this is ]\n │├┬─ deleted()\n ││└── NaN(): [not]\n │├── NaN(): [ a ]\n │├── link(link, url): []\n │└── NaN(): [.]\n ├┬─ Line()\n │├── NaN(): [ Bla ]\n │├┬─ italic()\n ││└── NaN(): [bla]\n │└── NaN(): [ bla...]\n └┬─ Line()\n  ├── NaN(): [This ]\n  ├── reference(ref1): []\n  └── NaN(): [ is a reference to something not yet referenced.]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandarancio%2Fdyaf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandarancio%2Fdyaf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandarancio%2Fdyaf/lists"}