From 3eb0e88f911386a4e6eca991c1471070596c5554 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 7 May 2022 20:41:33 +0900 Subject: Change syntax for top-level directives %name changes to: #name example; %left and %right change to: #prec ( #left a b #right c d ); --- grammar/semantic_error.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'grammar/semantic_error.go') diff --git a/grammar/semantic_error.go b/grammar/semantic_error.go index c81cb5f..a843719 100644 --- a/grammar/semantic_error.go +++ b/grammar/semantic_error.go @@ -15,9 +15,7 @@ func (e *SemanticError) Error() string { } var ( - semErrMDInvalidName = newSemanticError("invalid meta data name") - semErrMDInvalidParam = newSemanticError("invalid parameter") - semErrMDMissingName = newSemanticError("name is missing") + semErrNoGrammarName = 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") -- cgit v1.2.3