Mercurial > repos > tabletprog
diff compiler.js @ 170:18598163e3ef
Add linked list implementation and cons operator
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 13 Aug 2013 21:58:03 -0700 |
parents | d715fb3c39ab |
children | 869399ff7faa |
line wrap: on
line diff
--- a/compiler.js Fri Aug 09 21:01:11 2013 -0700 +++ b/compiler.js Tue Aug 13 21:58:03 2013 -0700 @@ -99,7 +99,7 @@ if (!(name in this.names)) { throw new Error('symbol ' + name + ' not found at toplevel'); } - if (name == 'true' || name == 'false') { + if (name == 'true' || name == 'false' || name == 'list') { return 'module_' + name; } if (!this.names[name].modulevar) { @@ -232,7 +232,7 @@ if (nestedcall) { this.closedover[name] = true; this.passthruenv = false; - } + } if (name in this.closedover) { var ret = { type: 'closedover',