aboutsummaryrefslogtreecommitdiff
path: root/grammar/semantic_error.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-05-07 11:23:43 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-05-10 23:14:41 +0900
commit0eb44f044b6a4f051126e2e46fd8840dcb105ae9 (patch)
tree187217bcf636830a4746e4fc80ac8282d72ddd12 /grammar/semantic_error.go
parentAdd --json option to vartan-parse command (diff)
downloadurubu-0eb44f044b6a4f051126e2e46fd8840dcb105ae9.tar.gz
urubu-0eb44f044b6a4f051126e2e46fd8840dcb105ae9.tar.xz
Make #prec directive change only precedence and not associativity
Diffstat (limited to 'grammar/semantic_error.go')
-rw-r--r--grammar/semantic_error.go1
1 files changed, 1 insertions, 0 deletions
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")