Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xsd-regex could not parse \d{1,2} #4386

Open
jiangjianbo opened this issue Jan 17, 2025 · 0 comments
Open

xsd-regex could not parse \d{1,2} #4386

jiangjianbo opened this issue Jan 17, 2025 · 0 comments

Comments

@jiangjianbo
Copy link

Hi:

I found xsd-regex could not parse \d{1,2} correctly, It's return wrong syntax tree as below:

Image

I read the code, found atom's quantifier only recognize ?*+, but { will be put in next pice.

// Piece
piece
: atom quantifier?
;

// Quantifier
quantifier
: QUESTION
| STAR
| PLUS
| StartQuantity quantity EndQuantity
;

debug result

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant