ES6 Parser in Dlang

Petar Petar
Thu Feb 27 17:47:36 UTC 2020


On Thursday, 27 February 2020 at 16:49:19 UTC, Meta wrote:
> 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

http://code.dlang.org/packages/es6-grammar

is based on Pegged, btw.


More information about the Digitalmars-d mailing list