From 0eb44f044b6a4f051126e2e46fd8840dcb105ae9 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 7 May 2022 11:23:43 +0900 Subject: Make #prec directive change only precedence and not associativity --- 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 079f826..c81cb5f 100644 --- a/grammar/semantic_error.go +++ b/grammar/semantic_error.go @@ -19,6 +19,7 @@ var ( semErrMDInvalidParam = newSemanticError("invalid parameter") semErrMDMissingName = newSemanticError("name is missing") semErrDuplicateAssoc = newSemanticError("associativity and precedence cannot be specified multiple times for a symbol") + semErrUndefinedPrec = newSemanticError("symbol must has precedence") semErrUnusedProduction = newSemanticError("unused production") semErrUnusedTerminal = newSemanticError("unused terminal") semErrTermCannotBeSkipped = newSemanticError("a terminal used in productions cannot be skipped") -- cgit v1.2.3