From 52ad315a0df8a346953e570e8be472709b81cc6a Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 11 Jun 2022 21:40:38 +0900 Subject: Support the underscore symbol matching any symbols in vartan-test command --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 222ee62..3718437 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,8 @@ Passed test.txt When you specify a directory as the 2nd argument of `vartan test` command, it will run all test cases in the directory. +The underscore `_` allows you to match any symbols. Thus `(expr (expr (id)) (_) (expr (id)))` matches `a + b`, `a - b`, and so on. + ### 5. Generate a parser Using `vartan-go` command, you can generate a source code of a parser to recognize your grammar. -- cgit v1.2.3