diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-03-28 22:31:30 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-03-29 01:45:05 +0900 |
commit | ed43562cf58e8c0f9390421848879308fdfc60cb (patch) | |
tree | 16beff7d233b95ae53d2c8019bc47be378f304b8 /grammar/semantic_error.go | |
parent | Simplify the syntax of #ast directive (diff) | |
download | urubu-ed43562cf58e8c0f9390421848879308fdfc60cb.tar.gz urubu-ed43562cf58e8c0f9390421848879308fdfc60cb.tar.xz |
Add label notation
Diffstat (limited to 'grammar/semantic_error.go')
-rw-r--r-- | grammar/semantic_error.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grammar/semantic_error.go b/grammar/semantic_error.go index d540c03..4326d81 100644 --- a/grammar/semantic_error.go +++ b/grammar/semantic_error.go @@ -27,6 +27,8 @@ var ( semErrDuplicateTerminal = newSemanticError("duplicate terminal") semErrDuplicateName = newSemanticError("duplicate names are not allowed between terminals and non-terminals") semErrErrSymIsReserved = newSemanticError("symbol 'error' is reserved as a terminal symbol") + semErrDuplicateLabel = newSemanticError("a label must be unique in an alternative") + semErrInvalidLabel = newSemanticError("a label must differ from terminal symbols or non-terminal symbols") semErrDirInvalidName = newSemanticError("invalid directive name") semErrDirInvalidParam = newSemanticError("invalid parameter") ) |