Starter template for parsing a JavaScript syntax tree and turning it into another syntax tree.
Uses the meriyah
module to generate a JavaScript AST and a processNode
function that can be used to recursively traverse it.
I made this because I found myself repeating this same pattern for different "fun JavaScript-to-X-language" AST generators. I plan on making fun projects with it.
Example: JS to JSONLogic (krismuniz/js-to-json-logic)
Copyright (c) 2020 Kristian Muñiz