Skip Menu |
Report information
Id: 128761
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: thoughtstream <damian [at] conway.org>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Thu, 28 Jul 2016 10:57:54 +1000
From: Damian Conway <damian [...] conway.org>
Subject: [BUG] Misparsing of postcircumfix operator (or LTA error message)
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 624b
> perl6 --version
This is Rakudo version 2016.07.1 built on MoarVM version 2016.07
implementing Perl 6.c.

A postcircumfix operator that uses '>' as its closing delimiter is not
correctly recognized. For example:


    sub postcircumfix:« ¦ > » ($p, $v) {
        return $v => $p;
    }

    say 0.5¦'alive'>;

produces:

    Missing required term after infix
    at /Users/damian/tmp/temporary_file.p6:8
    ------> say 0.5¦'alive'>⏏;
        expecting any of:
            prefix
            term

The same behaviour is observed when any other character that can be an infix operator is
used as a closing delimiter.




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org