From 8993406a8ebe8c0a01d5081dc4afcf819e3160d4 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sun, 20 Jun 2021 18:39:38 +0900 Subject: 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. --- spec/syntax_error.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/syntax_error.go') 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") ) -- cgit v1.2.3