From 1adea873e3a949d5a892fc7ad5ff9cfa42dc2c8c Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Thu, 5 Aug 2021 21:16:55 +0900 Subject: Remove the accept message --- README.md | 7 +++---- cmd/vartan/parse.go | 2 -- 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 { -- cgit v1.2.3