diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-06-10 12:30:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 12:30:09 -0700 |
commit | 093bf06e1115e84c4300eca91197dc31336ee3e5 (patch) | |
tree | 9016245be8af54c8e47bdb3c0aaa0ed6f263b3c0 /test/lit/help/wasm-opt.test | |
parent | 9fbfe0f200f716a6c9a045c6a3f2606b99af8dea (diff) | |
download | binaryen-093bf06e1115e84c4300eca91197dc31336ee3e5.tar.gz binaryen-093bf06e1115e84c4300eca91197dc31336ee3e5.tar.bz2 binaryen-093bf06e1115e84c4300eca91197dc31336ee3e5.zip |
[Parser] Begin parsing modules (#4716)
Implement the basic infrastructure for the full WAT parser with just enough
detail to parse basic modules that contain only imported globals. Parsing
functions correspond to elements of the grammar in the text specification and
are templatized over context types that correspond to each phase of parsing.
Errors are explicitly propagated via `Result<T>` and `MaybeResult<T>` types.
Follow-on PRs will implement additional phases of parsing and parsing for new
elements in the grammar.
Diffstat (limited to 'test/lit/help/wasm-opt.test')
-rw-r--r-- | test/lit/help/wasm-opt.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lit/help/wasm-opt.test b/test/lit/help/wasm-opt.test index bb111d92e..66ac66f91 100644 --- a/test/lit/help/wasm-opt.test +++ b/test/lit/help/wasm-opt.test @@ -76,6 +76,9 @@ ;; CHECK-NEXT: --output-source-map-url,-osu Emit specified string as source ;; CHECK-NEXT: map URL ;; CHECK-NEXT: +;; CHECK-NEXT: --new-wat-parser Use the experimental new WAT +;; CHECK-NEXT: parser +;; CHECK-NEXT: ;; CHECK-NEXT: ;; CHECK-NEXT: Optimization passes: ;; CHECK-NEXT: -------------------- |