Commit ea1f14e
authored
Add support for MoonBit (#1020)
* feat: initial commit for moonbit
* feat(moonbit): use teavm-java as reference
* feat(moonbit): convert some types
* feat(moonbit): type enum/variant + cleanup result/tuple
* feat(moonbit): type record
* fix(moonbit): interface generation
* feat(moonbit): clean up interface generator
* feat(moonbit): add test and start bindgen
* feat(moonbit): wip, bindgen
* fix(moonbit): array api
* feat(moonbit): adjust test output
* feat(moonbit): partial support for lower/lift enum/variant
* fix(moonbit): variant cases
* misc(moonbit): small rewrites
* feat(moonbit): add exportation
* fix(moonbit): cleanup return area
* feat(moonbit): reorganize generated directory structure
fix(moonbit): char conversion and previous bug
* feat(moonbit): lower / lift string
* fix(moonbit): typo
* feat(moonbit): fix qualifier and cleanup directory structure
* fix(moonbit): attemp to fix qualifier issue
* fix(moonbit): misimplemented instructions
* refactor(moonbit): flag representation
* fix(moonbit): variant and tuple and release all tests
* feat(moonbit): add resource support
* fix(moonbit): generation for Option and others
* refactor(moonbit): improve generated code
* fix(moonbit): add keywords
* refactor(moonbit): merge contructor name and type name
* fix(moonbit): forgotten import
* fix(moonbit): forgotten keywords
* refactor(moonbit): move exportations
* refactor(moonbit): reorganize files and fix imports
* refactor(moonbit): move exportations to gen
* fix(moonbit): flag support
* fix(moonbit): world type import/export
* fix(moonbit): qualifier related issues
* refactor(moonbit): cleanup to make logic clear and robust
* fix(moonbit): configuration mistake
* cleanup: remove warnings
* fix(moonbit): configuration and local conflicts
* fix(moonbit): separate export and import types
* fix(moonbit): pass all tests
* fix(moonbit): add resource-drop, cabi-realloc and order imports and docs
* misc(moonbit): modify naming convention
* feat(moonbit): add derive show option
* misc(moonbit): update generated package name and generate doc
* fix(moonbit): string length should be char number
* misc(moonbit): naming convention
* ci(moonbit): add test ci for moonbit
* misc(moonbit): change representation for u16
* fix: abi change
* misc(moonbit): moon-bit -> moonbit
* feat(moonbit): derive eq
* misc(moonbit): avoid builtin type names
* feat(moonbit): lower and lift string
* misc(moonbit): adjust heap start address
* feat(moonbit): lower lift bytes
* feat(moonbit): wip add core f32 support
* fix(moonbit): keyword update
* fix(moonbit): reserve space
* misc(moonbit): replace inline wasm with builtin functions
* feat(moonbit): lift/lower array
* ci(moonbit): use powershell for windows installation
* misc(moonbit): fix preamble
* misc(moonbit): add todo for future work
* refactor(moonbit): split stub file
* fix(moonbit): allocate return area for exportation functions
* misc(moonbit): add documentation
* misc(moonbit): ignore stub file option
* fix(moonbit): ci check
* fix(moonbit): separate ffi1 parent 0d18c6b commit ea1f14e
File tree
9 files changed
+2760
-1
lines changed- .github/workflows
- ci
- crates/moonbit
- src
- tests
- src/bin
9 files changed
+2760
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
| |||
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| 162 | + | |
152 | 163 | | |
153 | 164 | | |
154 | 165 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
384 | 403 | | |
385 | 404 | | |
386 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments