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

Texas hyper doesn't parse correctly in topicalized quoteword associative index assignment #5256

Closed
p6rt opened this issue Apr 22, 2016 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 22, 2016

Migrated from rt.perl.org#127965 (status was 'rejected')

Searchable as RT127965$

@p6rt
Copy link
Author

p6rt commented Apr 22, 2016

From @peschwa

Consider the following two snippets​:

21​:03 <psch> m​: .<A B C> >>=>> True given my %h; dd %h
21​:03 <camelia> rakudo-moar 0b8e08​: OUTPUT«===SORRY!=== Error while compiling
  /tmp/yQ1mgyWhDJ␤Missing << or >>␤at /tmp/yQ1mgyWhDJ​:1␤------>
  .<A B C> >>=>⏏> True given my %h; dd %h␤ expecting any of​:␤
  infix␤ infix stopper␤»

21​:09 < psch> m​: .<A B C> »=» True given my %h; dd %h # actually, never mind
21​:09 <+camelia> rakudo-moar 0b8e08​: OUTPUT«Hash %h = {​:A, :B, :C}␤»

I would expect both to behave identically, considering the equivalence between >>=>> and »=».

@p6rt
Copy link
Author

p6rt commented Apr 22, 2016

From @TimToady

Not A Bug.

LTM requires it to recognize => over = inside, and then you're missing a >. Looking at it from the other direction, thinking that it will find the >> on the end and then back up to isolate the = is a subtle mental trap of two-pass parsing, which is typically forbidden in Perl 6. To write the Texas form of this operator, you must write >>[=>]>> instead.

@p6rt
Copy link
Author

p6rt commented Apr 22, 2016

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

@p6rt
Copy link
Author

p6rt commented Apr 22, 2016

@TimToady - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Apr 22, 2016
@p6rt
Copy link
Author

p6rt commented Apr 23, 2016

From @TimToady

On Fri Apr 22 15​:38​:22 2016, larry wrote​:

Not A Bug.

LTM requires it to recognize => over = inside, and then you're missing
a >. Looking at it from the other direction, thinking that it will
find the >> on the end and then back up to isolate the = is a subtle
mental trap of two-pass parsing, which is typically forbidden in Perl
6. To write the Texas form of this operator, you must write >>[=>]>>
instead.

Oops, make that >>[=]>> instead

@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