generated from oovm/RustTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
93 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
|
||
|
||
trait Laterality { | ||
|
||
} | ||
# some in option | ||
# fine in result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
|
||
|
||
|
||
trait List { | ||
|
||
} | ||
|
||
trait Dict { | ||
|
||
} | ||
|
||
trait Set { | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/valkyrie-standard/source/collection/binary-tree/_.valkyrie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
namespace! package.collection.tree.binary; | ||
|
||
class BinaryTree⟨T⟩ { | ||
data: T, | ||
lhs: BinaryTree⟨T⟩? | ||
|
10 changes: 10 additions & 0 deletions
10
packages/valkyrie-standard/source/collection/doubly-tree/_.valkyrie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace! package.collection.tree.doubly; | ||
|
||
class DoublyTree⟨T⟩ { | ||
parent: Self?, | ||
sibling_left: Self?, | ||
sibling_riht: Self?, | ||
child_head: Self?, | ||
child_tail: Self?, | ||
data: T, | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/valkyrie-standard/source/collection/either/_.valkyrie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace! package.collection.either; | ||
|
||
unity Either⟨L, R⟩ { | ||
# Failure | ||
Lyft { | ||
wrong: L | ||
}, | ||
# Success | ||
Riht { | ||
right: R | ||
}, | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/valkyrie-standard/source/collection/either/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
| Language | Wasm Type | | ||
|:---------|:-----------------| | ||
| `T` | `ref $T` | | ||
| `T?` | `ref null $T` | | ||
| `T??` | `ref null $Some` | | ||
| `u8` | `i32` | | ||
| `u8?` | `ref null i31` | | ||
| `u8??` | `ref null i32` | | ||
|
||
|
||
|
3 changes: 2 additions & 1 deletion
3
packages/valkyrie-standard/source/collection/linked-list/_.valkyrie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
namespace! package.collection.list.linked; | ||
|
||
class LinkedList<T> { | ||
data: T, | ||
rhs: LinkedList<T>? | ||
sibling_riht: LinkedList<T>? | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/valkyrie-standard/source/collection/vector/Vector.valkyrie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace package.collection.vector; | ||
|
||
class Vector<T> { | ||
private _ptr: Array⟨T⟩ | ||
private _len: usize | ||
} |
5 changes: 1 addition & 4 deletions
5
packages/valkyrie-standard/source/collection/vector/_.valkyrie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
class Vector<T> { | ||
private _ptr: Array⟨T⟩ | ||
private _len: usize | ||
} | ||
namespace package.collection.vector; |