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

~ in regexes doesn't allow braces as the last term #597

Closed
p6rt opened this issue Jan 9, 2009 · 5 comments
Closed

~ in regexes doesn't allow braces as the last term #597

p6rt opened this issue Jan 9, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jan 9, 2009

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

Searchable as RT62122$

@p6rt
Copy link
Author

p6rt commented Jan 9, 2009

From @moritz

11​:33 < p6eval> rakudo 35266​: OUTPUT«(aa)␤»
11​:35 <@​moritz_> rakudo​: regex recursive { '(' ~ ')' ['a'*] }; say
'(aa)' ~~
  m/<recursive>/
11​:35 < p6eval> rakudo 35266​: OUTPUT«Syntax error at line 1, near "}; say
  '(a"␤␤current instr.​: 'parrot;PGE;Util;die' pc 129
  (runtime/parrot/library/PGE/Util.pir​:83)␤»

'(' ~ ')' 'a'* parses and does what I mean, but when I replace the last
term with ['a'*] it fails to parse.

Cheers,
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

From @pmichaud

'(' ~ ')' 'a'* parses and does what I mean, but when I replace the last
term with ['a'*] it fails to parse.

Looks like a bug in PGE's parser, I'll look into this in a day or so.

Thanks,

Pm

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 11, 2009

From @moritz

Resolved in Parrot's 37317 by pmichaud, and required that parrot
revision in Rakudo's 9844bf0fb31b5f5254895a972735355543814434. Tested in
t/spec/S05-metachars/tilde.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Mar 11, 2009

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

@p6rt p6rt closed this as completed Mar 11, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant