diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-10-28 01:41:21 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-10-28 01:41:21 +0900 |
commit | 83bc2b1307d0e73424437649d26b804f20a83c38 (patch) | |
tree | 1abb5a6067a66548917fb6cb38335aafc5cd4fe1 /grammar/semantic_error.go | |
parent | Use maleeni v0.5.1 (diff) | |
download | cotia-83bc2b1307d0e73424437649d26b804f20a83c38.tar.gz cotia-83bc2b1307d0e73424437649d26b804f20a83c38.tar.xz |
Add name directive to specify a grammar name
Diffstat (limited to 'grammar/semantic_error.go')
-rw-r--r-- | grammar/semantic_error.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/grammar/semantic_error.go b/grammar/semantic_error.go index c4ab9f6..d540c03 100644 --- a/grammar/semantic_error.go +++ b/grammar/semantic_error.go @@ -17,6 +17,7 @@ func (e *SemanticError) Error() string { var ( semErrMDInvalidName = newSemanticError("invalid meta data name") semErrMDInvalidParam = newSemanticError("invalid parameter") + semErrMDMissingName = newSemanticError("name is missing") semErrUnusedProduction = newSemanticError("unused production") semErrUnusedTerminal = newSemanticError("unused terminal") semErrTermCannotBeSkipped = newSemanticError("a terminal used in productions cannot be skipped") |