AST cleanup; Definition generators scaffolding

This commit is contained in:
dcodeIO
2018-03-17 01:37:05 +01:00
parent eef923d124
commit faac3c31eb
50 changed files with 3272 additions and 2690 deletions

19
lib/demangle/index.js Normal file
View File

@ -0,0 +1,19 @@
/**
* @file AssemblyScript demangler.
*/
module.exports = demangle;
/**
* Demangles module exports to a friendly object structure compatible with WebIDL and TypeScript
* definitions.
*/
function demangle(exports) {
var root = {};
for (let i in exports) {
if (exports.hasOwnProperty(i)) {
// TODO
}
}
return root;
}