aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-08-05 21:16:55 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-08-05 21:58:12 +0900
commit1adea873e3a949d5a892fc7ad5ff9cfa42dc2c8c (patch)
treea19ed726327193ce2cf3b82261ba069706767b9d
parentPrint a stack trace on panic (diff)
downloadcotia-1adea873e3a949d5a892fc7ad5ff9cfa42dc2c8c.tar.gz
cotia-1adea873e3a949d5a892fc7ad5ff9cfa42dc2c8c.tar.xz
Remove the accept message
-rw-r--r--README.md7
-rw-r--r--cmd/vartan/parse.go2
2 files changed, 3 insertions, 6 deletions
diff --git a/README.md b/README.md
index c3c6fc1..3052501 100644
--- a/README.md
+++ b/README.md
@@ -29,8 +29,8 @@ term
;
factor
: number
- | id
- ;
+ | id
+ ;
whitespaces: "[\u{0009}\u{0020}]+" #skip;
number: "[0-9]+";
@@ -52,8 +52,7 @@ If you want to make sure that the grammar behaves as expected, you can use `vart
⚠️ An encoding that `vartan parse` command and the driver can handle is only UTF-8.
```sh
-$ echo -n 'foo + bar * baz * 100 ' | vartan parse expr.json
-Accepted
+$ echo -n 'foo + bar * baz * 100' | vartan parse expr.json
expr
├─ expr
│ └─ term
diff --git a/cmd/vartan/parse.go b/cmd/vartan/parse.go
index 61456cf..2e9c608 100644
--- a/cmd/vartan/parse.go
+++ b/cmd/vartan/parse.go
@@ -90,8 +90,6 @@ func runParse(cmd *cobra.Command, args []string) (retErr error) {
return err
}
- fmt.Printf("Accepted\n")
-
if !*parseFlags.onlyParse {
var tree *driver.Node
if *parseFlags.cst {