From 093bf06e1115e84c4300eca91197dc31336ee3e5 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Fri, 10 Jun 2022 12:30:09 -0700 Subject: [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` and `MaybeResult` types. Follow-on PRs will implement additional phases of parsing and parsing for new elements in the grammar. --- test/lit/help/wasm-opt.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/lit/help') 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: -------------------- -- cgit v1.2.3