aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {