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

Override of internal character class in grammar won't combine with other character classes #5990

Open
p6rt opened this issue Jan 7, 2017 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 7, 2017

Migrated from rt.perl.org#130527 (status was 'new')

Searchable as RT130527$

@p6rt
Copy link
Author

p6rt commented Jan 7, 2017

From @ronaldxs

Override of internal character class in gramma won't combine with other
character classes​:

grammar g{
  token alpha {<[2]>};
  token alpha1 {<[2]>}; # same as alpha but without internal car
class conflict
  token beta { <[q]> };
  token delta {<+alpha +beta>};
  token delta1 {<+alpha>};
  token delta2 {<+alpha1 +beta>}
}
say so "2" ~~ /<g​::delta1>/; # OK
say so "2" ~~ /<g​::delta2>/; # OK
say so "2" ~~ /<g​::delta>/; # think wrong - should be true
say so "a" ~~ /<g​::delta>/; # true probably wrong but maybe
understandable

@p6rt p6rt added the Bug label Jan 5, 2020
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

1 participant