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

FSM Gym attempts to remove unbalanced parenthesis #26

Open
mwberry opened this issue Mar 18, 2019 · 1 comment
Open

FSM Gym attempts to remove unbalanced parenthesis #26

mwberry opened this issue Mar 18, 2019 · 1 comment
Labels

Comments

@mwberry
Copy link

mwberry commented Mar 18, 2019

Give the regex E((AT*S?)|(ST*A?))?T*Q to the Regex Gym and it reports the following simplification as the first step:

R1: E((AT*S?)|(ST*A?))?T*Q
Rule: ab(cd) => abcd
R2: E(AT*S?)|(ST*A?)?T*Q

I can't accurately represent the color coding it does on the page, but the colored parenthesis indicate it's trying to remove one of the first innermost left parenthesis and the outermost right parenthesis.

@izuzak
Copy link
Owner

izuzak commented Mar 25, 2019

Thanks for reporting this, @mwberry. Here's a screenshot of the behavior just to make it clearer what the problem is:

Screenshot 2019-03-25 at 20 40 57

@izuzak izuzak added the bug label Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants