From dbd2e20de97cdef56da0de07adff4251de94ef43 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Tue, 29 Mar 2022 19:10:23 +0900 Subject: Change syntax of production directives The position of directives given to productions has moved from before a left-hand side value to after a left-hand side value. This change aims to simplify the syntax. However, there is no change in positions of directives given to alternatives. --- spec/syntax_error.go | 1 - 1 file changed, 1 deletion(-) (limited to 'spec/syntax_error.go') diff --git a/spec/syntax_error.go b/spec/syntax_error.go index 92348db..c4e6594 100644 --- a/spec/syntax_error.go +++ b/spec/syntax_error.go @@ -31,7 +31,6 @@ var ( 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") synErrFragmentNoPattern = newSyntaxError("a fragment needs one pattern element") ) -- cgit v1.2.3