summaryrefslogtreecommitdiff
path: root/src/parser/wat-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/wat-parser.h')
-rw-r--r--src/parser/wat-parser.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parser/wat-parser.h b/src/parser/wat-parser.h
index b31523af9..3f7dd64c4 100644
--- a/src/parser/wat-parser.h
+++ b/src/parser/wat-parser.h
@@ -19,6 +19,7 @@
#include <string_view>
+#include "parser/lexer.h"
#include "support/result.h"
#include "wasm.h"
@@ -27,6 +28,12 @@ namespace wasm::WATParser {
// Parse a single WAT module.
Result<> parseModule(Module& wasm, std::string_view in);
+// Parse a single WAT module that may have other things after it, as in a wast
+// file.
+Result<> parseModule(Module& wasm, Lexer& lexer);
+
+Result<Expression*> parseExpression(Module& wasm, Lexer& lexer);
+
} // namespace wasm::WATParser
#endif // parser_wat_parser_h