{"id":15056378,"url":"https://github.com/elixir-tools/spitfire","last_synced_at":"2026-03-04T05:03:56.877Z","repository":{"id":213570423,"uuid":"721928620","full_name":"elixir-tools/spitfire","owner":"elixir-tools","description":"Error tolerant parser for Elixir","archived":false,"fork":false,"pushed_at":"2025-03-07T01:27:21.000Z","size":402,"stargazers_count":82,"open_issues_count":9,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T08:34:32.682Z","etag":null,"topics":["elixir","erlang","otp","parser","pratt-parser","recursive-descent-parser"],"latest_commit_sha":null,"homepage":"https://www.elixir-tools.dev","language":"Elixir","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/elixir-tools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2023-11-22T04:23:45.000Z","updated_at":"2025-04-06T17:13:34.000Z","dependencies_parsed_at":"2024-06-17T13:08:56.615Z","dependency_job_id":"9dfdb3cf-b5e0-42da-8e3b-0081e3259bfc","html_url":"https://github.com/elixir-tools/spitfire","commit_stats":{"total_commits":208,"total_committers":6,"mean_commits":"34.666666666666664","dds":"0.038461538461538436","last_synced_commit":"065f7d45d8fe9747415709683001178fbeacd69c"},"previous_names":["elixir-tools/spitfire"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-tools%2Fspitfire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-tools%2Fspitfire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-tools%2Fspitfire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-tools%2Fspitfire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elixir-tools","download_url":"https://codeload.github.com/elixir-tools/spitfire/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"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":["elixir","erlang","otp","parser","pratt-parser","recursive-descent-parser"],"created_at":"2024-09-24T21:50:16.759Z","updated_at":"2026-03-04T05:03:48.758Z","avatar_url":"https://github.com/elixir-tools.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spitfire\n\n[![Hex.pm](https://img.shields.io/hexpm/v/spitfire)](https://hex.pm/packages/spitfire)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/spitfire/)\n\nSpitfire is a new error resilient parser for Elixir.\n\nThe goal of the project is to make it easier for editor tooling to provide code intelligence for incomplete snippets of Elixir code.\n\n## Progress\n\n- [x] Parse all Elixir Syntax into core compatible AST.\n- [x] Error resilience\n- [x] Environment querying API\n\n## Design\n\nThe project is a handwritten Pratt parser (a type of recursive descent parser). A hand written parser allows for better error tolerance as well as (hopefully) better error messages.\n\nPratt parsers are becoming very popular in the realm of error tolerant parsing. Projects that I have been watching and learning from include the `rustc` parser as well as the new [Prism](https://github.com/ruby/prism) parser for the Ruby project.\n\n## Contributing\n\nWith the parser complete, the goal is now to improve error resilience, parsing speed, and improve the environment querying capabilities.\n\n## Acknowledgements\n\nI'd like to thank Thorsten Ball, the author of [Writing an Interpreter in Go](https://interpreterbook.com). I read this book a couple of years ago and built out the language from the book. Thorsten teaches you how to build a Pratt parser, which is really proving helpful for the development of Spitfire.\n\n## License\n\nMIT License\n\nCopyright (c) 2023 Mitchell Hanberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-tools%2Fspitfire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felixir-tools%2Fspitfire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-tools%2Fspitfire/lists"}