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

LTA error message when ':' quantifier follows nothing in regex in Rakudo #2156

Closed
p6rt opened this issue Sep 11, 2010 · 6 comments
Closed

LTA error message when ':' quantifier follows nothing in regex in Rakudo #2156

p6rt opened this issue Sep 11, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 11, 2010

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

Searchable as RT77786$

@p6rt
Copy link
Author

p6rt commented Sep 11, 2010

From @masak

<moritz_> rakudo​: / : /
<p6eval> rakudo ce565f​: OUTPUT«===SORRY!===␤Method 'backtrack' not
found for invocant of class 'Integer'␤»
<moritz_> LTA error
<jnthn> std​: / : /
<p6eval> std 32123​: OUTPUT«ok 00​:01 116m␤»
<moritz_> that's broken too
<jnthn> LTE error
<moritz_> should say "Backtrack control '​:' does not seem to have a
preceding atom to control"

@p6rt
Copy link
Author

p6rt commented Oct 30, 2014

From @usev6

Status update​: STD gives an adequate error message now​:

$ viv -c -e '/ : /'
===SORRY!===
Backtrack control '​:' does not seem to have a preceding atom to control at (eval) line 1​:
------> / :⏏ /
Parse failed

Rakudo's complaint has changed but is still LTA​:

$ perl6-m -e '/ : /'
===SORRY!===
Unrecognized regex metacharacter : (must be quoted to match literally)
at -e​:1
------> / :⏏ /
Unrecognized regex metacharacter (must be quoted to match literally)
at -e​:1
------> / :⏏ /
  expecting any of​:
  statement list
  prefix or term
  prefix or meta-prefix
  infix stopper

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 30, 2014

From @usev6

Status update​: STD gives an adequate error message now​:

$ viv -c -e '/ : /'
===SORRY!===
Backtrack control '​:' does not seem to have a preceding atom to control at (eval) line 1​:
------> / :⏏ /
Parse failed

Rakudo's complaint has changed but is still LTA​:

$ perl6-m -e '/ : /'
===SORRY!===
Unrecognized regex metacharacter : (must be quoted to match literally)
at -e​:1
------> / :⏏ /
Unrecognized regex metacharacter (must be quoted to match literally)
at -e​:1
------> / :⏏ /
  expecting any of​:
  statement list
  prefix or term
  prefix or meta-prefix
  infix stopper

@p6rt
Copy link
Author

p6rt commented Oct 30, 2014

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

@p6rt
Copy link
Author

p6rt commented Apr 16, 2015

From @jnthn

On Thu Oct 30 14​:14​:12 2014, bartolin@​gmx.de wrote​:

Status update​: STD gives an adequate error message now​:

$ viv -c -e '/ : /'
===SORRY!===
Backtrack control '​:' does not seem to have a preceding atom to
control at (eval) line 1​:
------> / :⏏ /
Parse failed

Rakudo's complaint has changed but is still LTA​:

$ perl6-m -e '/ : /'
===SORRY!===
Unrecognized regex metacharacter : (must be quoted to match literally)
at -e​:1
------> / :⏏ /
Unrecognized regex metacharacter (must be quoted to match literally)
at -e​:1
------> / :⏏ /
expecting any of​:
statement list
prefix or term
prefix or meta-prefix
infix stopper

It now says what STD does​:

$ perl6-m -e "/ : /"
===SORRY!=== Error while compiling -e
Backtrack control '​:' does not seem to have a preceding atom to control

Added a typed exception and covered it with a test in S05-metasyntax/repeat.t.

@p6rt p6rt closed this as completed Apr 16, 2015
@p6rt
Copy link
Author

p6rt commented Apr 16, 2015

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

@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