{"id":20109052,"url":"https://github.com/jaimecgomezz/dft.p","last_synced_at":"2026-05-15T05:04:42.611Z","repository":{"id":57618718,"uuid":"446245713","full_name":"jaimecgomezz/dft.p","owner":"jaimecgomezz","description":"dft instructions parser","archived":false,"fork":false,"pushed_at":"2022-01-24T03:26:36.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T06:45:24.753Z","etag":null,"topics":["parser"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/dftp","language":"Rust","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/jaimecgomezz.png","metadata":{"files":{"readme":"README.txt","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}},"created_at":"2022-01-10T01:30:15.000Z","updated_at":"2022-01-18T05:27:53.000Z","dependencies_parsed_at":"2022-09-16T19:01:48.666Z","dependency_job_id":null,"html_url":"https://github.com/jaimecgomezz/dft.p","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jaimecgomezz/dft.p","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimecgomezz%2Fdft.p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimecgomezz%2Fdft.p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimecgomezz%2Fdft.p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimecgomezz%2Fdft.p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaimecgomezz","download_url":"https://codeload.github.com/jaimecgomezz/dft.p/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaimecgomezz%2Fdft.p/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33054454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["parser"],"created_at":"2024-11-13T18:07:00.515Z","updated_at":"2026-05-15T05:04:42.578Z","avatar_url":"https://github.com/jaimecgomezz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"dft.p\n--------------------------------------------------------------------------------\ndft instructions file parser\n\n\ndescription\n--------------------------------------------------------------------------------\nthis lib/bin project is the official tool to parse, lint and fix .dft files\n\n\nwhy\n--------------------------------------------------------------------------------\nwhile working in the dft project I realized 2 things:\n\n  - the dft tool itself shouldn't be responsible of parsing the instructions\n    file, but rather the execution itself\n\n  - haven't made a parser yet, so... here's one\n\n\ngrammar (BNF)\n--------------------------------------------------------------------------------\n\u003cprogram\u003e                     :=  \u003cstatement\u003e\n                              |   \u003cprogram\u003e \u003cstatement\u003e\n                              ;\n\n\u003cstatement\u003e                   :=  \u003cdirective-component\u003e\n                                    \u003cconnector-component-list\u003e ;\n                              ;\n\n\u003cdirective-component\u003e         :=  \u003cdirective-literal\u003e \u003cfield-list\u003e\n                              ;\n\n\u003cdirective-literal\u003e           :=  SET\n                              |   ADD\n                              |   ALIAS\n                              |   MERGE\n                              |   IGNORE\n                              |   RENAME\n                              |   FILTER\n                              |   COERCE\n                              |   DISTINCT\n                              |   VALIDATE\n                              ;\n\n\u003cfield-list\u003e                  :=  \u003cfield\u003e\n                              |   \u003cfield-list\u003e , \u003cfield\u003e\n                              ;\n\n\u003cfield\u003e                       := String\n                              ;\n\n\u003cconnector-component-list\u003e    :=  \u003cconnector-component\u003e\n                              |   \u003cconnector-component-list\u003e\n                                    \u003cconnector-component\u003e\n                              ;\n\n\u003cconnector-component\u003e         :=  \u003cconnector-literal\u003e \u003ctarget-component\u003e\n                              ;\n\n\u003cconnector-literal\u003e           :=  OR\n                              |   TO\n                              |   TYPED\n                              |   RESCUE\n                              |   DEFAULT\n                              |   MATCHING\n                              ;\n\n\u003ctarget-component\u003e            :=  \u003cdata-value\u003e\n                              |   \u003cdata-type-literal\u003e\n                              |   \u003cformat-literal\u003e\n                              |   \u003caction-literal\u003e\n                              |   \u003cexpression-literal\u003e\n                              ;\n\n\u003cdata-value\u003e                  :=  f64\n                              |   String\n                              |   bool\n                              |   isize\n                              ;\n\n\u003cdata-type-literal\u003e           :=  FLOAT\n                              |   STRING\n                              |   INTEGER\n                              |   BOOLEAN\n                              ;\n\n\u003cformat-literal\u003e              :=  URI\n                              |   UUID\n                              |   DATE\n                              |   TIME\n                              |   EMAIL\n                              |   DATETIME\n                              ;\n\n\u003caction-literal\u003e              :=  HALT\n                              |   NOTIFY\n                              |   DISCARD\n                              ;\n\n\u003cexpression-literal\u003e          :=  EQUALS\n                              |   LESSER\n                              |   DIFFERS\n                              |   GREATER\n                              |   EQLESSER\n                              |   EQGREATER\n                              ;\n\n\nTODO\n--------------------------------------------------------------------------------\n[] Improve combinators that return lists\n[] Improve error verbosity\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimecgomezz%2Fdft.p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaimecgomezz%2Fdft.p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaimecgomezz%2Fdft.p/lists"}