From 97d36965cbb30108340727a982539e67dafea92d Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Thu, 14 Apr 2022 02:11:06 +0900 Subject: Add tests for compiler --- 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 04cc020..8e5b558 100644 --- a/grammar/semantic_error.go +++ b/grammar/semantic_error.go @@ -25,6 +25,7 @@ var ( semErrUndefinedSym = newSemanticError("undefined symbol") semErrDuplicateProduction = newSemanticError("duplicate production") semErrDuplicateTerminal = newSemanticError("duplicate terminal") + semErrDuplicateFragment = newSemanticError("duplicate fragment") 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") -- cgit v1.2.3