aboutsummaryrefslogtreecommitdiff
path: root/spec/syntax_error.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-07-17 17:29:31 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-07-17 17:29:31 +0900
commit2c22c1e193ce8b3abd6f1436457ff92a40646e45 (patch)
tree2979b4d644e038ae2ec84a201c2557d3db5e1570 /spec/syntax_error.go
parentImprove syntax error messages (diff)
downloadurubu-2c22c1e193ce8b3abd6f1436457ff92a40646e45.tar.gz
urubu-2c22c1e193ce8b3abd6f1436457ff92a40646e45.tar.xz
Detect multiple syntax errors in a single parse
Diffstat (limited to 'spec/syntax_error.go')
-rw-r--r--spec/syntax_error.go1
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")