Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Rust AST parser & emitter: what do you use?
In Python I use builtin ast
; in Java I use javaparser; in C I wrote a custom parser/emitter; in TypeScript I use builtin functions; …
What should I use in Rust? - In the past I've hacked away with nom, syn, quote, and prettyplease… it would be nice to see a higher level API that enables:
derive
s and other macrosuse
)struct
simpl
blocksfn
prototypes (I don't care about body-parsing, just want to understand the interface and be able to replace the interface and push the body back verbatim)const
/ let
bindingsThanks
5 posts - 2 participants
🏷️ Rust_feed