3 changed files with 31 additions and 9 deletions
@ -0,0 +1,11 @@ |
|||
/* |
|||
* 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) { |
Loading…
Reference in new issue