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

/<[]>/, the empty character class, should be synonymous with /<!>/ but instead fails at parse time in Rakudo #2636

Closed
p6rt opened this issue Feb 2, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Feb 2, 2012

Migrated from rt.perl.org#109674 (status was 'resolved')

Searchable as RT109674$

@p6rt
Copy link
Author

p6rt commented Feb 2, 2012

From @masak

<TimToady> nom​: say so 'a' ~~ /<[]>/
<p6eval> nom ce5cca​: OUTPUT«===SORRY!===␤StopIteration␤»
<TimToady> std​: say so 'a' ~~ /<[]>/
<p6eval> std 48335fc​: OUTPUT«ok 00​:01 112m␤»
* masak submits rakudobug
<masak> it should simply allow /<[]>/ as meaning, hm, I guess /<!>/ :)

@p6rt
Copy link
Author

p6rt commented Aug 27, 2014

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 1, 2015

From @usev6

This seems to work now (<[]> behaves like <!>)​:

$ perl6 -e 'say so "a" ~~ /<[]>/'
False

$ perl6 -e 'say so "abc" ~~ /a <[]>/'
False

$ perl6 -e 'say so "" ~~ /<[]>/'
False

I added two tests to S05-mass/stdrules.t with commit Raku/roast@9bad4dd1af

I'm closing this ticket now.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 1, 2015

From @usev6

This seems to work now (<[]> behaves like <!>)​:

$ perl6 -e 'say so "a" ~~ /<[]>/'
False

$ perl6 -e 'say so "abc" ~~ /a <[]>/'
False

$ perl6 -e 'say so "" ~~ /<[]>/'
False

I added two tests to S05-mass/stdrules.t with commit Raku/roast@9bad4dd1af

I'm closing this ticket now.

@p6rt
Copy link
Author

p6rt commented Jan 1, 2015

@usev6 - Status changed from 'open' to 'resolved'

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

No branches or pull requests

1 participant