aboutsummaryrefslogtreecommitdiff
path: root/spec/syntax_error.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-03-28 22:31:30 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-03-29 01:45:05 +0900
commited43562cf58e8c0f9390421848879308fdfc60cb (patch)
tree16beff7d233b95ae53d2c8019bc47be378f304b8 /spec/syntax_error.go
parentSimplify the syntax of #ast directive (diff)
downloadcotia-ed43562cf58e8c0f9390421848879308fdfc60cb.tar.gz
cotia-ed43562cf58e8c0f9390421848879308fdfc60cb.tar.xz
Add label notation
Diffstat (limited to 'spec/syntax_error.go')
-rw-r--r--spec/syntax_error.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/syntax_error.go b/spec/syntax_error.go
index ae65b35..741d578 100644
--- a/spec/syntax_error.go
+++ b/spec/syntax_error.go
@@ -29,6 +29,8 @@ var (
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")
+ synErrLabelWithNoSymbol = newSyntaxError("a label must follow a symbol")
+ synErrNoLabel = newSyntaxError("an identifier that represents a label is missing after the label marker @")
synErrNoDirectiveName = newSyntaxError("a directive needs a name")
synErrProdDirNoNewline = newSyntaxError("a production directive must be followed by a newline")
synErrSemicolonNoNewline = newSyntaxError("a semicolon must be followed by a newline")