diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-19 00:58:25 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-19 00:58:25 +0900 |
commit | 68a644a559db0d2e117066a413e9279988576164 (patch) | |
tree | 18c384b01076832d77708bb42fb0d21dbb816c39 /grammar/semantic_error.go | |
parent | Sort error messages before printing them (diff) | |
download | cotia-68a644a559db0d2e117066a413e9279988576164.tar.gz cotia-68a644a559db0d2e117066a413e9279988576164.tar.xz |
Detect duplicate definitions of terminal symbols and fragments in advance
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 01446ed..63f9325 100644 --- a/grammar/semantic_error.go +++ b/grammar/semantic_error.go @@ -17,6 +17,7 @@ func (e *SemanticError) Error() string { var ( semErrNoProduction = newSemanticError("a grammar needs at least one production") semErrUndefinedSym = newSemanticError("undefined symbol") + semErrDuplicateSym = newSemanticError("duplicate symbol") semErrDirInvalidName = newSemanticError("invalid directive name") semErrDirInvalidParam = newSemanticError("invalid parameter") ) |