aboutsummaryrefslogtreecommitdiff
path: root/spec/grammar/parser.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-11-05 16:52:37 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-11-05 16:52:37 +0900
commita6001b32cf805c4e72e05adc37ee60272a600bf1 (patch)
treebcee870f1008689adfa104fb1e97e6414201eb94 /spec/grammar/parser.go
parentRemove alias system (diff)
downloadcotia-a6001b32cf805c4e72e05adc37ee60272a600bf1.tar.gz
cotia-a6001b32cf805c4e72e05adc37ee60272a600bf1.tar.xz
Remove anonymous symbol system
Remove unimportant features to tidy up the specification.
Diffstat (limited to 'spec/grammar/parser.go')
-rw-r--r--spec/grammar/parser.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}