From 68a644a559db0d2e117066a413e9279988576164 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Mon, 19 Jul 2021 00:58:25 +0900 Subject: Detect duplicate definitions of terminal symbols and fragments in advance --- grammar/semantic_error.go | 1 + 1 file changed, 1 insertion(+) (limited to 'grammar/semantic_error.go') 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") ) -- cgit v1.2.3