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. --- spec/grammar/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/grammar/parser.go') diff --git a/spec/grammar/parser.go b/spec/grammar/parser.go index 946d877..27a7c7d 100644 --- a/spec/grammar/parser.go +++ b/spec/grammar/parser.go @@ -351,7 +351,7 @@ func (p *parser) parseProduction() *ProductionNode { if !prod.isLexical() { for _, alt := range prod.RHS { for _, elem := range alt.Elements { - if elem.Pattern != "" && !elem.Literally { + if elem.Pattern != "" { raiseSyntaxError(elem.Pos.Row, synErrPatternInAlt) } } -- cgit v1.2.3