summaryrefslogtreecommitdiff
path: root/test/gtest/wat-lexer.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-06-10 12:30:09 -0700
committerGitHub <noreply@github.com>2022-06-10 12:30:09 -0700
commit093bf06e1115e84c4300eca91197dc31336ee3e5 (patch)
tree9016245be8af54c8e47bdb3c0aaa0ed6f263b3c0 /test/gtest/wat-lexer.cpp
parent9fbfe0f200f716a6c9a045c6a3f2606b99af8dea (diff)
downloadbinaryen-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/gtest/wat-lexer.cpp')
-rw-r--r--test/gtest/wat-lexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gtest/wat-lexer.cpp b/test/gtest/wat-lexer.cpp
index a1c60a706..0f83127c8 100644
--- a/test/gtest/wat-lexer.cpp
+++ b/test/gtest/wat-lexer.cpp
@@ -1361,7 +1361,7 @@ TEST(LexerTest, LexIdent) {
Token expected{"$09azAZ!#$%&'*+-./:<=>?@\\^_`|~"sv, IdTok{}};
EXPECT_EQ(*lexer, expected);
EXPECT_TRUE(lexer->getID());
- EXPECT_EQ(*lexer->getID(), "$09azAZ!#$%&'*+-./:<=>?@\\^_`|~"sv);
+ EXPECT_EQ(*lexer->getID(), "09azAZ!#$%&'*+-./:<=>?@\\^_`|~"sv);
}
{
Lexer lexer("$[]{}"sv);