From dd5fd3372cdb53e7a3a36b5ef61b0b0c35023798 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Mon, 9 May 2022 00:36:06 +0900 Subject: Add ordered symbol notation --- 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 a843719..794d8da 100644 --- a/grammar/semantic_error.go +++ b/grammar/semantic_error.go @@ -18,6 +18,7 @@ var ( semErrNoGrammarName = newSemanticError("name is missing") semErrDuplicateAssoc = newSemanticError("associativity and precedence cannot be specified multiple times for a symbol") semErrUndefinedPrec = newSemanticError("symbol must has precedence") + semErrUndefinedOrdSym = newSemanticError("undefined ordered symbol") semErrUnusedProduction = newSemanticError("unused production") semErrUnusedTerminal = newSemanticError("unused terminal") semErrTermCannotBeSkipped = newSemanticError("a terminal used in productions cannot be skipped") -- cgit v1.2.3