-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic
(module bin ...)
support (#62)
* basic .bin.wast working --------- Co-authored-by: butterunderflow <[email protected]> Co-authored-by: Guannan Wei <[email protected]>
- Loading branch information
1 parent
c286f04
commit 2eb36f0
Showing
8 changed files
with
152 additions
and
14 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 |
---|---|---|
|
@@ -24,3 +24,6 @@ | |
path = third-party/lms-clean | ||
url = https://github.com/TiarkRompf/lms-clean | ||
ignore = dirty | ||
[submodule "third-party/wasmfx-tools"] | ||
path = third-party/wasmfx-tools | ||
url = [email protected]:wasmfx/wasmfx-tools.git |
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,7 @@ | ||
(module binary | ||
"\00\61\73\6d\01\00\00\00\01\85\80\80\80\00\01\60" | ||
"\00\01\7f\03\82\80\80\80\00\01\00\07\87\80\80\80" | ||
"\00\01\03\6f\6e\65\00\00\0a\8a\80\80\80\00\01\84" | ||
"\80\80\80\00\00\41\01\0b" | ||
) | ||
(assert_return (invoke "one") (i32.const 0x1)) |
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
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,17 @@ | ||
package gensym.wasm | ||
|
||
import gensym.wasm.parser.Parser | ||
import org.scalatest.FunSuite | ||
|
||
class TestSyntax extends FunSuite { | ||
def testFile(filename: String) = { | ||
val script = Parser.parseScriptFile(filename) | ||
println(s"script = $script") | ||
assert(script != None, "this syntax is not defined in antlr grammar") | ||
} | ||
|
||
test("basic script") { | ||
testFile("./benchmarks/wasm/script/script_basic.wabt") | ||
} | ||
} | ||
|
Submodule wasmfx-tools
added at
c9218c