Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Adam Chalmers
@adam_chal@hachyderm.io  ·  activity timestamp 4 days ago

I really liked this blog post about writing fallible parsers that handle syntax errors gracefully.

I wish I'd read this before I started the KCL parser, and now I hope to someday rewrite it using this approach. Strongly suggested read for anyone curious about writing parsers. It uses the Rowan library which powers Rust Analyzer. A Rust Analyzer maintainer (rightfully) told me years ago I should have used Rowan instead of our homegrown solution. If I'd read this tutorial when we started KCL, maybe i would have!

https://thunderseethe.dev/posts/parser-base/

#rust #parsing #rowan

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login