diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 16:52:37 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 16:52:37 +0900 |
commit | a6001b32cf805c4e72e05adc37ee60272a600bf1 (patch) | |
tree | bcee870f1008689adfa104fb1e97e6414201eb94 /spec/grammar/parser.go | |
parent | Remove alias system (diff) | |
download | cotia-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.go | 2 |
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) } } |