David542
David542

Reputation: 110592

Converting pegjs to C++

I have used pegjs to create a parser, quite similar actually to the example shown here for a custom string-formatting function.

I would like to port this to C++. What might be the best way to do this? Are there are existing parsers in C/C++ that are compliant with the pegjs grammar? Or, would I want to transpile the generated JS with something like V8, or what might be a possible route to do this conversion, aside from manually rewriting everything from scratch?

Upvotes: 0

Views: 188

Answers (0)

Related Questions