I’m writting a ppx which is handling the unicode as an attribute payload. It works as I intended with ascii chars, but it doesn’t with the unicode chars.
My approach to resolve this issue is that constructing the backtick string literal in my ppx as a returning value, and as a pattern as well.
But I couldn’t find the way to dump the backtick expression in order to see the AST nodes in rescript such as dumpast command in OCaml.
Is it possible to construct the backick string literal with Parsetree module btw?
Hi please don’t use ppx unless you are willing to deal with the potential big breaking changes.
Most existing ppx tutorials are targeted to Ocaml compiler libs which are not the same as Rescript compiler libs.
This is a heads up warning since a lot of times people ask why we break their code. It’s typically either the case they are using some long deprecated features or some internal stuff.
For Unicode stuff, we will have built in support in next release