/* * This module takes a parse tree in a surface format * and transforms it into the "core" language which is * much simpler and easier to type-check, optimize, and evaluate */ var typ = require("./representation.js"); // Lists get desugared to nested function calls // i.e. (cons (cons (cons ...))) function desugarList(lst) {