remove userland experiment

This commit is contained in:
Cadey Ratio 2018-06-20 08:17:19 -07:00
parent c0aa9d1660
commit bc93aab53e
15 changed files with 2 additions and 3562 deletions

View File

@ -1 +1,3 @@
.gitignore
: foreach *.wast |> wat2wasm -o %o %f |> %B.wasm

1
userland/.gitignore vendored
View File

@ -1 +0,0 @@
node_modules

View File

@ -1,11 +0,0 @@
const compileWalt = require('walt-compiler').default;
const fs = require('fs');
fs.readFile(process.argv[2], 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
const buffer = compileWalt(data);
fs.writeFileSync(process.argv[3], new Uint8Array(buffer));
});

View File

@ -1,3 +0,0 @@
#!/bin/sh
npm install

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +0,0 @@
{
"name": "userland",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"walt-compiler": "^0.6.2",
"webpack": "^4.9.1"
},
"dependencies": {
"commander": "^2.15.1"
}
}

View File

@ -1,3 +0,0 @@
include_rules
: foreach *.walt |> node ../../compile.js %f %o |> %B.wasm
: foreach *.wast |> wat2wasm -o %o %f |> %B.wasm

View File

@ -1,11 +0,0 @@
let counter: i32 = 0;
export function decrement(): i32 {
counter -= 1;
return counter;
}
export function increment(): i32 {
counter += 1;
return counter;
}

View File

@ -1,13 +0,0 @@
const memory: Memory = { 'initial': 0 };
type File = {
'fd': i32,
'name': i32
};
export function main(): i32 {
let foo: File = 31337;
foo['fd'] = 0;
foo['name'] = 2;
return 0;
}