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

Fix Grammar.print() #17

Open
Yowgf opened this issue May 8, 2023 · 0 comments
Open

Fix Grammar.print() #17

Yowgf opened this issue May 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Yowgf
Copy link
Collaborator

Yowgf commented May 8, 2023

Current representation of the grammar produced by the grammarJar bytecode is incorrect.

R0 :: [023]{4,4}[-]{1,1}[04]{2,2}[-]{1,1}[29]{2,2} | R1
R1 :: [0]{2,2}[:]{1,1}[0]{2,2}[:]{1,1}[0]{2,2}[,]{1,1}[123456789]{3,3} | R2
R2 :: [RScdeimov]{4,8} | R3
R3 :: [ehoqrstu]{5,7} | R4
R4 :: [acfmoryz]{4,5} | R5
R5 :: [0123456789]{1,3}[.]{1,1}[0123456789]{1,3}[.]{1,1}[0123456789]{1,3}[.]{1,1}[0123456789]{1,3} | [glo]{3,3} | R6
R6 :: [ehr]{4,4} | R7
R7 :: [abl]{3,3} | R8
R8 :: [abl]{3,3}

Should instead be

R0 :: [023]{4,4}[-]{1,1}[04]{2,2}[-]{1,1}[29]{2,2} | R0 R1
R1 :: [0]{2,2}[:]{1,1}[0]{2,2}[:]{1,1}[0]{2,2}[,]{1,1}[123456789]{3,3} | R1 R2
R2 :: [RScdeimov]{4,8} | R2 R3
R3 :: [ehoqrstu]{5,7} | R3 R4
R4 :: [acfmoryz]{4,5} | R4 R5
R5 :: [0123456789]{1,3}[.]{1,1}[0123456789]{1,3}[.]{1,1}[0123456789]{1,3}[.]{1,1}[0123456789]{1,3} | [glo]{3,3} | R5 R6
R6 :: [ehr]{4,4} | R6 R7
R7 :: [abl]{3,3} | R7 R8
R8 :: [abl]{3,3}
@Yowgf Yowgf added the bug Something isn't working label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant