diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-06-20 18:39:38 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-06-20 18:46:13 +0900 |
commit | 8993406a8ebe8c0a01d5081dc4afcf819e3160d4 (patch) | |
tree | 8940654c0bbc1e200908cafe83813fe7765a5229 /spec/syntax_error.go | |
parent | Add syntax of comments (diff) | |
download | cotia-8993406a8ebe8c0a01d5081dc4afcf819e3160d4.tar.gz cotia-8993406a8ebe8c0a01d5081dc4afcf819e3160d4.tar.xz |
Add syntax of modifiers and actions
Currently, a mode modifier and push/pop actions are available.
The modifier and the actions make sense in only lexical specifications.
Diffstat (limited to 'spec/syntax_error.go')
-rw-r--r-- | spec/syntax_error.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/syntax_error.go b/spec/syntax_error.go index 6c6b9d7..25701a3 100644 --- a/spec/syntax_error.go +++ b/spec/syntax_error.go @@ -28,4 +28,6 @@ var ( synErrNoProductionName = newSyntaxError("a production name is missing") synErrNoColon = newSyntaxError("the colon must precede alternatives") synErrNoSemicolon = newSyntaxError("the semicolon is missing at the last of an alternative") + synErrNoModifierName = newSyntaxError("a modifier needs a name") + synErrNoActionName = newSyntaxError("an action needs a name") ) |