diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-03-29 19:10:23 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-03-29 19:10:23 +0900 |
commit | dbd2e20de97cdef56da0de07adff4251de94ef43 (patch) | |
tree | 0f21929ff0147d757c59e6ac558f0c68fc100846 /spec/syntax_error.go | |
parent | Use IDs and labels as parameters of an #ast directive instead of symbol posit... (diff) | |
download | urubu-dbd2e20de97cdef56da0de07adff4251de94ef43.tar.gz urubu-dbd2e20de97cdef56da0de07adff4251de94ef43.tar.xz |
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.
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 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") ) |