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

my @words <== sort <== ("c", "b", "a"); # feed failing to parse #3384

Open
p6rt opened this issue May 10, 2014 · 6 comments
Open

my @words <== sort <== ("c", "b", "a"); # feed failing to parse #3384

p6rt opened this issue May 10, 2014 · 6 comments

Comments

@p6rt
Copy link

p6rt commented May 10, 2014

Migrated from rt.perl.org#121843 (status was 'open')

Searchable as RT121843$

@p6rt
Copy link
Author

p6rt commented May 10, 2014

From @dwarring

Golfed from fudged test in integration/advent2010-day10.t

$ perl6-m -e'my @​o <== sort <== ("c", "b", "a")'
Unable to parse expression in quote words; couldn't find final '>'
 
at -e​:1
------> my @​m <== sort <== ("c", "b", "a")⏏<EOL>
  expecting any of​:
  argument list
  prefix or term
  prefix or meta-prefix
  quote word

@p6rt
Copy link
Author

p6rt commented May 11, 2014

From @dwarring

imho there's some ambiguity between the above and quote-word syntax aka​:

  % perl6 -e 'say <== sort>'
  == sort

@p6rt
Copy link
Author

p6rt commented May 11, 2014

From @dwarring

From the #perl6 IRC

07​:48] == dwarring [de99574b@​gateway/web/freenode/ip.222.153.87.75] has joined #perl6
[07​:50] <dwarring> r​: my @​m <== sort <== ("c", "b", "a")
...
[07​:50] <+camelia> rakudo-jvm 5c160e​: OUTPUT«(timeout)»
[07​:50] <+camelia> ..rakudo-{parrot,moar} 5c160e​: OUTPUT«�[31m===�[0mSORRY!�[31m===�[0m Error while compiling /tmp/tmpfile␤Unable to parse expression in quote words; couldn't find final '>'␤ ␤at /tmp/tmpfile​:1␤------> �[32mmy @​m <== sort <== ("c", "b", "a")�[33m⏏�[31m<EOL>�[0m␤ exp…»
[07​:51] <dwarring> that's golfed from from 2010 advent day 10
[07​:51] <dwarring> looks to me like that's getting confused with with quoted-word syntax..
[07​:51] <moritz> m​: my @​m <== sort() <== ("c", "b", "a")
[07​:51] <+camelia> rakudo-moar 5c160e​: ( no output )
[07​:51] <dwarring> r​: say <== sort>
[07​:51] <+camelia> rakudo-{parrot,jvm,moar} 5c160e​: OUTPUT«== sort␤»
...
[07​:52] <timotimo> oooh, good catch
[07​:52] <moritz> dwarring​: yes; it expects a term after a listop
...
[07​:53] <moritz> std​: my @​m <== sort <== ("c", "b", "a")
[07​:53] <+camelia> std ec3d853​: OUTPUT«ok 00​:01 127m␤»
[07​:53] <moritz> dunno how STD manages it
[07​:54] <moritz> probably "LTM" is the answer :-)
[07​:55] <FROGGS> std​: <== sort>
[07​:55] <+camelia> std ec3d853​: OUTPUT«ok 00​:01 121m␤»
[07​:55] <FROGGS> yeah
[07​:55] <FROGGS> LTM FTW
[07​:57] <masak> huh. STD has the cake and eats it somehow.

@p6rt
Copy link
Author

p6rt commented May 13, 2014

From @dwarring

I've temporarily snuck in parens to the advent post. Now reads​:
  ... <== sort() <== ...
That should be reverted when this issue is resolved.
On Sat May 10 14​:42​:47 2014, david.warring wrote​:

Golfed from fudged test in integration/advent2010-day10.t

$ perl6-m -e'my @​o <== sort <== ("c", "b", "a")'
Unable to parse expression in quote words; couldn't find final '>'

at -e​:1
------> my @​m <== sort <== ("c", "b", "a")⏏<EOL>
expecting any of​:
argument list
prefix or term
prefix or meta-prefix
quote word

@p6rt
Copy link
Author

p6rt commented Dec 1, 2017

From @AlexDaniel

Still reproducible (2017.11, HEAD(5929887))

On 2014-05-10 14​:42​:47, david.warring wrote​:

Golfed from fudged test in integration/advent2010-day10.t

$ perl6-m -e'my @​o <== sort <== ("c", "b", "a")'
Unable to parse expression in quote words; couldn't find final '>'

at -e​:1
------> my @​m <== sort <== ("c", "b", "a")⏏<EOL>
expecting any of​:
argument list
prefix or term
prefix or meta-prefix
quote word

@p6rt
Copy link
Author

p6rt commented Dec 1, 2017

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

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