forked from runtimeverification/wasm-semantics
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Module parsing * Parse types * Add tests for parsing wasm types * Makefile fixes * Run binary parsing tests on github * Some documentation
- Loading branch information
1 parent
7f0a0dd
commit 3715249
Showing
31 changed files
with
1,195 additions
and
22 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 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,5 +1,6 @@ | ||
/.kwasm-logs/ | ||
/tests/*/*-out | ||
/tmp | ||
|
||
*.sty | ||
|
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
32 changes: 32 additions & 0 deletions
32
pykwasm/src/pykwasm/kdist/wasm-semantics/binary-parser-test.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,32 @@ | ||
```k | ||
requires "binary-parser.md" | ||
requires "wasm.md" | ||
module BINARY-PARSER-TEST-SYNTAX | ||
endmodule | ||
module BINARY-PARSER-TEST | ||
imports BINARY-PARSER-TEST-SYNTAX | ||
imports BINARY-PARSER | ||
syntax KItem ::= parseBinary(Bytes) | ||
configuration | ||
<k> parseBinary($PGM) </k> | ||
<wasm/> | ||
rule parseBinary(B:Bytes) => parseModule(B) | ||
rule addDefnToModule | ||
( false => true | ||
, _D:Defn | ||
, #module(... metadata: _ => #meta (... id: , funcIds: .Map , filename: "error: test addDefnToModule branch called." ))) | ||
[owise] | ||
rule parseSection(U:UnparsedSection) | ||
=> parseError("parseSection test default", ListItem(U)) | ||
[owise] | ||
endmodule | ||
``` |
Oops, something went wrong.