dparser icon indicating copy to clipboard operation
dparser copied to clipboard

Actions in languages other than C.

Open dabrahams opened this issue 10 months ago • 16 comments

I'd like to open a discussion about how to approach using DParser from languages such as Swift and Rust. Handling types and actions written in other languages by going through C wrappers is possible but likely to be slow and cumbersome. Ideally we'd be able to write our grammar actions in any language, with some minimal amount of work in the DParser to support that language as a back-end.

Notes:

  • It is not currently a goal of mine to rewrite the parsing engine in another language; the only real argument for that is to obtain static safety guarantees, which is valuable but not my priority.
  • I am willing to contribute to whatever coding labor is implied.

dabrahams avatar Mar 13 '25 18:03 dabrahams