"Warning; old COBOL programmer has escaped" :-)*

On 5/25/17, Aleks-Daniel Jakimenko-Aleksejev
<perl6-bugs-follo...@perl.org> wrote:
> # New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev
> # Please include the string:  [perl #131363]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=131363 >
>
>
> Code:
> say ‘hello’.
> say 42
>
> Result:
> ===SORRY!=== Error while compiling -e
> Two terms in a row
> at -e:2
> ------> say⏏ 42
>     expecting any of:
>         infix
>         infix stopper
>         postfix
>         statement end
>         statement modifier
>         statement modifier loop
>
>
> This bug report was motivated by this task from thinkperl6 book:
>
> • What if you put a period at the end of a statement?
>
>
> Arguably, it can probably figure out that . was used instead of ;. The
> problem is that . is interpreted as an infix, and therefore it only blows up
> when it sees the next occurrence of two terms in a row (or any other issue)…
> Not sure if there is any easy way to implement something like this (but a
> line ending with a dot should be a good heuristic, no?)
>

Reply via email to