From a6001b32cf805c4e72e05adc37ee60272a600bf1 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 5 Nov 2022 16:52:37 +0900 Subject: Remove anonymous symbol system Remove unimportant features to tidy up the specification. --- grammar/grammar_test.go | 46 ++++++++++++---------------------------------- 1 file changed, 12 insertions(+), 34 deletions(-) (limited to 'grammar/grammar_test.go') diff --git a/grammar/grammar_test.go b/grammar/grammar_test.go index 80613aa..f6cb681 100644 --- a/grammar/grammar_test.go +++ b/grammar/grammar_test.go @@ -1723,12 +1723,14 @@ foo ); s - : foo ';' - | error ';' + : foo semi_colon + | error semi_colon ; foo : 'foo'; +semi_colon + : ';'; `, errs: []*SemanticError{semErrDirInvalidParam}, }, @@ -1965,12 +1967,14 @@ foo ); s - : foo ';' - | error ';' + : foo semi_colon + | error semi_colon ; foo : 'foo'; +semi_colon + : ';'; `, errs: []*SemanticError{semErrDirInvalidParam}, }, @@ -2207,12 +2211,14 @@ foo ); s - : foo ';' - | error ';' + : foo semi_colon + | error semi_colon ; foo : 'foo'; +semi_colon + : ';'; `, errs: []*SemanticError{semErrDirInvalidParam}, }, @@ -2675,34 +2681,6 @@ s : foo #ast foo... ; -foo - : "foo"; -`, - errs: []*SemanticError{semErrDirInvalidParam}, - }, - { - caption: "the expansion operator cannot be applied to a pattern", - specSrc: ` -#name test; - -s - : foo 'bar'@b #ast foo b... - ; - -foo - : "foo"; -`, - errs: []*SemanticError{semErrDirInvalidParam}, - }, - { - caption: "the expansion operator cannot be applied to a string", - specSrc: ` -#name test; - -s - : foo 'bar'@b #ast foo b... - ; - foo : "foo"; `, -- cgit v1.2.3