aboutsummaryrefslogtreecommitdiff
path: root/spec/syntax_error.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-04-14 02:11:06 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-04-15 21:27:19 +0900
commit97d36965cbb30108340727a982539e67dafea92d (patch)
tree8b08cfb995dc8eb219c1a8bdc753133113316b92 /spec/syntax_error.go
parentMove compiler tests from driver package to grammar package (diff)
downloadcotia-97d36965cbb30108340727a982539e67dafea92d.tar.gz
cotia-97d36965cbb30108340727a982539e67dafea92d.tar.xz
Add tests for compiler
Diffstat (limited to 'spec/syntax_error.go')
-rw-r--r--spec/syntax_error.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/syntax_error.go b/spec/syntax_error.go
index c4e6594..fdf9c40 100644
--- a/spec/syntax_error.go
+++ b/spec/syntax_error.go
@@ -25,6 +25,7 @@ var (
// syntax errors
synErrInvalidToken = newSyntaxError("invalid token")
+ synErrNoMDName = newSyntaxError("a metadata name is missing")
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")