Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
yujiaao committed Nov 26, 2020
1 parent 96bde2b commit ce913f2
Show file tree
Hide file tree
Showing 198 changed files with 53,933 additions and 0 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
8 changes: 8 additions & 0 deletions AssemblyScriptStudy/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions AssemblyScriptStudy/.idea/AssemblyScriptStudy.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions AssemblyScriptStudy/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions AssemblyScriptStudy/.idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions AssemblyScriptStudy/.idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions AssemblyScriptStudy/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions AssemblyScriptStudy/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions AssemblyScriptStudy/asconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"targets": {
"debug": {
"binaryFile": "build/untouched.wasm",
"textFile": "build/untouched.wat",
"sourceMap": true,
"debug": true
},
"release": {
"binaryFile": "build/optimized.wasm",
"textFile": "build/optimized.wat",
"sourceMap": true,
"optimize": true
}
},
"options": {}
}
12 changes: 12 additions & 0 deletions AssemblyScriptStudy/assembly/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// The entry file of your WebAssembly module.

export function add(a: i32, b: i32): i32 {
return a + b;
}

export function f(x: i32): i32 {
if (x === 1 || x === 2) {
return 1;
}
return f(x - 1) + f(x - 2)
}
6 changes: 6 additions & 0 deletions AssemblyScriptStudy/assembly/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "assemblyscript/std/assembly.json",
"include": [
"./**/*.ts"
]
}
3 changes: 3 additions & 0 deletions AssemblyScriptStudy/build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.wasm
*.wasm.map
*.asm.js
Loading

0 comments on commit ce913f2

Please sign in to comment.