6

My friend and I want to learn to make our own programming language which runs by compiling to JavaScript code. And now there's plenty of languages which compiles to JavaScript. So far I've learnt basic simple methods of parsing code from source and running it in JavaScript.
But I'm not able to generate good code so far. Since many projects have done that, I'm wondering if there's any standard tool here, and with that I can generate JavaScript from the AST I got form parsing source?

1 Answer 1

5

escodegen would be nice. https://github.com/Constellation/escodegen

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.