generates an ECMAScript program from a valid Shift AST
In this demo, a Shift AST is given on the left, and the code generator output is shown on the right. Notice how the code generator outputs only the whitespace/punctuation that is strictly necessary for the program to round trip through the parser.
npm install shift-codegen
import codegen from "shift-codegen"; let programSource = codegen(/* Shift AST */);