diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-17 17:29:31 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-17 17:29:31 +0900 |
commit | 2c22c1e193ce8b3abd6f1436457ff92a40646e45 (patch) | |
tree | 2979b4d644e038ae2ec84a201c2557d3db5e1570 /spec/syntax_error.go | |
parent | Improve syntax error messages (diff) | |
download | cotia-2c22c1e193ce8b3abd6f1436457ff92a40646e45.tar.gz cotia-2c22c1e193ce8b3abd6f1436457ff92a40646e45.tar.xz |
Detect multiple syntax errors in a single parse
Diffstat (limited to 'spec/syntax_error.go')
-rw-r--r-- | spec/syntax_error.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/syntax_error.go b/spec/syntax_error.go index 041486d..9d67ccc 100644 --- a/spec/syntax_error.go +++ b/spec/syntax_error.go @@ -24,7 +24,6 @@ var ( // syntax errors synErrInvalidToken = newSyntaxError("invalid token") - synErrNoProduction = newSyntaxError("a grammar must have at least one production") synErrNoProductionName = newSyntaxError("a production name is missing") synErrNoColon = newSyntaxError("the colon must precede alternatives") synErrNoSemicolon = newSyntaxError("the semicolon is missing at the last of an alternative") |