You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed some generator produce all the possibles combinaisons for case incentive input. It means this generate a list of item growing exponentially relative to the input length.
Obviously, this is a very naive idea from me. I guess there are reasons this can't be done. I just found out this is implemented by permute_case. I will take a look.
Yes, unfortunately that has a different meaning. For a grammar where there could be whitespace between tokens (depending on how lexing is defined), here you're introducing the possibility for space between each letter, and to produce multiple tokens for output. The original grammar there has only one token for the entire string.
Activity
[-]Expone[/-][+]Exponential grows for case insensitive input.[/+][-]Exponential grows for case insensitive input.[/-][+]Exponential grow for case insensitive input.[/+]katef commentedon Nov 26, 2020
This is pretty terrible, I agree. I was trying to think about better ways to handle this, when I wrote it. Do you have any suggestions please?
The problem is that those dialects don't support case insensitive terminals, so we have to expand out every spelling.
ArthurSonzogni commentedon Nov 29, 2020
I was thinking: instead of outputting every combination, to rewrite it using a sequence of alternatives:
Input:
output (current)
output (proposed;)
Obviously, this is a very naive idea from me. I guess there are reasons this can't be done. I just found out this is implemented by
permute_case. I will take a look.katef commentedon Dec 8, 2020
Yes, unfortunately that has a different meaning. For a grammar where there could be whitespace between tokens (depending on how lexing is defined), here you're introducing the possibility for space between each letter, and to produce multiple tokens for output. The original grammar there has only one token for the entire string.