ES6 Parser in Dlang

Meta jared771 at gmail.com
Thu Feb 27 16:49:19 UTC 2020


On Thursday, 27 February 2020 at 14:06:19 UTC, James Lu wrote:
> I want to implement an ES6 (JavaScript) parser in Dlang so I 
> can implement a transpiler. Because it's a transpiler, I need 
> to be able to visit and rewrite AST nodes, then generate code 
> from the AST. Ideally, the parser generator supports streaming 
> the input into the AST visitor out to the output.
>
> What parser generator library should I use for this purpose?

There's also Pegged:

https://code.dlang.org/packages/pegged


More information about the Digitalmars-d mailing list