Added a unit test and updated playground

pull/219/head
yhirose 2 years ago
parent 93d0489098
commit 3a56a15b0d
  1. 2
      docs/native.js
  2. BIN
      docs/native.wasm
  3. 10
      test/test2.cc

File diff suppressed because one or more lines are too long

Binary file not shown.

@ -233,6 +233,16 @@ TEST(InfiniteLoopTest, in_sequence) {
EXPECT_FALSE(pg);
}
TEST(InfiniteLoopTest, in_prioritized_choice) {
parser pg(R"(
S <- A*
A <- 'a' / 'b' B
B <- 'a' ''*
)");
EXPECT_FALSE(pg);
}
TEST(PrecedenceTest, Precedence_climbing) {
parser parser(R"(
START <- _ EXPRESSION

Loading…
Cancel
Save