goodmami / goodmami/pe

Multiple repeat operators

Open
#37 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
51
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The following snippet
```
A <- B C?
B <- "B"
C <- [a-z]+
```
produces the error
```
pe._errors.GrammarError: multiple repeat operators
```
upon compiling it.

It seems like pe thinks that the `?` and the `+` operator follow each other immediately and ignores the rule indirection. However, I think a grammar like the above seems perfectly normal.
Therefore, this seems like a bug to me.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.