-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
118b57a
commit 77eb689
Showing
31 changed files
with
672 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
```k | ||
requires "expression/mx-to-rust.md" | ||
requires "expression/raw-value.md" | ||
requires "expression/rust-to-mx.md" | ||
requires "expression/strings.md" | ||
requires "expression/struct.md" | ||
module MX-RUST-EXPRESSION | ||
imports private MX-RUST-EXPRESSION-MX-TO-RUST | ||
imports private MX-RUST-EXPRESSION-RAW-VALUE | ||
imports private MX-RUST-EXPRESSION-RUST-TO-MX | ||
imports private MX-RUST-EXPRESSION-STRINGS | ||
imports private MX-RUST-EXPRESSION-STRUCT | ||
endmodule | ||
``` | ||
``` |
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 @@ | ||
```k | ||
module MX-RUST-EXPRESSION-RAW-VALUE | ||
imports private MX-RUST-REPRESENTATION | ||
rule rawValue(V:Value) => mxRustNewValue(V) | ||
endmodule | ||
``` |
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,30 @@ | ||
```k | ||
module MX-RUST-MODULES-HOOKS | ||
imports private COMMON-K-CELL | ||
imports private MX-COMMON-SYNTAX | ||
imports private MX-RUST-REPRESENTATION | ||
imports private RUST-EXECUTION-CONFIGURATION | ||
imports private RUST-REPRESENTATION | ||
imports private RUST-SHARED-SYNTAX | ||
rule | ||
<k> | ||
normalizedMethodCall | ||
( #token("MxRust#Hooks", "Identifier"):Identifier | ||
, #token("MxRust#loadMxReturnValue", "Identifier"):Identifier | ||
, ( ptr(ReturnTypeId:Int) | ||
, .PtrList | ||
) | ||
) | ||
=> MX#popLastReturnValue(.MxValueList) ~> mxToRustTyped(T) | ||
... | ||
</k> | ||
<values> | ||
ReturnTypeId |-> rustType(T) | ||
... | ||
</values> | ||
endmodule | ||
``` |
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 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
Oops, something went wrong.