remove userland experiment
This commit is contained in:
parent
c0aa9d1660
commit
bc93aab53e
|
@ -1 +1,3 @@
|
||||||
.gitignore
|
.gitignore
|
||||||
|
|
||||||
|
: foreach *.wast |> wat2wasm -o %o %f |> %B.wasm
|
|
@ -1 +0,0 @@
|
||||||
node_modules
|
|
|
@ -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));
|
|
||||||
});
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
npm install
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
include_rules
|
|
||||||
: foreach *.walt |> node ../../compile.js %f %o |> %B.wasm
|
|
||||||
: foreach *.wast |> wat2wasm -o %o %f |> %B.wasm
|
|
|
@ -1,11 +0,0 @@
|
||||||
let counter: i32 = 0;
|
|
||||||
|
|
||||||
export function decrement(): i32 {
|
|
||||||
counter -= 1;
|
|
||||||
return counter;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function increment(): i32 {
|
|
||||||
counter += 1;
|
|
||||||
return counter;
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue